|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.view.support.AbstractGUIView<V>
V - Type of object for the viewpublic abstract class AbstractGUIView<V>
Abstract view
| Constructor Summary | |
|---|---|
AbstractGUIView(GUIWindow<?> parentWindow,
GUIViewDescriptor<V> viewDescriptor,
V model)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addViewListener(GUIViewListener<V> listener)
Adds a listener for the view life-cycle |
void |
close()
Actually closes the view |
boolean |
close(boolean force)
Delegates to the view descriptor. |
protected void |
fireClosed()
Fires that this view is closed. |
protected void |
fireInit()
Fires that this view is initialised. |
protected void |
fireShown()
Fires that this view is shown. |
ActionContext |
getActionContext()
Gets the action context for this view |
GUIApplication |
getApplication()
Gets the application. |
String |
getID()
Gets the ID for the view |
GUIWindow<?> |
getParentWindow()
Gets the parent window. |
Object |
getProperty(Object key)
Retrieves a property from this view |
V |
getViewData()
Gets the model. |
GUIViewDescriptor<V> |
getViewDescriptor()
Gets the view descriptor. |
protected Collection<GUIViewListener<V>> |
getViewListenerArray()
Gets the list of view listeners |
void |
init()
This method when the view is created. |
boolean |
isClosed()
Returns true if the view is closed. |
void |
removeViewListener(GUIViewListener<V> listener)
Removes a listener for the view life-cycle |
void |
setProperty(Object key,
Object value)
Attaches a property to the view. |
void |
show()
Shows the view |
| 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.GUIView |
|---|
getViewComponent, installToolBar |
| Constructor Detail |
|---|
public AbstractGUIView(GUIWindow<?> parentWindow,
GUIViewDescriptor<V> viewDescriptor,
V model)
parentWindow - Parent windowmodel - View modelviewDescriptor - the view descriptor| Method Detail |
|---|
public void addViewListener(GUIViewListener<V> listener)
GUIView
addViewListener in interface GUIView<V>listener - Listener to addpublic void close()
GUIView
close in interface GUIView<V>public boolean close(boolean force)
close in interface GUIView<V>force - true if the view must be closed.
true if the view could be closedprotected void fireClosed()
GUIViewListener.onViewClosed(GUIView)protected void fireInit()
GUIViewListener.onViewInit(GUIView)protected void fireShown()
GUIViewListener.onViewShown(GUIView)public ActionContext getActionContext()
GUIView
getActionContext in interface GUIView<V>public GUIApplication getApplication()
getApplication in interface GUIView<V>public String getID()
getID in interface GUIView<V>GUIViewDescriptor.getID(Object)public GUIWindow<?> getParentWindow()
getParentWindow in interface GUIView<V>public Object getProperty(Object key)
getProperty in interface PropertyContainerkey - Property key
null if not definedpublic V getViewData()
getViewData in interface GUIView<V>public GUIViewDescriptor<V> getViewDescriptor()
getViewDescriptor in interface GUIView<V>protected Collection<GUIViewListener<V>> getViewListenerArray()
public void init()
GUIView
init in interface GUIView<V>public boolean isClosed()
GUIViewtrue if the view is closed.
isClosed in interface GUIView<V>true if the view is closed.public void removeViewListener(GUIViewListener<V> listener)
GUIView
removeViewListener in interface GUIView<V>listener - Listener to remove
public void setProperty(Object key,
Object value)
value is
null, the property will be removed from the view instead.
setProperty in interface PropertyContainerkey - Property keyvalue - Property valuepublic void show()
GUIView
show in interface GUIView<V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||