public class DesignerModelImpl extends java.util.Observable implements DesignerModel
Constructor and Description |
---|
DesignerModelImpl(DesignNotifier designNotifier)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener) |
void |
delete(DesignTreeNode child) |
DesignComponent |
getCurrentComponent() |
DesignTreeNode |
getCurrentSelection()
Get the currently selected node.
|
static int |
getIndex(DesignTreeNode child) |
DesignComponent |
getRootComponent()
Get the root component.
|
DesignTreeModel |
getTreeModel()
Get the tree model.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener) |
void |
replaceSelected(ArooaConfiguration config) |
void |
setCurrentSelection(DesignTreeNode node)
Set the currently selected node.
|
void |
viewSelectedAsXML() |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObserver
public DesignerModelImpl(DesignNotifier designNotifier)
designNotifier
- The thing that tells us about the root DesignInstance
.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface DesignerModel
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface DesignerModel
public void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface DesignerModel
public void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface DesignerModel
public DesignComponent getRootComponent()
getRootComponent
in interface DesignerModel
public DesignTreeModel getTreeModel()
getTreeModel
in interface DesignerModel
public void setCurrentSelection(DesignTreeNode node)
setCurrentSelection
in interface DesignerModel
node
- The node. May be null.public DesignTreeNode getCurrentSelection()
getCurrentSelection
in interface DesignerModel
public DesignComponent getCurrentComponent()
getCurrentComponent
in interface DesignerModel
public void replaceSelected(ArooaConfiguration config) throws ArooaParseException
replaceSelected
in interface DesignerModel
ArooaParseException
public void viewSelectedAsXML() throws ArooaPropertyException
viewSelectedAsXML
in interface DesignerModel
ArooaPropertyException
public void delete(DesignTreeNode child)
public static int getIndex(DesignTreeNode child)