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

java.lang.Object
  extended by org.gcube.portlets.user.results.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
protected static int counter
          counter
protected  String docURI
           
protected  String objectURI
          objectURI
protected  String payload
          payload
protected  String title
          title
 
Constructor Summary
MyCommand(Controller controller, ActionType selectedOption, String OID, String colId, String docURI, String title, String username)
           
 
Method Summary
static String anchor(String txt, int j)
           
 void execute()
          (non-Javadoc)
static void goToContentViewer(HashMap<String,String> links)
          Redirects the page to Content Viewer 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

objectURI

protected String objectURI
objectURI


collectionId

protected String collectionId
collectionId


title

protected String title
title


payload

protected String payload
payload


counter

protected static int counter
counter


docURI

protected String docURI
Constructor Detail

MyCommand

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

goToContentViewer

public static void goToContentViewer(HashMap<String,String> links)
Redirects the page to Content Viewer 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 © 2013. All Rights Reserved.