|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.fractal.gui.model.AbstractComponent
Abstract implementation of the Component interface.
| Field Summary | |
|---|---|
protected Component |
parent
The parent component of this component. |
| Fields inherited from interface org.objectweb.fractal.gui.model.Component |
|---|
ATTRIBUTE_CONTROLLER_CLASS_INVALID, ATTRIBUTE_CONTROLLER_CLASS_NOT_FOUND, ATTRIBUTE_CONTROLLER_MISSING, IMPLEMENTATION_CLASS_INVALID, IMPLEMENTATION_CLASS_NOT_FOUND, IMPLEMENTATION_MISSING, INTERFACES_INVALID, NAME_MISSING, OK |
| Constructor Summary | |
|---|---|
AbstractComponent()
|
|
| Method Summary | |
|---|---|
boolean |
contains(Component child)
Returns true if this component contains the given sub component. |
boolean |
containsMasterOfExternalComponent(Component c)
Returns true if the given component contains a master component but does not contain all its slaves. |
boolean |
containsSlaveOfExternalComponent(Component c)
Returns true if the given component contains a slave component but does not contain its master. |
Configuration |
getConfiguration()
Returns the configuration to which this component belongs. |
Component |
getParent()
Returns the parent component of this component. |
java.lang.Object[] |
getPath()
Returns the path of this component from the root component. |
Component |
getRootComponent()
Returns the root component of the configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Component parent
| Constructor Detail |
public AbstractComponent()
| Method Detail |
public Component getParent()
Component
getParent in interface Componentpublic Configuration getConfiguration()
getConfiguration in interface Componentpublic Component getRootComponent()
ComponentgetParent until the root component is found.
getRootComponent in interface Componentpublic java.lang.Object[] getPath()
Component
getPath in interface Componentpublic boolean contains(Component child)
Component
contains in interface Componentchild - a component.
public boolean containsSlaveOfExternalComponent(Component c)
Component
containsSlaveOfExternalComponent in interface Componentc - a component.
public boolean containsMasterOfExternalComponent(Component c)
Component
containsMasterOfExternalComponent in interface Componentc - a component.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||