|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.AbstractDisposable | +--gumbo.visualize.data.DataView
Abstract base class for the role of "view" in an MVC-based visualization of client data. A data view serves as an immutable data association object (proxy) between one data model and one graphic view, which is the concrete implementation of this abstract view. Data views are intended to be created by view factories (see DataViewFactory). Data views, unlike data models, are not intended to be serializable.
This object implements the Disposable interface with "fail fast" disposal detection. Any attempt to access this view after it has been disposed will throw an IllegalStateException.
Method Summary | |
DataModel |
getDataModel()
Gets the data model associated with this data view. |
GraphicView |
getGraphicView()
Gets the concrete graphic view implementing this abstract data view. |
protected void |
implDispose()
Disposes the graphic view and nulls the data model. |
void |
initGraphicView(GraphicView graphic)
Used by factories to initialize this view's graphic implementation. |
Methods inherited from class gumbo.util.AbstractDisposable |
dispose, isDisposed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public DataModel getDataModel()
public GraphicView getGraphicView()
java.lang.IllegalStateException
- Graphic has not been set.public void initGraphicView(GraphicView graphic)
graphic
- Reference to the graphic view. Never null.protected void implDispose()
implDispose
in class AbstractDisposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |