Class DefaultModulesPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Startupable

public class DefaultModulesPanel extends ModulesPanel
The DefaultModulesPanel. This implementation is a tree of all available modules.
See Also:
  • Field Details

  • Constructor Details

    • DefaultModulesPanel

      @Inject public DefaultModulesPanel(Format format, ModuleRegister allModules, SelectedModules selectedModules)
      Constructs a DefaultModulesPanel.
      Parameters:
      format - the format
      allModules - the set of all modules
      selectedModules - the set of selected modules
  • Method Details

    • startup

      public void startup()
      Description copied from interface: Startupable
      Called on startup of panels.
    • populateTree

      protected void populateTree()
      Build and order the tree
    • add

      protected void add(PropertyModule pm)
      Adds a new PropertyModule.
      Parameters:
      pm - the property module to be added
    • remove

      protected void remove(PropertyModule pm)
      Removes a PropertyModule.
      Parameters:
      pm - the property module to be removed
    • displayMenu

      protected void displayMenu(MouseEvent e)
      Displays a popup menu for the tree elements.
      Parameters:
      e - the mouse event
    • sort

      protected void sort(JTree tree)
      Sorts the JTree alphabetically.
      Parameters:
      tree - the tree to be sorted
    • sort

      protected void sort(DefaultMutableTreeNode node)
      Sorts the child elements of one tree node alphabetically.
      Parameters:
      node - the node which children are sorted