Interface Child

  • All Superinterfaces:
    CleanUpHandler
    All Known Implementing Classes:
    ChildFrame

    public interface Child
    extends CleanUpHandler
    The interface for the child frames/windows.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • getParentFrame

        AbstractApplicationFrame getParentFrame()
        returns the parent frame, can be null.
        Returns:
        the parent frame
      • getTitle

        String getTitle()
        Returns the current title.
        Returns:
        the title
      • setTitle

        void setTitle​(String title)
        Sets the new title.
        Parameters:
        title - the new title
      • cleanUp

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

        void dispose()
        de-registers the child frame/window with the parent first.
      • canCreateNewWindow

        boolean canCreateNewWindow()
        Returns whether a new window, containing the same panel, can be created.
        Returns:
        true if a new window can be created
      • getNewWindow

        Child getNewWindow()
        Creates a new window of itself.
        Returns:
        the new window, or null if not possible
      • addDisposeWindowListener

        void addDisposeWindowListener()
        Adds a window listener to dispose the frame/window.
      • toFront

        void toFront()
        Brings the child to the front.
      • requestFocus

        void requestFocus()
        Requests the focus for the child.
      • getLogger

        Logger getLogger()
        Returns the logger.
        Returns:
        the logger