Class PlaceholderManagementPanel

    • Field Detail

      • m_TabbedPane

        protected BaseTabbedPane m_TabbedPane
        the tabbed pane.
      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
      • m_MenuItemSave

        protected JMenuItem m_MenuItemSave
        the "save" menu item.
      • m_MenuItemRevert

        protected JMenuItem m_MenuItemRevert
        the "revert" menu item.
      • m_MenuItemClose

        protected JMenuItem m_MenuItemClose
        the "close" menu item.
      • m_ButtonAdd

        protected BaseButton m_ButtonAdd
        the button for adding a placeholder.
      • m_ButtonRemove

        protected BaseButton m_ButtonRemove
        the button for removing the selected placeholders.
      • m_DirChooser

        protected FileChooser m_DirChooser
        the directory chooser for choosing directories.
    • Constructor Detail

      • PlaceholderManagementPanel

        public PlaceholderManagementPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • getMenuBar

        public JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface MenuBarProvider
        Returns:
        the menu bar
      • updateTitle

        protected void updateTitle()
        Updates the title of the dialog.
      • updateMenu

        protected void updateMenu()
        updates the enabled state of the menu items.
      • updateButtons

        protected void updateButtons()
        Updates the state of the buttons.
      • update

        protected void update()
        Updates menu, buttons and title.
      • checkForModified

        protected boolean checkForModified()
        Returns whether we can proceed with the operation or not, depending on whether the user saved the placeholders or discarded the changes. In case of custom placeholdersm the use will never get asked.
        Returns:
        true if safe to proceed
      • save

        protected void save()
        Saves the current placeholders. Ignored if custom placeholders.
      • revert

        protected void revert()
        Reverts the changes. Ignored if custom placeholders.
      • close

        protected void close()
        Closes the dialog or frame.