com.swfm.mica.view
Class MiModelPropertyViewManager

java.lang.Object
  extended bycom.swfm.mica.model.MiModelEntity
      extended bycom.swfm.mica.view.MiModelPropertyViewManager
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiCommandNames, MiiModelEntity, MiiModelTypes, MiiPropertyChangeHandler, MiiPropertyTypes, MiiTypes, MiiViewManager
Direct Known Subclasses:
MiModelPropertyListViewManager, MiModelPropertyViewManagers

public class MiModelPropertyViewManager
extends MiModelEntity
implements MiiViewManager, MiiPropertyChangeHandler, MiiActionHandler, MiiActionTypes, MiiCommandNames, MiiPropertyTypes, MiiTypes


Field Summary
static java.lang.String Mi_HAS_CHANGED_PROPERTY
           
static MiPropertyViewManagerStyle Mi_MAKE_PROPERTY_PANEL_FOR_ALL_PROPERTY_CLASSES_STYLE
           
static MiPropertyViewManagerStyle Mi_MAKE_PROPERTY_PANEL_FOR_TOP_PROPERTY_CLASS_ONLY_STYLE
           
static MiPropertyViewManagerStyle Mi_MAKE_SEPARATE_PROPERTY_PANEL_FOR_EACH_PROPERTY_CLASS_STYLE
           
static java.lang.String Mi_MODEL_HAS_CHANGED_PROPERTY
           
             
Constructor Summary
MiModelPropertyViewManager()
           
MiModelPropertyViewManager(MiDialogBoxTemplate dialogBox, MiiModelEntity model)
           
MiModelPropertyViewManager(MiiModelEntity model)
           
MiModelPropertyViewManager(MiiModelEntity model, int numberOfPanelColumns)
           
MiModelPropertyViewManager(MiiModelEntity model, int numberOfPanelColumns, boolean scrollablePanels, Strings displayOnlyTheseProperties)
           
MiModelPropertyViewManager(MiiModelEntity model, int numberOfPanelColumns, boolean scrollablePanels, Strings displayOnlyTheseProperties, MiPropertyViewManagerStyle style)
           
MiModelPropertyViewManager(MiPropertyViewManagerStyle style)
           
 
Method Summary
static MiPropertyPanel buildPanel(MiPropertyDescriptions descs, Strings displayOnlyTheseProperties, Strings displayedProperties, boolean scrollable, int numberOfColumns, java.util.Hashtable propertyPanelCache, MiiActionHandler widgetValueChangeHandler)
           
static MiPart buildPanels(MiiModelEntity model, Strings displayOnlyTheseProperties, MiParts propertyPanels, Strings displayedProperties, boolean scrollable, int numberOfColumns, java.util.Hashtable propertyPanelCache, MiiActionHandler widgetValueChangeHandler, MiPropertyViewManagerStyle style)
           
 MiDialogBoxTemplate getDialogBox()
           
 java.lang.String getFieldValue(java.lang.String name)
           
 MiWidget getFieldWidget(java.lang.String name)
           
 boolean getGenerateUndoableTransactions()
           
 MiPart getGraphics()
           
 MiiModelEntity getInspectedModel()
           
 MiParts getInspectedPanels()
           
 MiiModelEntity getModel()
          Converts the graphics found in the target view container to a MiiModelDocument.
 int getNumberOfPanelColumns()
           
static MiPropertyDescriptions getPropertyDescriptions(MiiModelEntity model)
           
static java.util.Properties getPropertyValues(MiiModelEntity model, Strings lookForTheseProperties, Strings propertiesReturned)
           
 MiPropertyViewManagerStyle getStyle()
           
 MiPart getView()
          Gets the view container.
 boolean hasValidationErrors()
           
 boolean isApplyingEveryChange()
           
 boolean isApplyingEveryCharacterChange()
           
 boolean isBuilt()
           
 boolean isUpdatingModelbyUserOnlyIfAllNewValuesValid()
           
static MiPropertyWidgets makePropertyWidgets(MiPropertyDescriptions descs, Strings displayOnlyTheseProperties, MiiActionHandler widgetValueChangeHandler, Strings displayedProperties)
           
