@Persistent public class ContainerSlot extends AbstractSlot
| Constructor and Description |
|---|
ContainerSlot() |
ContainerSlot(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empties this slot.
|
SWGObject |
getObject() |
void |
insert(SWGObject swgObj)
Inserts swgObj into this container.
|
boolean |
isFilled() |
void |
remove(SWGObject swgObj)
Removes swgObj from this slot.
|
void |
traverse(SWGObject viewer,
boolean topDown,
boolean recursive,
Traverser traverser)
Traverses over this tree from the perspective of viewer.
|
getNamepublic ContainerSlot(java.lang.String name)
public ContainerSlot()
public boolean isFilled()
isFilled in class AbstractSlotpublic void insert(SWGObject swgObj)
AbstractSlotinsert in class AbstractSlotswgObj - the object to insertpublic void traverse(SWGObject viewer, boolean topDown, boolean recursive, Traverser traverser)
AbstractSlottraverse in class AbstractSlotviewer - the object who is looking into this slot. Only relevant if recursivetopDown - the direction in which to recurse. Only relevant if recursiverecursive - true if subobjects should be traversedtraverser - the object to call as the tree is traversed.public void remove(SWGObject swgObj)
AbstractSlotremove in class AbstractSlotswgObj - the object to removepublic void clear()
AbstractSlotclear in class AbstractSlotpublic SWGObject getObject()
getObject in class AbstractSlot