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.
        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.
        pe - the PropertyEditor
        ignoreCustomPanel - whether to make use of any available custom panel
    • Method Detail

      • initialize

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

        protected void initGUI()
        For initializing the GUI.
        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.
        removeNotify in class JComponent
      • isCustomPanelSupplier

        public boolean isCustomPanelSupplier​(PropertyEditor editor)
        Checks whether the editor supplies its own panel.
        editor - the editor to check
        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.
        setToolTipText in class JComponent
        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.
        the editor