Package org.opencms.gwt.client.util
Class CmsNewLinkFunctionTable
- java.lang.Object
-
- org.opencms.gwt.client.util.CmsNewLinkFunctionTable
-
public class CmsNewLinkFunctionTable extends java.lang.Object
Keeps track of the actions which should be executed for each collector context id.
-
-
Field Summary
Fields Modifier and Type Field Description static CmsNewLinkFunctionTable
INSTANCE
The global instance for this class.
-
Constructor Summary
Constructors Constructor Description CmsNewLinkFunctionTable()
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createAndEditNewElement(java.lang.String contextId)
Triggers creation and editing of a new element for the given collector, identified by its context id.static void
createAndEditNewElementStatic(java.lang.String contextId)
Static method for used to create a new element based on a collector's context id and open the editor for id.void
installFunction(java.lang.String functionName)
Installs a Javascript function which can be used to create and edit a new element given the collector context id.void
setHandler(java.lang.String contextId, java.lang.Runnable action)
Sets the action which should be executed if cmsCreateAndEditNewElement is called with the given collector context id.
-
-
-
Field Detail
-
INSTANCE
public static final CmsNewLinkFunctionTable INSTANCE
The global instance for this class.
-
-
Constructor Detail
-
CmsNewLinkFunctionTable
public CmsNewLinkFunctionTable()
Creates a new instance.
-
-
Method Detail
-
createAndEditNewElementStatic
public static void createAndEditNewElementStatic(java.lang.String contextId)
Static method for used to create a new element based on a collector's context id and open the editor for id.- Parameters:
contextId
- the collector context id
-
createAndEditNewElement
public void createAndEditNewElement(java.lang.String contextId)
Triggers creation and editing of a new element for the given collector, identified by its context id.- Parameters:
contextId
- the context id of the collector
-
installFunction
public void installFunction(java.lang.String functionName)
Installs a Javascript function which can be used to create and edit a new element given the collector context id.- Parameters:
functionName
- the name that should be used for the function
-
setHandler
public void setHandler(java.lang.String contextId, java.lang.Runnable action)
Sets the action which should be executed if cmsCreateAndEditNewElement is called with the given collector context id.- Parameters:
contextId
- the collector context idaction
- the action to execute
-
-