|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.kilim.model.RtComponentElement
org.objectweb.kilim.model.RtComponentSlot
| Field Summary | |
private SlotFactory |
factory
|
private java.util.List |
interfaces
|
private boolean |
isInitialized
|
private java.util.List |
plugIns
|
| Fields inherited from class org.objectweb.kilim.model.RtComponentElement |
nbComponent, nbElement |
| Constructor Summary | |
RtComponentSlot(Slot aSlot,
Component aComponent,
SlotFactory aFactory)
The public constructor for RtComponentSlots |
|
| Method Summary | |
void |
addInterface(ComponentInterface aInterface)
adds an Interface.in the slot. |
Factory |
getFactory()
returns the factory used to create the container. |
ComponentInterface |
getInterface(java.lang.String aName)
returns the local interface identified by its local name. |
java.util.Iterator |
getInterfaces()
returns as an interator the interfaces known inthe slot. |
java.lang.String |
getLocalName()
returns the local name of the component element. |
java.util.Iterator |
getPlugIns()
returns as an iterator the components plugged in the slot.. |
boolean |
isComponent()
returns true if the container is a component. |
boolean |
isInitialized()
returns true when the container is in the "initialized" state or not. |
boolean |
isSlot()
returns true if the container is a slot. |
void |
plug(Component aComponent)
plugs a component in the slot. |
void |
removeInterface(ComponentInterface aInterface)
removes an interface. |
void |
setInitialized()
sets the container in the"initialized" state. |
void |
unplug(Component aComponent)
unplugs a component from the slot. |
| Methods inherited from class org.objectweb.kilim.model.RtComponentElement |
containsElement, getContainingComponent, getContainingElement, getElement, getElementDescription, getNbComponent, getNbElement, getQualifiedName, getTarget, getTemplateDefHierarchy, removeElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.kilim.model.ComponentElement |
getContainingComponent, getContainingElement, getElementDescription, getQualifiedName, getTemplateDefHierarchy |
| Field Detail |
private SlotFactory factory
private boolean isInitialized
private java.util.List interfaces
private java.util.List plugIns
| Constructor Detail |
public RtComponentSlot(Slot aSlot,
Component aComponent,
SlotFactory aFactory)
aSlot - : the slot template descriptionaComponent - : the component containing the slotaFactory - : the slot factory.| Method Detail |
public boolean isComponent()
ContainerElement
isComponent in interface ContainerElementContainerElement.isComponent()public boolean isSlot()
ContainerElement
isSlot in interface ContainerElementContainerElement.isSlot()public Factory getFactory()
ContainerElement
getFactory in interface ContainerElementContainerElement.getFactory()public boolean isInitialized()
ContainerElement
isInitialized in interface ContainerElementContainerElement.isInitialized()public void setInitialized()
ContainerElement
setInitialized in interface ContainerElementorg.objectweb.kilim.model.Component#setInitialized(boolean)public java.lang.String getLocalName()
ComponentElement
getLocalName in interface ComponentElementComponentElement.getLocalName()
public void addInterface(ComponentInterface aInterface)
throws KilimException
addInterface in interface ContainerElementaInterface - : the interface to be added.
KilimException - : generated if aInterface is null or is already present in the slot.
public void removeInterface(ComponentInterface aInterface)
throws KilimException
removeInterface in interface ContainerElementaInterface - : the interface to be removed.
KilimException - : generated if aInterface is null or is unknown.public java.util.Iterator getInterfaces()
getInterfaces in interface ContainerElement
public ComponentInterface getInterface(java.lang.String aName)
throws KilimException
getInterface in interface ContainerElementaName - : the local name of the interface.
KilimException - : generated if aName is null or if the slot does not contain an interface whose name is aName.public java.util.Iterator getPlugIns()
getPlugIns in interface ComponentSlot
public void plug(Component aComponent)
throws KilimException
plug in interface ComponentSlotaComponent - : the component to be plugged.
KilimException - : generated if aComponent is null or is already plugged in the slot.
public void unplug(Component aComponent)
throws KilimException
unplug in interface ComponentSlotaComponent - : the component to be removed.
KilimException - : generated if aComponent is null or is not plugged in the slot.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||