Class ChildFrame

    • Field Detail

      • serialVersionUID

        protected static final long serialVersionUID
        for serialization.
        See Also:
        Constant Field Values
      • m_Self

        protected ChildFrame m_Self
        the frame itself.
      • m_DisposeCalled

        protected boolean m_DisposeCalled
        whether the dispose method has been called already manually.
      • m_InitialTitle

        protected String m_InitialTitle
        the initial title.
      • m_IconName

        protected String m_IconName
        the name of the icon to use.
      • m_DisposeWindowListenerAdded

        protected boolean m_DisposeWindowListenerAdded
        whether a window listener to dispose the frame was added.
    • Constructor Detail

      • ChildFrame

        public ChildFrame​(AbstractApplicationFrame parent,
                          String title)
        Constructs a new frame that knows about its parent.
        Parameters:
        parent - the parent frame
        title - the title of the frame
      • ChildFrame

        public ChildFrame​(AbstractApplicationFrame parent,
                          String title,
                          String icon)
        Constructs a new frame that knows about its parent.
        Parameters:
        parent - the parent frame
        title - the title of the frame
        icon - the name of the icon to use, null to use default
    • Method Detail

      • performInitialization

        protected void performInitialization()
        Contains all the initialization steps to perform.
        Overrides:
        performInitialization in class BaseFrame
      • initialize

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

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BaseFrame
      • setTitle

        public void setTitle​(String title)
        Sets the new title.
        Specified by:
        setTitle in interface Child
        Overrides:
        setTitle in class Frame
        Parameters:
        title - the new title
      • cleanUp

        public void cleanUp()
        Calls the cleanUp() method if the first component is a CleanUpHandler.
        Specified by:
        cleanUp in interface Child
        Specified by:
        cleanUp in interface CleanUpHandler
      • dispose

        public void dispose()
        de-registers the child frame with the parent first.
        Specified by:
        dispose in interface Child
        Overrides:
        dispose in class Window
      • canCreateNewWindow

        public boolean canCreateNewWindow()
        Returns whether a new window, containing the same panel, can be created.
        Specified by:
        canCreateNewWindow in interface Child
        Returns:
        true if a new window can be created
      • getNewWindow

        public ChildFrame getNewWindow()
        Creates a new window of itself.
        Specified by:
        getNewWindow in interface Child
        Returns:
        the new window, or null if not possible
      • addDisposeWindowListener

        public void addDisposeWindowListener()
        Adds a window listener to dispose the frame.
        Specified by:
        addDisposeWindowListener in interface Child