org.gcube.portlets.user.collectionexplorer.client.util
Class MyCommand

java.lang.Object
  extended by org.gcube.portlets.user.collectionexplorer.client.util.MyCommand
All Implemented Interfaces:
com.google.gwt.core.client.Scheduler.ScheduledCommand, com.google.gwt.user.client.Command

public class MyCommand
extends Object
implements com.google.gwt.user.client.Command

Author:
Massimiliano Assante, ISTI-CNR assante@isti.cnr.it

Field Summary
protected  String collectionId
          collectionId
 CollectionServiceAsync collectionService
          Create the client proxy.
protected static int counter
          counter
protected  String metadataCollectionId
          metadataCollectionId
protected  String objectId
          objectId
protected  String title
          title
 
Constructor Summary
MyCommand(Controller controller, ActionType selectedOption, String OID, String colId, String metadataCollectionId, String title, String username)
           
 
Method Summary
static String anchor(String txt, int j)
           
 void execute()
          (non-Javadoc)
static void goToAnnotations(HashMap<String,String> links)
          Redirects the page to Annotation porltet page.
 void goToContentViewer(HashMap<String,String> links)
           
static void goToMetadata(ActionType selectedOption)
          Redirects the page to Metadata porltet page.
static void goToOntology(HashMap<String,String> links)
          Redirects the page to Annotation porltet page.
static String portalURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectId

protected String objectId
objectId


collectionId

protected String collectionId
collectionId


metadataCollectionId

protected String metadataCollectionId
metadataCollectionId


title

protected String title
title


counter

protected static int counter
counter


collectionService

public CollectionServiceAsync collectionService
Create the client proxy. The cast is always safe because the generated proxy implements the asynchronous interface automatically.

Constructor Detail

MyCommand

public MyCommand(Controller controller,
                 ActionType selectedOption,
                 String OID,
                 String colId,
                 String metadataCollectionId,
                 String title,
                 String username)
Parameters:
selectedOption -
OID -
colId -
metadataCollectionId -
title -
username -
Method Detail

goToAnnotations

public static void goToAnnotations(HashMap<String,String> links)
Redirects the page to Annotation porltet page.


goToOntology

public static void goToOntology(HashMap<String,String> links)
Redirects the page to Annotation porltet page.


goToContentViewer

public void goToContentViewer(HashMap<String,String> links)

goToMetadata

public static void goToMetadata(ActionType selectedOption)
Redirects the page to Metadata porltet page.


portalURL

public static String portalURL()

anchor

public static String anchor(String txt,
                            int j)
Parameters:
txt - the text the should exist in the <a></a> statement
j - j
Returns:
the coresponding URL (form href attribute of "a" element

execute

public void execute()
(non-Javadoc)

Specified by:
execute in interface com.google.gwt.core.client.Scheduler.ScheduledCommand
Specified by:
execute in interface com.google.gwt.user.client.Command
See Also:
Command.execute()


Copyright © 2014. All Rights Reserved.