Module platform

Class PanelFactory

All Implemented Interfaces:
Manageable, PersistenceCapable, Shareable, RegistryContext, Command, UIItem, UserFields, XObject, Described, Map, Serializable
Direct Known Subclasses:
ExplorerFactory, HelpExplorerFactory, OptionExplorerFactory, ProjectExplorerFactory, ToolBarFactory

public class PanelFactory extends Item implements Command, UIItem
See Also:
  • Field Details

  • Constructor Details

    • PanelFactory

      public PanelFactory(String name, String source)
  • Method Details

    • getFactorySource

      public String getFactorySource()
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Item
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Item
      Returns:
      new instance of class of this node
    • getDefaultTitle

      public String getDefaultTitle()
    • get

      public Object get(Object key, Object defaultValue)
      Description copied from interface: Map
      Returns the value associated with key. If there is no value associated with key, defaultValue is returned.
      Specified by:
      get in interface Map
      Overrides:
      get in class Item
      Parameters:
      key - a key for the map
      defaultValue - the default value
      Returns:
      the associated value, or defaultValue
    • getDefaultDescription

      protected Object getDefaultDescription(String type)
      Overrides:
      getDefaultDescription in class Item
    • createPanel

      public Panel createPanel(Context ctx, Map params)
    • configure

      protected Panel configure(Context ctx, Panel p, Item menu)
    • createPanel

      public static Panel createPanel(Context ctx, String id, Map params)
    • getAndShowPanel

      public static Panel getAndShowPanel(Context ctx, String id, Map params)
    • getCommandName

      public String getCommandName()
      Description copied from interface: Command
      Returns a name which can be used in the graphical user interface to represent this command.
      Specified by:
      getCommandName in interface Command
      Returns:
      this commands's name
    • run

      public void run(Object info, Context ctx)
      Description copied from interface: Command
      Performs the actions of this command. This method is invoked by the JobManager after the command has been submitted to the job manager by one of execute, runAt, or runLater-methods. The arguments info and context are the arguments which have been provided as arguments to the JobManager-methods.
      Specified by:
      run in interface Command
      Parameters:
      info - an argument
      ctx - a context
    • invoke

      public Object invoke(Context ctx, String method, Object arg)
      Specified by:
      invoke in interface UIItem
    • isAvailable

      public boolean isAvailable(Context ctx)
      Specified by:
      isAvailable in interface UIItem
    • isEnabled

      public boolean isEnabled(Context ctx)
      Specified by:
      isEnabled in interface UIItem
    • getUINodeType

      public int getUINodeType()
      Specified by:
      getUINodeType in interface UIItem
    • showPanel

      public static void showPanel(Item item, Object info, Context ctx)