|
||||||||||
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, TYPE_MISSING |
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,
ServerInterface sitf)
Binds the given client interface to the given server interface. |
String |
getAttribute(String attributeName)
Return the value of the given attribute of this component. |
String |
getAttributeController()
Returns the name of the attribute controller interface of this component. |
List |
getAttributeNames()
Returns the names of the attributes of this component. |
Interface |
getClientInterface(String name)
Returns the external client interface of this component whose name is given. |
List |
getClientInterfaces()
Returns the external client interfaces of this component. |
String |
getComponentControllerDescriptor()
Returns the component controller descriptor of this component. |
Configuration |
getConfiguration()
Returns the configuration to which this component belongs. |
String |
getImplementation()
Returns the implementation of this component. |
Component |
getMasterComponent()
Returns the master component of this component. |
String |
getName()
Returns the name of this component. |
Interface |
getServerInterface(String name)
Returns the external server interface of this component whose name is given. |
List |
getServerInterfaces()
Returns the external server interfaces of this component. |
List |
getSlaveComponents()
Returns the slave components of this component. |
long |
getStatus()
Returns the status of this component. |
Component |
getSubComponent(String name)
Returns the sub component of this component whose name is given. |
List |
getSubComponents()
Returns the sub components of this component. |
String |
getTemplateControllerDescriptor()
Returns the template controller descriptor of this component. |
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(String attributeName,
String attributeValue)
Sets the value of an attribute of this component. |
void |
setAttributeController(String attributeController)
Sets the name of the attribute controller interface of this component. |
void |
setComponentControllerDescriptor(String desc)
Sets the component controller descriptor of this component. |
void |
setImplementation(String implementation)
Sets the implementation of this component. |
void |
setName(String name)
Sets the name of this component. |
void |
setStatus(long status)
Sets the status of this component. |
void |
setTemplateControllerDescriptor(String desc)
Sets the template controller descriptor of this component. |
void |
setType(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 Component
getConfiguration
in class AbstractComponent
public long getStatus()
Component
Component.setStatus(long)
public void setStatus(long status)
Component
status
- the new status of this component.Component.getStatus()
public String getName()
Component
Component.setName(java.lang.String)
public void setName(String name)
Component
nameChanged
method.
name
- the new component name.Component.getName()
public String getType()
Component
Component.setType(java.lang.String)
public void setType(String type)
Component
typeChanged
method.
type
- the new component type.Component.getType()
public String getImplementation()
Component
Component.setImplementation(java.lang.String)
public void setImplementation(String implementation)
Component
implementationChanged
method.
implementation
- the new component implementation.Component.getImplementation()
public List getClientInterfaces()
Component
ClientInterface
objects
corresponding to the external client interfaces of this component.public Interface getClientInterface(String name)
Component
name
- the name of the interface that must be returned.
public void addClientInterface(ClientInterface itf)
Component
clientInterfaceAdded
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)
Component
clientInterfaceRemoved
method.
itf
- the interface that must be removed from this component.public List getServerInterfaces()
Component
ServerInterface
objects corresponding to the external server interfaces of this
component.public Interface getServerInterface(String name)
Component
name
- the name of the interface that must be returned.
public void addServerInterface(ServerInterface itf)
Component
serverInterfaceAdded
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)
Component
serverInterfaceRemoved
method.
itf
- the interface that must be removed from this component.public void bind(ClientInterface citf, ServerInterface sitf)
Component
interfaceBound
method.
citf
- a client interface of this component.sitf
- a server interface.public void rebind(ClientInterface citf, ServerInterface sitf)
Component
interfaceRebound
method.
citf
- a client interface of this component.sitf
- a server interface.public void unbind(ClientInterface citf)
Component
interfaceUnbound
method.
citf
- a client interface of this component.public String getAttributeController()
Component
Component.setAttributeController(java.lang.String)
public void setAttributeController(String attributeController)
Component
attributeControllerChanged
method.
attributeController
- the new attribute controller interface name.Component.getAttributeController()
public List getAttributeNames()
Component
public String getAttribute(String attributeName)
Component
attributeName
- the name of an attribute of this component.
Component.setAttribute(java.lang.String, java.lang.String)
public void setAttribute(String attributeName, String attributeValue)
Component
attributeChanged
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 String getTemplateControllerDescriptor()
Component
Component.setTemplateControllerDescriptor(java.lang.String)
public void setTemplateControllerDescriptor(String desc)
Component
templateControllerDescriptorChanged
method.
desc
- the new template controller descriptor of this component.Component.getTemplateControllerDescriptor()
public String getComponentControllerDescriptor()
Component
Component.setComponentControllerDescriptor(java.lang.String)
public void setComponentControllerDescriptor(String desc)
Component
componentControllerDescriptorChanged
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 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 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(String name)
Component
name
- the name of a sub component of this component.
public void addSubComponent(Component child)
Component
subComponentAdded
method.
child
- a component.public void removeSubComponent(Component child)
Component
subComponentRemoved
method.
child
- a sub component of this component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |