|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.arooa.design.DesignComponentBase
public abstract class DesignComponentBase
Shared implementation for the designs of instances that are components. The common implementation is mainly about notify listeners of structural changes.
| Constructor Summary | |
|---|---|
DesignComponentBase(ArooaElement element,
ArooaClass classIdentifier,
ArooaContext parentContext)
|
|
DesignComponentBase(ArooaElement element,
ArooaContext parentContext)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addStructuralListener(DesignListener listener)
Add a listener that will notified when child DesignComponents 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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.oddjob.arooa.design.DesignInstance |
|---|
detail, element, getArooaContext |
| Methods inherited from interface org.oddjob.arooa.design.ParsableDesignInstance |
|---|
children |
| Constructor Detail |
|---|
public DesignComponentBase(ArooaElement element,
ArooaContext parentContext)
element - parentContext -
public DesignComponentBase(ArooaElement element,
ArooaClass classIdentifier,
ArooaContext parentContext)
element - classIdentifier - parentContext - | Method Detail |
|---|
public void addStructuralListener(DesignListener listener)
DesignComponentDesignComponents are added or removed from this
DesignComponent. This is used by the DesignTreeModel.
addStructuralListener in interface DesignComponentlistener - The listener.public void removeStructuralListener(DesignListener listener)
DesignComponent
removeStructuralListener in interface DesignComponentlistener - The listener.public String getId()
DesignComponent
getId in interface DesignComponentpublic void setId(String id)
DesignComponent
setId in interface DesignComponentid - The id. May be null.public ArooaElement element()
DesignInstance
element in interface DesignInstancepublic QTag tag()
public ArooaContext getArooaContext()
DesignInstanceArooaContext associated with this instance.
getArooaContext in interface DesignInstancepublic String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||