Package org.opencms.gwt.client.util
Class CmsNewLinkFunctionTable
java.lang.Object
org.opencms.gwt.client.util.CmsNewLinkFunctionTable
Keeps track of the actions which should be executed for each collector context id.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CmsNewLinkFunctionTable
The global instance for this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createAndEditNewElement
(String contextId) Triggers creation and editing of a new element for the given collector, identified by its context id.static void
createAndEditNewElementStatic
(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
(String functionName) Installs a Javascript function which can be used to create and edit a new element given the collector context id.void
setHandler
(String contextId, Runnable action) Sets the action which should be executed if cmsCreateAndEditNewElement is called with the given collector context id.
-
Field Details
-
INSTANCE
The global instance for this class.
-
-
Constructor Details
-
CmsNewLinkFunctionTable
public CmsNewLinkFunctionTable()Creates a new instance.
-
-
Method Details
-
createAndEditNewElementStatic
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
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
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
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
-