Class CmsNewLinkFunctionTable

java.lang.Object
org.opencms.gwt.client.util.CmsNewLinkFunctionTable

public class CmsNewLinkFunctionTable extends Object
Keeps track of the actions which should be executed for each collector context id.

  • Field Details

  • Constructor Details

  • Method Details

    • createAndEditNewElementStatic

      public 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.

      Parameters:
      contextId - the collector context id
    • createAndEditNewElement

      public void createAndEditNewElement(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(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(String contextId, Runnable action)
      Sets the action which should be executed if cmsCreateAndEditNewElement is called with the given collector context id.

      Parameters:
      contextId - the collector context id
      action - the action to execute