@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.
|
getName
public ContainerSlot(java.lang.String name)
public ContainerSlot()
public boolean isFilled()
isFilled
in class AbstractSlot
public void insert(SWGObject swgObj)
AbstractSlot
insert
in class AbstractSlot
swgObj
- the object to insertpublic void traverse(SWGObject viewer, boolean topDown, boolean recursive, Traverser traverser)
AbstractSlot
traverse
in class AbstractSlot
viewer
- 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)
AbstractSlot
remove
in class AbstractSlot
swgObj
- the object to removepublic void clear()
AbstractSlot
clear
in class AbstractSlot
public SWGObject getObject()
getObject
in class AbstractSlot