|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
B - Type of data for the windowpublic interface GUIWindow<B>
This interface defines a main application window.
| Method Summary | ||
|---|---|---|
void |
addGUIWindowListener(GUIWindowListener<B> listener)
Adds a listener for the window |
|
void |
addView(GUIView<?> view)
Registers a new view in this window |
|
void |
build(GUIApplication application,
GUIWindowDescriptor<B> windowDescriptor,
B windowData)
Builds and initializes the window. |
|
boolean |
canClose()
Checks if the window can be closed |
|
void |
close()
Closes the window. |
|
void |
display()
Displays the window on the screen. |
|
ActionContext |
getActionContext()
Gets the action context for this window |
|
GUIApplication |
getApplication()
Gets the application. |
|
String |
getId()
Gets the ID for this window |
|
Collection<? extends GUIView<?>> |
getOpenViews()
List of open views |
|
|
getView(String viewId)
Gets an already opened view |
|
B |
getWindowData()
Returns the window data |
|
GUIWindowDescriptor<B> |
getWindowDescriptor()
Gets the window descriptor. |
|
JPanel |
getWindowPanel()
Content panel. |
|
void |
installMenuBar(String id,
ActionBarContext menuBar)
Installs a menu bar in the window for a given context (which can be different form the window's one) |
|
void |
installToolBar(ToolBar toolBar,
ActionContext actionContext)
Installs a tool bar in the window |
|
boolean |
isClosed()
Checks if the window is closed |
|
void |
onPostCreate()
This method is called when the window has been fully created |
|
void |
removeView(GUIView<?> view)
Hides a view |
|
void |
setWindowIcon(Icon icon)
Sets the icon for the window |
|
void |
setWindowTitle(String value)
Sets the window title. |
|
void |
showView(GUIView<?> view)
Activates a view |
|
void |
uninstallMenuBar(String id)
Uninstalls a menu bar with the given id |
|
void |
uninstallToolBar(String id)
Uninstalls a tool bar with the given id |
|
| Methods inherited from interface net.sf.doolin.gui.util.PropertyContainer |
|---|
getProperty, setProperty |
| Method Detail |
|---|
void addGUIWindowListener(GUIWindowListener<B> listener)
listener - Window listenervoid addView(GUIView<?> view)
view - View to register
void build(GUIApplication application,
GUIWindowDescriptor<B> windowDescriptor,
B windowData)
application - Owning applicationwindowDescriptor - The window descriptorwindowData - Associated databoolean canClose()
true if the window can be closedvoid close()
void display()
ActionContext getActionContext()
GUIApplication getApplication()
String getId()
Collection<? extends GUIView<?>> getOpenViews()
<V> GUIView<V> getView(String viewId)
V - Type of data for the viewviewId - View ID
null.B getWindowData()
GUIWindowDescriptor<B> getWindowDescriptor()
JPanel getWindowPanel()
void removeView(GUIView<?> view)
view - View to hide
void installMenuBar(String id,
ActionBarContext menuBar)
id - ID of the menu barmenuBar - Action bar context
void installToolBar(ToolBar toolBar,
ActionContext actionContext)
toolBar - Tool bar to installactionContext - Action contextboolean isClosed()
true if the window is closedvoid onPostCreate()
void setWindowIcon(Icon icon)
icon - Icon to setvoid setWindowTitle(String value)
value - Window titlevoid showView(GUIView<?> view)
view - View to activatevoid uninstallMenuBar(String id)
id - ID of the menu bar to uninstallvoid uninstallToolBar(String id)
id - ID of the tool bar to uninstall
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||