|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.fractal.gui.model.AbstractComponent
org.objectweb.fractal.gui.model.SharedComponent
An implementation of the Component interface for slave components.
| Field Summary |
|---|
| Fields inherited from class org.objectweb.fractal.gui.model.AbstractComponent |
|---|
parent |
| 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 |
| Method Summary | |
|---|---|
void |
addClientInterface(ClientInterface itf)
Adds the given client interface to this component. |
void |
addServerInterface(ServerInterface itf)
Adds the given server interface to this component. |
void |
addSubComponent(Component child)
Adds the given component as a sub component of this component. |
void |
bind(ClientInterface citf,
java.lang.String citfName,
ServerInterface sitf)
Binds the given client interface to the given server interface. |
java.lang.String |
getAttribute(java.lang.String attributeName)
Return the value of the given attribute of this component. |
java.lang.String |
getAttributeController()
Returns the name of the attribute controller interface of this component. |
java.util.List |
getAttributeNames()
Returns the names of the attributes of this component. |
Interface |
getClientInterface(java.lang.String name)
Returns the external client interface of this component whose name is given. |
java.util.List |
getClientInterfaces()
Returns the external client interfaces of this component. |
java.lang.String |
getComponentControllerDescriptor()
Returns the component controller descriptor of this component. |
Configuration |
getConfiguration()
Returns the configuration to which this component belongs. |
java.lang.String |
getImplementation()
Returns the implementation of this component. |
Component |
getMasterComponent()
Returns the master component of this component. |
java.lang.String |
getName()
Returns the name of this component. |
Interface |
getServerInterface(java.lang.String name)
Returns the external server interface of this component whose name is given. |
java.util.List |
getServerInterfaces()
Returns the external server interfaces of this component. |
java.util.List |
getSlaveComponents()
Returns the slave components of this component. |
long |
getStatus()
Returns the status of this component. |
Component |
getSubComponent(java.lang.String name)
Returns the sub component of this component whose name is given. |
java.util.List |
getSubComponents()
Returns the sub components of this component. |
java.lang.String |
getTemplateControllerDescriptor()
Returns the template controller descriptor of this component. |
java.lang.String |
getType()
Returns the type of this component. |
boolean |
isComposite()
Returns true if this component is a composite component. |
boolean |
isShared()
Returns true if this component has slave component. |
void |
rebind(ClientInterface citf,
ServerInterface sitf)
Rebinds the given client interface to the given server interface. |
void |
removeClientInterface(ClientInterface itf)
Removes the given client interface from this component. |
void |
removeServerInterface(ServerInterface itf)
Removes the given server interface from this component. |
void |
removeSubComponent(Component child)
Removes the given sub component from this component. |
void |
setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Sets the value of an attribute of this component. |
void |
setAttributeController(java.lang.String attributeController)
Sets the name of the attribute controller interface of this component. |
void |
setComponentControllerDescriptor(java.lang.String desc)
Sets the component controller descriptor of this component. |
void |
setImplementation(java.lang.String implementation)
Sets the implementation of this component. |
void |
setName(java.lang.String name)
Sets the name of this component. |
void |
setStatus(long status)
Sets the status of this component. |
void |
setTemplateControllerDescriptor(java.lang.String desc)
Sets the template controller descriptor of this component. |
void |
setType(java.lang.String type)
Sets the type of this component. |
void |
unbind(ClientInterface citf)
Unbinds the given client interface. |
| Methods inherited from class org.objectweb.fractal.gui.model.AbstractComponent |
|---|
contains, containsMasterOfExternalComponent, containsSlaveOfExternalComponent, getParent, getPath, getRootComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public Configuration getConfiguration()
AbstractComponent
getConfiguration in interface ComponentgetConfiguration in class AbstractComponentpublic long getStatus()
Component
Component.setStatus(long)public void setStatus(long status)
Component
status - the new status of this component.Component.getStatus()public java.lang.String getName()
Component
Component.setName(java.lang.String)public void setName(java.lang.String name)
ComponentnameChanged
method.
name - the new component name.Component.getName()public java.lang.String getType()
Component
Component.setType(java.lang.String)public void setType(java.lang.String type)
ComponenttypeChanged
method.
type - the new component type.Component.getType()public java.lang.String getImplementation()
Component
Component.setImplementation(java.lang.String)public void setImplementation(java.lang.String implementation)
ComponentimplementationChanged method.
implementation - the new component implementation.Component.getImplementation()public java.util.List getClientInterfaces()
Component
ClientInterface objects
corresponding to the external client interfaces of this component.public Interface getClientInterface(java.lang.String name)
Component
name - the name of the interface that must be returned.
public void addClientInterface(ClientInterface itf)
ComponentclientInterfaceAdded method.
itf - the interface that must be added to this component. This
interface must have been created for this specific component (see
createClientInterface).public void removeClientInterface(ClientInterface itf)
ComponentclientInterfaceRemoved
method.
itf - the interface that must be removed from this component.public java.util.List getServerInterfaces()
Component
ServerInterface
objects corresponding to the external server interfaces of this
component.public Interface getServerInterface(java.lang.String name)
Component
name - the name of the interface that must be returned.
public void addServerInterface(ServerInterface itf)
ComponentserverInterfaceAdded method.
itf - the interface that must be added to this component. This
interface must have been created for this specific component (see
createServerInterface).public void removeServerInterface(ServerInterface itf)
ComponentserverInterfaceRemoved
method.
itf - the interface that must be removed from this component.
public void bind(ClientInterface citf,
java.lang.String citfName,
ServerInterface sitf)
ComponentinterfaceBound method.
citf - a client interface of this component.sitf - a server interface.
public void rebind(ClientInterface citf,
ServerInterface sitf)
ComponentinterfaceRebound method.
citf - a client interface of this component.sitf - a server interface.public void unbind(ClientInterface citf)
ComponentinterfaceUnbound method.
citf - a client interface of this component.public java.lang.String getAttributeController()
Component
Component.setAttributeController(java.lang.String)public void setAttributeController(java.lang.String attributeController)
ComponentattributeControllerChanged method.
attributeController - the new attribute controller interface name.Component.getAttributeController()public java.util.List getAttributeNames()
Component
public java.lang.String getAttribute(java.lang.String attributeName)
Component
attributeName - the name of an attribute of this component.
Component.setAttribute(java.lang.String, java.lang.String)
public void setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
ComponentattributeChanged method.
attributeName - the name of an existing or of a new attribute of this
component.attributeValue - the new value of this attribute.Component.getAttribute(java.lang.String)public java.lang.String getTemplateControllerDescriptor()
Component
Component.setTemplateControllerDescriptor(java.lang.String)public void setTemplateControllerDescriptor(java.lang.String desc)
ComponenttemplateControllerDescriptorChanged method.
desc - the new template controller descriptor of this component.Component.getTemplateControllerDescriptor()public java.lang.String getComponentControllerDescriptor()
Component
Component.setComponentControllerDescriptor(java.lang.String)public void setComponentControllerDescriptor(java.lang.String desc)
ComponentcomponentControllerDescriptorChanged method.
desc - the new component controller descriptor of this component.Component.getComponentControllerDescriptor()public boolean isShared()
Component
getSlaveComponent
list is empty.public Component getMasterComponent()
Component
public java.util.List getSlaveComponents()
Component
Component objects that
correspond to the slave components of this component. This list is
empty is this component is not a master component.public boolean isComposite()
Component
getSubComponents
list is empty.public java.util.List getSubComponents()
Component
Component objects that correspond
to the sub components of this component. This list is empty if this
component is a primitive component.public Component getSubComponent(java.lang.String name)
Component
name - the name of a sub component of this component.
public void addSubComponent(Component child)
ComponentsubComponentAdded method.
child - a component.public void removeSubComponent(Component child)
ComponentsubComponentRemoved method.
child - a sub component of this component.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||