Class CmsNewLinkFunctionTable


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

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 id
        action - the action to execute