com.swfm.mica.view
Class MiModelTreeListViewManager

java.lang.Object
  extended bycom.swfm.mica.model.MiModelEntity
      extended bycom.swfm.mica.view.MiModelTreeListViewManager
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiModelChangeHandler, MiiModelEntity, MiiModelTypes, MiiPropertyChangeHandler, MiiPropertyTypes, MiiViewManager

public class MiModelTreeListViewManager
extends MiModelEntity
implements MiiViewManager, MiiModelChangeHandler, MiiPropertyChangeHandler

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

Field Summary
         
Constructor Summary
MiModelTreeListViewManager()
           
MiModelTreeListViewManager(boolean readOnly)
           
 
Method Summary
 boolean getAutomaticallyUpdatedWhenModelChangesEnabled()
           
 int getCollapseAllBelowTreeLevel()
           
 Strings getExcludedModelTypes()
           
 MiiModelEntity getModel()
          Converts the graphics found in the target view container to a MiiModelDocument.
 MiPart getView()
          Gets the view container.
 boolean isDisplayingUniqueChildNamesOnly()
           
 void processModelChange(MiModelChangeEvent event)
           
 void processPropertyChange(MiPropertyChange event)
          Process the change of a name of one of the displayed models.
 void setAutomaticallyUpdatedWhenModelChangesEnabled(boolean flag)
           
 void setCollapseAllBelowTreeLevel(int level)
           
 void setDisplayingUniqueChildNamesOnly(boolean flag)
           
 void setEntitiesToDisplay(java.lang.String propertyName, Strings propertyValues)
           
 void setExcludedModelTypes(Strings excludedModelTypes)
           
 void setExcludedPropertyValues(java.lang.String propertyName, Strings propertyValues)
           
 void setModel(MiiModelEntity document)
          Loads the target view container with graphics representing the data in the given document.
 void setPropertyToDisplayAsName(java.lang.String propertyToDisplayAsName)
           
 void setTypeLevelNames(java.lang.String propertyNameToUseToGetType, Strings[] typesForLevels, java.util.Hashtable displayNamesForTypes)
           
 void setView(MiPart view)
          Sets the view container.
 
Methods inherited from class com.swfm.mica.model.MiModelEntity
appendModelChangeHandler, appendModelEntity, appendModelRelation, appendPropertyChangeHandler, copy, copy, createModelEntity, createModelRelation, deepCopy, deepCopy, deleteSelf, dispatchModelChangeEvent, dispatchPropertyChange, dispatchPropertyChangeEvent, dump, dump, equals, equalsProperties, getChild, getChildren, getDefaultPropertyValue, 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, isObservedProperty, isToCopyEntitysRelationsWhenDeepCopyEntity, processAction, removeAllModelEntities, removeAllModelRelations, removeAllProperties, removeModelChangeHandler, removeModelEntity, removeModelRelation, removeProperty, removePropertyChangeHandler, removeSelf, replaceSelf, setIgnoreCase, setLocation, setModelChangeEventDispatchingEnabled, setName, setParent, setPropertiesAreOrdered, setPropertiesToDefaultValues, setPropertyChangeEventDispatchingEnabled, setPropertyDescriptions, setPropertyValue, setTitle, setToCopyEntitysRelationsWhenDeepCopyEntity, setType, toString, toString, validateModelEntity, validateModelRelation, validatePropertyValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

MiModelTreeListViewManager

public MiModelTreeListViewManager()

MiModelTreeListViewManager

public MiModelTreeListViewManager(boolean readOnly)
Method Detail

setTypeLevelNames

public void setTypeLevelNames(java.lang.String propertyNameToUseToGetType,
                              Strings[] typesForLevels,
                              java.util.Hashtable displayNamesForTypes)

setAutomaticallyUpdatedWhenModelChangesEnabled

public void setAutomaticallyUpdatedWhenModelChangesEnabled(boolean flag)

getAutomaticallyUpdatedWhenModelChangesEnabled

public boolean getAutomaticallyUpdatedWhenModelChangesEnabled()

setEntitiesToDisplay

public void setEntitiesToDisplay(java.lang.String propertyName,
                                 Strings propertyValues)

setDisplayingUniqueChildNamesOnly

public void setDisplayingUniqueChildNamesOnly(boolean flag)

isDisplayingUniqueChildNamesOnly

public boolean isDisplayingUniqueChildNamesOnly()

setPropertyToDisplayAsName

public void setPropertyToDisplayAsName(java.lang.String propertyToDisplayAsName)

setExcludedPropertyValues

public void setExcludedPropertyValues(java.lang.String propertyName,
                                      Strings propertyValues)

setExcludedModelTypes

public void setExcludedModelTypes(Strings excludedModelTypes)

getExcludedModelTypes

public Strings getExcludedModelTypes()

setCollapseAllBelowTreeLevel

public void setCollapseAllBelowTreeLevel(int level)

getCollapseAllBelowTreeLevel

public int getCollapseAllBelowTreeLevel()

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.

Specified by:
setView in interface MiiViewManager
Parameters:
view - the view container
See Also:
getView()

getView

public MiPart getView()
Gets the view container.

Specified by:
getView in interface MiiViewManager

setModel

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

Specified by:
setModel in interface MiiViewManager
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.

Specified by:
getModel in interface MiiViewManager
Returns:
the document
See Also:
setView(com.swfm.mica.core.MiPart)

processModelChange

public void processModelChange(MiModelChangeEvent event)
Specified by:
processModelChange in interface MiiModelChangeHandler

processPropertyChange

public void processPropertyChange(MiPropertyChange event)
Process the change of a name of one of the displayed models.

Specified by:
processPropertyChange in interface MiiPropertyChangeHandler
Parameters:
event - the change event