|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for a factory that creates data views and their graphic implementations. Implementations support a specific type of presentation (graph, tree, list, etc.) using a specific type of native graphics (Swing, Java 3D, JOGL, etc.). By convention, the view factory is responsible for initiating updates to a view, including its layout, but implementation of the layout is left to the client, graphic, and/or a layout engine (see LayoutWholeView). A factory can be stateless, in which case it can be a singleton, or it can be stateful, maintaining the current whole view.
To assure proper coordination of view update and disposal, clients must use the methods in this class and its subclasses and not the dispose() methods in the whole and part data views and graphic views.
Method Summary | |
void |
disposeWholeView(WholeView wholeView)
Called by the client to destroy a whole view compatible with this factory, including the view's graphic implementation and any part views and their graphic implementations. |
WholeView |
newWholeView(WholeModel wholeModel)
Called by the client to create a new whole view of a whole model, including its graphic implementation and any part views and their graphic implementations. |
Method Detail |
public WholeView newWholeView(WholeModel wholeModel)
wholeModel
- The whole model. Never null.
java.lang.UnsupportedOperationException
- Unsupported whole or part
data model type.public void disposeWholeView(WholeView wholeView)
wholeView
- The whole view. Never null.
java.lang.UnsupportedOperationException
- Unsupported whole or part
data model type.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |