Class DefaultModulesPanel

    • Constructor Detail

      • 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 Detail

      • startup

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

        protected void populateTree()
        Build and order the tree
      • 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