public class DesignerModel extends Observable
Constructor and Description |
---|
DesignerModel(DesignNotifier designNotifier)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(String property,
PropertyChangeListener listener) |
void |
delete(DesignTreeNode child) |
DesignComponent |
getCurrentComponent() |
DesignTreeNode |
getCurrentSelection()
Get the currently selected node.
|
String |
getCurrentXML() |
static int |
getIndex(DesignTreeNode child) |
static DesignComponent |
getParentComponent(DesignTreeNode child) |
DesignComponent |
getRootComponent()
Get the root component.
|
DesignTreeModel |
getTreeModel()
Get the tree model.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(String property,
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
public DesignerModel(DesignNotifier designNotifier)
start
- The root component.public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String property, PropertyChangeListener listener)
public void removePropertyChangeListener(String property, PropertyChangeListener listener)
public DesignComponent getRootComponent()
public DesignTreeModel getTreeModel()
public void setCurrentSelection(DesignTreeNode node)
node
- The node. May be null.public DesignTreeNode getCurrentSelection()
public DesignComponent getCurrentComponent()
public String getCurrentXML()
public void replaceSelected(ArooaConfiguration config) throws ArooaParseException
ArooaParseException
public void viewSelectedAsXML() throws ArooaPropertyException
ArooaPropertyException
public void delete(DesignTreeNode child)
public static DesignComponent getParentComponent(DesignTreeNode child)
public static int getIndex(DesignTreeNode child)