Package ca.cgjennings.apps.arkham
Interface TrackedWindow
-
- All Superinterfaces:
IconProvider
- All Known Implementing Classes:
ScriptConsole
,TrackedWindowProxy
public interface TrackedWindow extends IconProvider
This interface is implemented by windows to be listed in the Window menu. Except forIconProvider.getIcon()
, this interface contains only methods already implemented by windows, so windows to be tracked can either implement this interface directly or else submit a proxy object that creates the window on demand the first time it is made visible.- Since:
- 3.0
- Author:
- Chris Jennings
- See Also:
StrangeEonsAppWindow.startTracking(ca.cgjennings.apps.arkham.TrackedWindow)
,TrackedWindowProxy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getTitle()
Returns the window title.boolean
requestFocusInWindow()
Requests that the window be given focus, if it is focusable.void
setVisible(boolean visible)
Makes the tracked window visible or invisible.void
toFront()
Moves the tracked window to the front; only called after the window is made visible.-
Methods inherited from interface ca.cgjennings.ui.IconProvider
getIcon
-
-
-
-
Method Detail
-
getTitle
java.lang.String getTitle()
Returns the window title.- Returns:
- the title of the window, as shown in the menu
-
setVisible
void setVisible(boolean visible)
Makes the tracked window visible or invisible.- Parameters:
visible
- whether the window should be made visible
-
toFront
void toFront()
Moves the tracked window to the front; only called after the window is made visible.
-
requestFocusInWindow
boolean requestFocusInWindow()
Requests that the window be given focus, if it is focusable.- Returns:
false
if the request will certainly fail
-
-