flatscape.editor
Class UFormEditorModel

java.lang.Object
  |
  +--flatscape.editor.EditorModel
        |
        +--flatscape.editor.UFormEditorModel

public class UFormEditorModel
extends EditorModel

Editor model for editing of existing uforms.

Copyright (c) 2001 Rutgers, The State University of New Jersey

Since:
flatscape %Version%
Version:
%Version%, %Time%

Field Summary
protected  org.w3c.dom.Element model_
          The model (UForm)
protected  PropertiesEditor propertiesEditor_
          The Properties editor
 
Fields inherited from class flatscape.editor.EditorModel
editorPanel_
 
Constructor Summary
UFormEditorModel(PropertiesEditor propertiesEditor, EditorPanel editorPanel, org.w3c.dom.Element model)
           
 
Method Summary
 void cleanUp()
          Method called by PropertiesEditor when the model is not needed anymore.
 java.lang.Object getProperty(java.lang.String key)
          Gets a property from the model.
 void propertyChange(org.w3c.dom.Element model, java.lang.String key, java.lang.Object oldValue, java.lang.Object newValue)
          Listener interface for uform property changes
 void setProperty(java.lang.String key, java.lang.Object value)
          Sets a property of the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model_

protected org.w3c.dom.Element model_
The model (UForm)


propertiesEditor_

protected PropertiesEditor propertiesEditor_
The Properties editor

Constructor Detail

UFormEditorModel

public UFormEditorModel(PropertiesEditor propertiesEditor,
                        EditorPanel editorPanel,
                        org.w3c.dom.Element model)
Parameters:
propertiesEditor - the parent PropertiesEditor
editorPanel - the EditorPanel which uses this model
Method Detail

cleanUp

public void cleanUp()
Method called by PropertiesEditor when the model is not needed anymore. This implementation removes this model as a UFormChangeListener from the uform.

Overrides:
cleanUp in class EditorModel

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
Sets a property of the model.

Specified by:
setProperty in class EditorModel

getProperty

public java.lang.Object getProperty(java.lang.String key)
Gets a property from the model.

Specified by:
getProperty in class EditorModel

propertyChange

public void propertyChange(org.w3c.dom.Element model,
                           java.lang.String key,
                           java.lang.Object oldValue,
                           java.lang.Object newValue)
Listener interface for uform property changes



Copyright (c) 2003 Rutgers, The State University of New Jersey