public abstract class DesignComponentBase extends Object implements DesignComponent
Constructor and Description |
---|
DesignComponentBase(ArooaElement element,
ArooaClass classIdentifier,
ArooaContext parentContext) |
DesignComponentBase(ArooaElement element,
ArooaContext parentContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStructuralListener(DesignListener listener)
Add a listener that will notified when child
DesignComponent s are added or removed from this
DesignComponent. |
ArooaElement |
element()
Required for producing the XML.
|
ArooaContext |
getArooaContext()
Get the
ArooaContext associated with this instance. |
String |
getId()
Get the id of the instance, if there is one.
|
void |
removeStructuralListener(DesignListener listener)
Remove a listener.
|
void |
setId(String id)
Set the id of the instance.
|
QTag |
tag() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
detail, element, getArooaContext
children
public DesignComponentBase(ArooaElement element, ArooaContext parentContext)
element
- parentContext
- public DesignComponentBase(ArooaElement element, ArooaClass classIdentifier, ArooaContext parentContext)
element
- classIdentifier
- parentContext
- public void addStructuralListener(DesignListener listener)
DesignComponent
DesignComponent
s are added or removed from this
DesignComponent. This is used by the DesignTreeModel
.addStructuralListener
in interface DesignComponent
listener
- The listener.public void removeStructuralListener(DesignListener listener)
DesignComponent
removeStructuralListener
in interface DesignComponent
listener
- The listener.public String getId()
DesignComponent
getId
in interface DesignComponent
public void setId(String id)
DesignComponent
setId
in interface DesignComponent
id
- The id. May be null.public ArooaElement element()
DesignInstance
element
in interface DesignInstance
public QTag tag()
public ArooaContext getArooaContext()
DesignInstance
ArooaContext
associated with this instance.getArooaContext
in interface DesignInstance