static MiPropertyWidgets makePropertyWidgets(java.util.Properties properties, MiiActionHandler widgetValueChangeHandler)
           
 boolean processAction(MiiAction action)
          Processes the given action.
 void processPropertyChange(MiPropertyChange event)
           
 void setApplyingEveryChange(boolean flag)
           
 void setApplyingEveryCharacterChange(boolean flag)
           
 void setFieldValue(java.lang.String name, java.lang.String value)
           
 void setGenerateUndoableTransactions(boolean flag)
           
 void setIsBuilt(boolean flag)
           
 void setModel(MiiModelEntity model)
          Loads the target view container with graphics representing the data in the given document.
 void setNumberOfPanelColumns(int numColumns)
           
 void setStyle(MiPropertyViewManagerStyle style)
           
 void setUpdatingModelbyUserOnlyIfAllNewValuesValid(boolean flag)
           
 void setView(MiDialogBoxTemplate dialogBox)
           
 void setView(MiPart view)
          Sets the view container.
 void setVisible(boolean flag)
           
 void updateModel()
           
 void updateModelWithPropertyByPropertyValidation()
           
 void updateView()
           
 boolean verifyLossOfAnyChanges()
           
 
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, 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
 

Field Detail

Mi_HAS_CHANGED_PROPERTY

public static final java.lang.String Mi_HAS_CHANGED_PROPERTY
See Also:
Constant Field Values

Mi_MODEL_HAS_CHANGED_PROPERTY

public static final java.lang.String Mi_MODEL_HAS_CHANGED_PROPERTY
See Also:
Constant Field Values

Mi_MAKE_SEPARATE_PROPERTY_PANEL_FOR_EACH_PROPERTY_CLASS_STYLE

public static final MiPropertyViewManagerStyle Mi_MAKE_SEPARATE_PROPERTY_PANEL_FOR_EACH_PROPERTY_CLASS_STYLE

Mi_MAKE_PROPERTY_PANEL_FOR_TOP_PROPERTY_CLASS_ONLY_STYLE

public static final MiPropertyViewManagerStyle Mi_MAKE_PROPERTY_PANEL_FOR_TOP_PROPERTY_CLASS_ONLY_STYLE

Mi_MAKE_PROPERTY_PANEL_FOR_ALL_PROPERTY_CLASSES_STYLE

public static final MiPropertyViewManagerStyle Mi_MAKE_PROPERTY_PANEL_FOR_ALL_PROPERTY_CLASSES_STYLE
Constructor Detail

MiModelPropertyViewManager

public MiModelPropertyViewManager(MiDialogBoxTemplate dialogBox,
                                  MiiModelEntity model)

MiModelPropertyViewManager

public MiModelPropertyViewManager()

MiModelPropertyViewManager

public MiModelPropertyViewManager(MiPropertyViewManagerStyle style)

MiModelPropertyViewManager

public MiModelPropertyViewManager(MiiModelEntity model)

MiModelPropertyViewManager

public MiModelPropertyViewManager(MiiModelEntity model,
                                  int numberOfPanelColumns)

MiModelPropertyViewManager

public MiModelPropertyViewManager(MiiModelEntity model,
                                  int numberOfPanelColumns,
                                  boolean scrollablePanels,
                                  Strings displayOnlyTheseProperties)

MiModelPropertyViewManager

public MiModelPropertyViewManager(MiiModelEntity model,
                                  int numberOfPanelColumns,
                                  boolean scrollablePanels,
                                  Strings displayOnlyTheseProperties,
                                  MiPropertyViewManagerStyle style)
Method Detail

setStyle

public void setStyle(MiPropertyViewManagerStyle style)

getStyle

public MiPropertyViewManagerStyle getStyle()

setView

public void setView(MiDialogBoxTemplate dialogBox)

getDialogBox

public MiDialogBoxTemplate getDialogBox()

setVisible

public void setVisible(boolean flag)

setView

public void setView(MiPart view)
Description copied from interface: MiiViewManager
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:
MiiViewManager.getView()

getView

public MiPart getView()
Description copied from interface: MiiViewManager
Gets the view container.

Specified by:
getView in interface MiiViewManager

