Package adams.gui.goe

Class GenericObjectEditorClassTreePanel

    • Field Detail

      • m_PanelInfo

        protected JPanel m_PanelInfo
        the info panel at the top.
      • m_LabelInfo

        protected JLabel m_LabelInfo
        the info text at the top.
      • m_Tree

        protected ClassTree m_Tree
        The tree.
      • m_ScrollPane

        protected BaseScrollPane m_ScrollPane
        The scroll pane.
      • m_CloseButton

        protected BaseButton m_CloseButton
        The button for closing the popup again.
      • m_PanelFilterArea

        protected JPanel m_PanelFilterArea
        the panel for the filter.
      • m_PanelFilter

        protected FilterPanel m_PanelFilter
        the filter text box.
      • m_CheckBoxFilter

        protected BaseCheckBox m_CheckBoxFilter
        The checkbox for enabling/disabling the class tree filter.
      • m_CheckBoxStrict

        protected BaseCheckBox m_CheckBoxStrict
        The checkbox for enabling/disabling strict filtering.
      • m_MinimumChars

        protected int m_MinimumChars
        the minimum number of characters before triggering search events.
    • Constructor Detail

      • GenericObjectEditorClassTreePanel

        public GenericObjectEditorClassTreePanel​(ClassTree tree)
        Constructs a new popup menu.
        Parameters:
        tree - the tree to put in the menu
    • Method Detail

      • initGUI

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

        public void setMinimumChars​(int value)
        Sets the minimum number of characters that the user needs to enter before triggering a search event.
        Parameters:
        value - the minimum number of characters (>= 1)
      • getMinimumChars

        public int getMinimumChars()
        Returns the minimum number of characters that the user needs to enter before triggering a search event.
        Returns:
        the minimum number of characters (>= 1)
      • setInfoText

        public void setInfoText​(String value)
        Sets the info text to display at the top. Use "_" before the character to use as the mnemonic for jumping into the tree via the keyboard.
        Parameters:
        value - the info text, null or empty to remove
      • getInfoText

        public String getInfoText()
        Returns the current info text, if any.
        Returns:
        the text, empty if none displayed
      • getScrollPane

        public BaseScrollPane getScrollPane()
        Returns the scroll pane.
        Returns:
        the scroll pane
      • setCloseButtonVisible

        public void setCloseButtonVisible​(boolean value)
        Sets whether the close button is visible or not.
        Parameters:
        value - true if visible
      • isCloseButtonVisible

        public boolean isCloseButtonVisible()
        Returns whether the close button is visible.
        Returns:
        true if visible
      • focusSearch

        public void focusSearch()
        Focus the search text field.
      • updateFilterPanel

        public void updateFilterPanel()
        Updates whether the filter panel is visible.
      • setReadOnly

        public void setReadOnly​(boolean value)
        Sets the readonly state.
        Parameters:
        value - true if readonly
      • isReadOnly

        public boolean isReadOnly()
        Returns the readonly state.
        Returns:
        true if readonly