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 void
addDisposeWindowListener()
Adds a window listener to dispose the frame/window.boolean
canCreateNewWindow()
Returns whether a new window, containing the same panel, can be created.void
cleanUp()
Calls the cleanUp() method if the first component is a CleanUpHandler.void
dispose()
de-registers the child frame/window with the parent first.Logger
getLogger()
Returns the logger.Child
getNewWindow()
Creates a new window of itself.AbstractApplicationFrame
getParentFrame()
returns the parent frame, can be null.String
getTitle()
Returns the current title.void
requestFocus()
Requests the focus for the child.void
setTitle(String title)
Sets the new title.void
toFront()
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:
cleanUp
in 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
-
-