getGraphics

public MiPart getGraphics()

isBuilt

public boolean isBuilt()

setIsBuilt

public void setIsBuilt(boolean flag)

setNumberOfPanelColumns

public void setNumberOfPanelColumns(int numColumns)

getNumberOfPanelColumns

public int getNumberOfPanelColumns()

setUpdatingModelbyUserOnlyIfAllNewValuesValid

public void setUpdatingModelbyUserOnlyIfAllNewValuesValid(boolean flag)

isUpdatingModelbyUserOnlyIfAllNewValuesValid

public boolean isUpdatingModelbyUserOnlyIfAllNewValuesValid()

setApplyingEveryCharacterChange

public void setApplyingEveryCharacterChange(boolean flag)

isApplyingEveryCharacterChange

public boolean isApplyingEveryCharacterChange()

setApplyingEveryChange

public void setApplyingEveryChange(boolean flag)

isApplyingEveryChange

public boolean isApplyingEveryChange()

setGenerateUndoableTransactions

public void setGenerateUndoableTransactions(boolean flag)

getGenerateUndoableTransactions

public boolean getGenerateUndoableTransactions()

getFieldWidget

public MiWidget getFieldWidget(java.lang.String name)

getFieldValue

public java.lang.String getFieldValue(java.lang.String name)

setFieldValue

public void setFieldValue(java.lang.String name,
                          java.lang.String value)

getInspectedModel

public MiiModelEntity getInspectedModel()

getInspectedPanels

public MiParts getInspectedPanels()

updateView

public void updateView()

updateModel

public void updateModel()

updateModelWithPropertyByPropertyValidation

public void updateModelWithPropertyByPropertyValidation()

setModel

public void setModel(MiiModelEntity model)
Description copied from interface: MiiViewManager
Loads the target view container with graphics representing the data in the given document.

Specified by:
setModel in interface MiiViewManager
Parameters:
model - the document
See Also:
MiiViewManager.setView(com.swfm.mica.core.MiPart)

getModel

public MiiModelEntity getModel()
Description copied from interface: MiiViewManager
Converts the graphics found in the target view container to a MiiModelDocument.

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

processPropertyChange

public void processPropertyChange(MiPropertyChange event)
Specified by:
processPropertyChange in interface MiiPropertyChangeHandler

processAction

public boolean processAction(MiiAction action)
Description copied from interface: MiiActionHandler
Processes the given action.

Specified by:
processAction in interface MiiActionHandler
Overrides:
processAction in class MiModelEntity

hasValidationErrors

public boolean hasValidationErrors()

verifyLossOfAnyChanges

public boolean verifyLossOfAnyChanges()

buildPanels

public static MiPart buildPanels(MiiModelEntity model,
                                 Strings displayOnlyTheseProperties,
                                 MiParts propertyPanels,
                                 Strings displayedProperties,
                                 boolean scrollable,
                                 int numberOfColumns,
                                 java.util.Hashtable propertyPanelCache,
                                 MiiActionHandler widgetValueChangeHandler,
                                 MiPropertyViewManagerStyle style)

buildPanel

public static MiPropertyPanel buildPanel(MiPropertyDescriptions descs,
                                         Strings displayOnlyTheseProperties,
                                         Strings displayedProperties,
                                         boolean scrollable,
                                         int numberOfColumns,
                                         java.util.Hashtable propertyPanelCache,
                                         MiiActionHandler widgetValueChangeHandler)

getPropertyDescriptions

public static MiPropertyDescriptions getPropertyDescriptions(MiiModelEntity model)

getPropertyValues

public static java.util.Properties getPropertyValues(MiiModelEntity model,
                                                     Strings lookForTheseProperties,
                                                     Strings propertiesReturned)

makePropertyWidgets

public static MiPropertyWidgets makePropertyWidgets(java.util.Properties properties,
                                                    MiiActionHandler widgetValueChangeHandler)

makePropertyWidgets

public static MiPropertyWidgets makePropertyWidgets(MiPropertyDescriptions descs,
                                                    Strings displayOnlyTheseProperties,
                                                    MiiActionHandler widgetValueChangeHandler,
                                                    Strings displayedProperties)