com.swfm.mica.view
Interface MiiViewManager

All Superinterfaces:
MiiModelEntity, MiiModelTypes
All Known Implementing Classes:
MiGraphicsBaseViewManager, MiGraphicsTreeViewManager, MiGraphicsViewManager, MiModelPropertyViewManager, MiModelTextViewManager, MiModelTreeListViewManager, MiPaletteViewManager

public interface MiiViewManager
extends MiiModelEntity

This interface specifies the functionality of look-and-feel managers. These managers convert MiiModelDocuments to and from graphics. To this end they may also watch for actions made to the graphics and so update the document accordingly.

This interface extends MiiModelEntity, a rather heavy interface, in order to support the future capability of view managers having properties that allow customization of the view(s) that they generate. Implementers will most likely inherit their view managers from MiModelEntity, which supplies a default working implementation of MiiModelEntity.

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
   
Method Summary
 MiiModelEntity getModel()
          Converts the graphics found in the target view container to a MiiModelDocument.
 MiPart getView()
          Gets the view container.
 void setModel(MiiModelEntity document)
          Loads the target view container with graphics representing the data in the given document.
 void setView(MiPart view)
          Sets the view container.
 
Methods inherited from interface com.swfm.mica.model.MiiModelEntity
appendModelChangeHandler, appendModelEntity, appendModelRelation, appendPropertyChangeHandler, copy, copy, createModelEntity, createModelRelation, deepCopy, deepCopy, deleteSelf, equals, equalsProperties, getChild, getChildren, getEditingPermissions, getIgnoreCase, getIndexOfModelEntity, getLocation, getModelChangeHandler, getModelEntities, getModelEntity, getModelEntity, getModelRelations, getName, getNumberOfModelChangeHandlers, getNumberOfModelEntities, getNumberOfPropertyChangeHandlers, getParent, getPropertiesAreOrdered, getPropertyChangeHandler, getPropertyDescriptions, getPropertyNames, getPropertyValue, getTitle, getType, getUserData, hasUserData, insertModelEntity, insertModelRelation, removeAllModelEntities, removeAllModelRelations, removeAllProperties, removeModelChangeHandler, removeModelEntity, removeModelRelation, removeProperty, removePropertyChangeHandler, removeSelf, replaceSelf, setIgnoreCase, setLocation, setModelChangeEventDispatchingEnabled, setName, setParent, setPropertiesAreOrdered, setPropertyChangeEventDispatchingEnabled, setPropertyDescriptions, setPropertyValue, setTitle, setType, validateModelEntity, validateModelRelation, validatePropertyValue
 

Method Detail

setView

public void setView(MiPart view)
Sets the view container. This container will be loaded with graphics by the #setModel command and will be converted to a MiiModelDocument by the #getModel command.

Parameters:
view - the view container
See Also:
getView()

getView

public MiPart getView()
Gets the view container.


setModel

public void setModel(MiiModelEntity document)
Loads the target view container with graphics representing the data in the given document.

Parameters:
document - the document
See Also:
setView(com.swfm.mica.core.MiPart)

getModel

public MiiModelEntity getModel()
Converts the graphics found in the target view container to a MiiModelDocument.

Returns:
the document
See Also:
setView(com.swfm.mica.core.MiPart)