|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.nodes.MockCentralNodeModel
public abstract class MockCentralNodeModel
Base for classes representing the model in the MVC structure used for editing
the data in the JDOM Element instances that comprise the domain
model. Each instance of this class is associated with a specific instance of
the MockCentralNode class; the loadElementData
method gets called to populate the model using the current contents of the
node's Element when the node is activated.
| Field Summary | |
|---|---|
protected org.jdom.Element |
element
The JDOM Element containing the modeled data. |
protected MockCentralNode |
node
The associated MockCentralNode. |
protected java.util.List<java.lang.Object> |
observers
A List of observers to be notified when the model changes. |
| Constructor Summary | |
|---|---|
MockCentralNodeModel(MockCentralNode node)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addObserver(java.lang.Object observer)
Adds an observer to the list. |
org.jdom.Element |
getElement()
Returns the JDOM Element containing the modeled data. |
FixtureNode |
getEnclosingFixtureNode()
Returns the enclosing FixtureNode. |
MockCentralNode |
getNode()
Returns the MockCentralNode. |
java.lang.String |
getNotRemovableMessage()
Returns a message for display indicating why the corresposing MockCentralNode instance cannot be deleted, or null (as this
default implementation does). |
java.util.List<java.lang.Object> |
getObservers()
Returns the list of observers. |
abstract void |
loadElementData(boolean refreshUI)
Loads the data from the JDOM Element provided by the
MockCentralNode into the model. |
protected void |
registerChanges(boolean refreshUI)
Updates the IMockCentralEditorOutline display and notifies
the editor when the document receives changes. |
void |
removeObserver(java.lang.Object observer)
Removes an observer from the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MockCentralNode node
MockCentralNode.
protected org.jdom.Element element
Element containing the modeled data.
protected java.util.List<java.lang.Object> observers
| Constructor Detail |
|---|
public MockCentralNodeModel(MockCentralNode node)
node - associated MockCentralNode.| Method Detail |
|---|
public MockCentralNode getNode()
MockCentralNode.
MockCentralNode.public org.jdom.Element getElement()
Element containing the modeled data.
Element containing the modeled data.public java.util.List<java.lang.Object> getObservers()
public abstract void loadElementData(boolean refreshUI)
Element provided by the
MockCentralNode into the model.
refreshUI - whether to send notification to ui components to update
the display.public void addObserver(java.lang.Object observer)
observer - the Object interested in changes to the model to add to
the list.public void removeObserver(java.lang.Object observer)
observer - the Object interested in changes to the model to remove
from the list.public java.lang.String getNotRemovableMessage()
MockCentralNode instance cannot be deleted, or null (as this
default implementation does).
MockCentralNode instance cannot be deleted, or null.public FixtureNode getEnclosingFixtureNode()
FixtureNode.
FixtureNode.protected void registerChanges(boolean refreshUI)
IMockCentralEditorOutline display and notifies
the editor when the document receives changes.
refreshUI - whether to send notification to ui components to update
the display.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||