|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.window.descriptor.AbstractGUIWindowDescriptor<B>
B - Type of data for the windowpublic abstract class AbstractGUIWindowDescriptor<B>
Window descriptor that provides common attributes and methods.
| Constructor Summary | |
|---|---|
AbstractGUIWindowDescriptor()
|
|
| Method Summary | ||
|---|---|---|
void |
activateView(GUIWindow<B> window,
GUIView<?> view)
Does nothing. |
|
protected void |
arrange(GUIWindow<B> window)
Arranges the content of the window. |
|
protected void |
arrangeActionBars(GUIWindow<B> window)
Creates and setup the action bars (menu bars, tool bars, action bars). |
|
protected abstract void |
arrangeViews(GUIWindow<B> window)
Arranges the views inside the window. |
|
protected abstract void |
arrangeWindow(GUIWindow<B> window)
Arranges the window. |
|
GUIWindow<B> |
createWindow(GUIApplication application,
B windowData)
Creates a new window. |
|
ActionFactory |
getActionFactory()
Gets the action factory. |
|
GUIAction |
getCloseAction()
Returns the action to call when the window is about to be closed |
|
String |
getIconId()
Gets the icon id. |
|
IconService |
getIconService()
Gets the icon service. |
|
ActionPathList |
getMenuBar()
Gets the ActionPathList that defines the menu bar for this
window. |
|
WindowSize |
getSize()
Gets the size. |
|
String |
getTitleExpression()
Gets the title expression. |
|
List<ToolBar> |
getToolBars()
Returns the list of tool bars for this window. |
|
GUIWindow<B> |
getWindow(GUIApplication application,
B windowData)
Gets an already opened window for the given model. |
|
String |
getWindowId()
Gets the id. |
|
String |
getWindowId(B windowData)
Gets the ID of a window model. |
|
List<GUIWindowListener<B>> |
getWindowListeners()
|
|
void |
hideView(GUIWindow<B> window,
GUIView<?> view)
Does nothing. |
|
protected
|
initViewComponent(GUIWindow<B> window,
GUIView<V> view,
GUIViewDecorator additionalViewDecorator,
DecorationStyle decorationStyle)
Initialises a view before its usage in this window. |
|
void |
onCloseWindow(GUIWindow<B> window)
Action to execute when a window is closed. |
|
void |
onClosingWindow(GUIWindow<B> window)
Does nothing y default |
|
void |
onOpenedWindow(GUIWindow<B> window)
Does nothing |
|
void |
setActionFactory(ActionFactory actionFactory)
Sets the action factory. |
|
void |
setBeanName(String name)
|
|
void |
setCloseAction(GUIAction closeAction)
Sets the close action. |
|
void |
setIconId(String iconId)
Sets the icon id. |
|
void |
setIconService(IconService iconService)
Sets the icon service. |
|
void |
setMenuBar(ActionPathList menuBar)
Sets the ActionPathList that defines the menu bar for this
window. |
|
void |
setSize(WindowSize size)
Sets the size. |
|
void |
setTitleExpression(String titleExpression)
Sets the title expression. |
|
void |
setToolBars(List<ToolBar> toolBars)
Sets the list of tool bars for this window |
|
void |
setWindowFactory(GUIWindowFactory windowFactory)
Sets the factory for the window implementation. |
|
void |
setWindowId(String id)
Sets the id. |
|
void |
setWindowListeners(List<GUIWindowListener<B>> windowListeners)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.gui.window.descriptor.GUIWindowDescriptor |
|---|
openView |
| Constructor Detail |
|---|
public AbstractGUIWindowDescriptor()
| Method Detail |
|---|
public void activateView(GUIWindow<B> window,
GUIView<?> view)
activateView in interface GUIWindowDescriptor<B>window - the windowview - the viewGUIView.show()protected void arrange(GUIWindow<B> window)
window - Window to arrangeprotected void arrangeActionBars(GUIWindow<B> window)
window - Windowprotected abstract void arrangeViews(GUIWindow<B> window)
window - Window to arrangeprotected abstract void arrangeWindow(GUIWindow<B> window)
window - Window
public GUIWindow<B> createWindow(GUIApplication application,
B windowData)
GUIWindowDescriptor
createWindow in interface GUIWindowDescriptor<B>application - Application ownerwindowData - Data for the window
public ActionFactory getActionFactory()
getActionFactory in interface GUIWindowDescriptor<B>public GUIAction getCloseAction()
getCloseAction in interface GUIWindowDescriptor<B>public String getIconId()
public IconService getIconService()
public ActionPathList getMenuBar()
ActionPathList that defines the menu bar for this
window.
null if no menu bar is
neededpublic WindowSize getSize()
getSize in interface GUIWindowDescriptor<B>public String getTitleExpression()
public List<ToolBar> getToolBars()
public GUIWindow<B> getWindow(GUIApplication application,
B windowData)
GUIWindowDescriptorid expression of the window descriptor.
getWindow in interface GUIWindowDescriptor<B>application - Application ownerwindowData - Data for the window
null otherwise.public String getWindowId()
public String getWindowId(B windowData)
getWindowId in interface GUIWindowDescriptor<B>windowData - Window model
public List<GUIWindowListener<B>> getWindowListeners()
getWindowListeners in interface GUIWindowDescriptor<B>
public void hideView(GUIWindow<B> window,
GUIView<?> view)
hideView in interface GUIWindowDescriptor<B>window - the windowview - the view
protected <V> JComponent initViewComponent(GUIWindow<B> window,
GUIView<V> view,
GUIViewDecorator additionalViewDecorator,
DecorationStyle decorationStyle)
V - Type of bean for the viewwindow - Hosting windowview - View to initialiseadditionalViewDecorator - Decorator for the viewdecorationStyle - Style for the decoration
public void onCloseWindow(GUIWindow<B> window)
GUIWindowDescriptor
onCloseWindow in interface GUIWindowDescriptor<B>window - Closed windowpublic void onClosingWindow(GUIWindow<B> window)
onClosingWindow in interface GUIWindowDescriptor<B>window - Window to closepublic void onOpenedWindow(GUIWindow<B> window)
onOpenedWindow in interface GUIWindowDescriptor<B>window - Window which is opened for the very first timepublic void setActionFactory(ActionFactory actionFactory)
actionFactory - the new action factorypublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setCloseAction(GUIAction closeAction)
closeAction - the new close actionpublic void setIconId(String iconId)
iconId - the new icon idpublic void setIconService(IconService iconService)
iconService - the new icon servicepublic void setMenuBar(ActionPathList menuBar)
ActionPathList that defines the menu bar for this
window. It is set to null by default.
menuBar - List of action pathspublic void setSize(WindowSize size)
size - the new sizepublic void setTitleExpression(String titleExpression)
titleExpression - the new title expressionpublic void setToolBars(List<ToolBar> toolBars)
toolBars - List of tool barspublic void setWindowFactory(GUIWindowFactory windowFactory)
FrameWindowFactory.
windowFactory - Factory for the window implementationpublic void setWindowId(String id)
id - the new idpublic void setWindowListeners(List<GUIWindowListener<B>> windowListeners)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||