Package adams.gui.application
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDisposeWindowListener()Adds a window listener to dispose the frame/window.booleancanCreateNewWindow()Returns whether a new window, containing the same panel, can be created.voidcleanUp()Calls the cleanUp() method if the first component is a CleanUpHandler.voiddispose()de-registers the child frame/window with the parent first.LoggergetLogger()Returns the logger.ChildgetNewWindow()Creates a new window of itself.AbstractApplicationFramegetParentFrame()returns the parent frame, can be null.StringgetTitle()Returns the current title.voidrequestFocus()Requests the focus for the child.voidsetTitle(String title)Sets the new title.voidtoFront()Brings the child to the front.
-
-
-
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:
cleanUpin interfaceCleanUpHandler
-
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
-
-