Class DetachablePanel

    • Field Detail

      • m_ContentPanel

        protected BasePanel m_ContentPanel
        the content panel.
      • m_DetachedFrame

        protected BaseFrame m_DetachedFrame
        the frame for detaching the component.
      • m_PanelReattach

        protected BasePanel m_PanelReattach
        the panel with a "reattach" frame.
      • m_ButtonReattach

        protected BaseButton m_ButtonReattach
        the button for reattaching.
      • m_FrameTitle

        protected String m_FrameTitle
        the frame title to use.
      • m_LastFrameSize

        protected Dimension m_LastFrameSize
        the last size of the frame.
      • m_LastFramePosition

        protected Point m_LastFramePosition
        the last position of the frame.
      • m_DetachListeners

        protected Set<ChangeListener> m_DetachListeners
        the detach listeners.
      • m_ReattachListeners

        protected Set<ChangeListener> m_ReattachListeners
        the reattach listeners.
    • Constructor Detail

      • DetachablePanel

        public DetachablePanel()
    • Method Detail

      • initialize

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

        protected void initGUI()
        Initializes the widgets.
        initGUI in class BasePanel
      • getContentPanel

        public BasePanel getContentPanel()
        Returns the content panel where to add the other widgets.
        the panel for the content
      • isDetached

        public boolean isDetached()
        Returns whether the content is currently detached and displayed in a frame.
        true if detached
      • detach

        public void detach()
        Detaches the content into a separate frame.
      • reattach

        public void reattach()
        Reattaches the content from a separate frame.
      • setPopupMenuCustomizer

        public void setPopupMenuCustomizer​(PopupMenuCustomizer<DetachablePanel> value)
        Sets the popup customizer to use.
        value - the customizer, can be null
      • getPopupMenuCustomizer

        public PopupMenuCustomizer<DetachablePanel> getPopupMenuCustomizer()
        Returns the current popup customizer in use.
        the customizer, null if none set
      • createPopupMenu

        protected JPopupMenu createPopupMenu()
        Creates and returns the popup menu.
        the menu
      • setFrameTitle

        public void setFrameTitle​(String value)
        Sets the frame title to use.
        value - the title for the detached frame
      • getFrameTitle

        public String getFrameTitle()
        Returns the frame title to use.
        the title fro the detached frame
      • addDetachListener

        public void addDetachListener​(ChangeListener l)
        Adds the listener for detach events.
        l - the listener to add
      • removeDetachListener

        public void removeDetachListener​(ChangeListener l)
        Removes the listener for detach events.
        l - the listener to remove
      • clearDetachListeners

        public void clearDetachListeners()
        Removes all detach event listeners.
      • notifyDetachListeners

        protected void notifyDetachListeners()
        Notifies all detach listeners.
      • addReattachListener

        public void addReattachListener​(ChangeListener l)
        Adds the listener for reattach events.
        l - the listener to add
      • removeReattachListener

        public void removeReattachListener​(ChangeListener l)
        Removes the listener for reattach events.
        l - the listener to remove
      • clearReattachListeners

        public void clearReattachListeners()
        Removes all reattach event listeners.
      • notifyReattachListeners

        protected void notifyReattachListeners()
        Notifies all reattach listeners.
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface CleanUpHandler