Package adams.gui.goe

Class PropertyPanel

    • Field Detail

      • m_HasCustomPanel

        protected boolean m_HasCustomPanel
        Whether the editor has provided its own panel.
      • m_ButtonProperties

        protected BaseButton m_ButtonProperties
        the button for bringing up the properties.
      • m_PanelText

        protected BasePanel m_PanelText
        the panel to draw the text on.
      • m_PanelCustom

        protected JPanel m_PanelCustom
        the custom panel, if any.
    • Constructor Detail

      • PropertyPanel

        public PropertyPanel​(PropertyEditor pe)
        Create the panel with the supplied property editor.
        Parameters:
        pe - the PropertyEditor
      • PropertyPanel

        public PropertyPanel​(PropertyEditor pe,
                             boolean ignoreCustomPanel)
        Create the panel with the supplied property editor, optionally ignoring any custom panel the editor can provide.
        Parameters:
        pe - the PropertyEditor
        ignoreCustomPanel - whether to make use of any available custom panel
    • Method Detail

      • initialize

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

        protected void initGUI()
        For initializing the GUI.
        Overrides:
        initGUI in class BasePanel
      • createDefaultPanel

        protected void createDefaultPanel()
        Creates the default style of panel for editors that do not supply their own.
      • showPropertyDialog

        public void showPropertyDialog()
        Displays the property edit dialog for the panel.
      • removeNotify

        public void removeNotify()
        Cleans up when the panel is destroyed.
        Overrides:
        removeNotify in class JComponent
      • isCustomPanelSupplier

        public boolean isCustomPanelSupplier​(PropertyEditor editor)
        Checks whether the editor supplies its own panel.
        Parameters:
        editor - the editor to check
        Returns:
        true if the editor supplies its own panel
      • setToolTipText

        public void setToolTipText​(String text)
        Registers the text to display in a tool tip. The text displays when the cursor lingers over the component.

        Forwards the tool tip to its sub-panels.
        Overrides:
        setToolTipText in class JComponent
        Parameters:
        text - the string to display; if the text is null, the tool tip is turned off for this component
        See Also:
        m_PanelText, m_PanelCustom
      • getPropertyEditor

        public PropertyEditor getPropertyEditor()
        Returns the property editor.
        Returns:
        the editor