|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.view.descriptor.AbstractGUIViewDescriptor<V>
V - Type of object for the viewpublic abstract class AbstractGUIViewDescriptor<V>
Abstract view descriptor.
| Constructor Summary | |
|---|---|
AbstractGUIViewDescriptor()
|
|
| Method Summary | ||
|---|---|---|
boolean |
close(GUIView<V> view,
boolean force)
Closes the view |
|
ActionFactory |
getActionFactory()
Returns the action factory |
|
GUIAction |
getCloseAction()
Gets the close action. |
|
String |
getIconId()
Gets the icon id |
|
String |
getID(V model)
Gets the ID for the view (can depend on the model) |
|
String |
getParentViewId()
Gets the ID of any parent view for this view. |
|
String |
getTitleExpression()
Gets the title expression. |
|
GUIValidator<V> |
getValidator()
Gets the validator. |
|
GUIViewDecorator |
getViewDecorator()
Additional decorator for the view |
|
String |
getViewId()
Gets the view id. |
|
List<ViewSubscriber<V>> |
getViewSubscribers()
Gets the list of ViewSubscriber to execute for the view |
|
ActionPathList |
getViewToolBar()
Gets the tool bar definition for this view |
|
ActionPathList |
getWindowMenuBar()
Gets the definition of any view-specific menu bar to merge with the window's menu bar. |
|
ToolBar |
getWindowToolBar()
Gets the definition of any view-specific tool bar to merge with the window tool bars. |
|
protected void |
initView(GUIView<V> view)
General initialisation of the view. |
|
protected void |
onActivateView(GUIView<V> view)
Activates the view and its tool bars. |
|
protected
|
registerParent(GUIView<V> view,
GUIView<P> parentView)
Notifies the parent view that a view has been added to it |
|
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 |
setParentViewId(String parentViewId)
Sets the expression that designates the ID of the parent view |
|
void |
setTitleExpression(String titleExpression)
Sets the title expression. |
|
void |
setValidator(GUIValidator<V> validator)
Sets the validator. |
|
void |
setViewDecorator(GUIViewDecorator viewDecorator)
Sets the view decorator. |
|
void |
setViewId(String viewId)
Sets the expression for the view id. |
|
void |
setViewSubscribers(List<ViewSubscriber<V>> viewSubscribers)
Sets the list of ViewSubscriber to execute for the view |
|
void |
setViewToolBar(ActionPathList viewToolBar)
Sets the tool bar definition for this view |
|
void |
setWindowMenuBar(ActionPathList windowMenuBar)
Sets the definition of any view-specific menu bar to merge with the window's menu bar. |
|
void |
setWindowToolBar(ToolBar windowToolBar)
Sets the definition of any view-specific tool bar to merge with the window tool bars. |
|
| 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.view.descriptor.GUIViewDescriptor |
|---|
createView, initState |
| Constructor Detail |
|---|
public AbstractGUIViewDescriptor()
| Method Detail |
|---|
public boolean close(GUIView<V> view,
boolean force)
close in interface GUIViewDescriptor<V>view - View to closeforce - true if the view must be closed.
true if the view could be closedpublic ActionFactory getActionFactory()
GUIViewDescriptor
getActionFactory in interface GUIViewDescriptor<V>public GUIAction getCloseAction()
public String getIconId()
getIconId in interface GUIViewDescriptor<V>public String getID(V model)
getID in interface GUIViewDescriptor<V>model - the model
public String getParentViewId()
public String getTitleExpression()
getTitleExpression in interface GUIViewDescriptor<V>public GUIValidator<V> getValidator()
getValidator in interface GUIViewDescriptor<V>public GUIViewDecorator getViewDecorator()
getViewDecorator in interface GUIViewDescriptor<V>public String getViewId()
getViewId in interface GUIViewDescriptor<V>public List<ViewSubscriber<V>> getViewSubscribers()
ViewSubscriber to execute for the view
ViewSubscriberpublic ActionPathList getViewToolBar()
public ActionPathList getWindowMenuBar()
public ToolBar getWindowToolBar()
protected void initView(GUIView<V> view)
view - View to initialiseprotected void onActivateView(GUIView<V> view)
view - View
protected <P> void registerParent(GUIView<V> view,
GUIView<P> parentView)
P - Type of bean for the parent viewview - Child viewparentView - Parent view to register the child view intopublic 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 setParentViewId(String parentViewId)
parentViewId - Expression that designates the ID of the parent viewpublic void setTitleExpression(String titleExpression)
titleExpression - the new title expressionpublic void setValidator(GUIValidator<V> validator)
validator - the new validatorpublic void setViewDecorator(GUIViewDecorator viewDecorator)
viewDecorator - the new view decoratorpublic void setViewId(String viewId)
viewId - the new view idpublic void setViewSubscribers(List<ViewSubscriber<V>> viewSubscribers)
ViewSubscriber to execute for the view
viewSubscribers - List of ViewSubscriberpublic void setViewToolBar(ActionPathList viewToolBar)
viewToolBar - Tool bar definition or null if none is neededpublic void setWindowMenuBar(ActionPathList windowMenuBar)
windowMenuBar - Menu bar definition or null if none is neededpublic void setWindowToolBar(ToolBar windowToolBar)
windowToolBar - Tool bar definition or null if none is needed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||