|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.isi.powerloom.gui.xmlobject.PLSurrogateContainer
Hold a collection of surrogates. Used for JTrees and JLists, also used by KnowledgeManager to cache groups of objects.
Constructor Summary | |
PLSurrogateContainer()
|
|
PLSurrogateContainer(java.util.List surrogates)
|
|
PLSurrogateContainer(java.lang.String label,
java.util.List surrogates)
|
Method Summary | |
void |
addPLObject(PLObject object)
|
PLTreeNode |
getChild(int index)
|
int |
getChildCount()
|
PLSurrogateContainer |
getChildSurrogates()
|
java.lang.Object |
getElementAt(int i)
|
PLSurrogateContainer |
getFilteredSurrogateContainer(java.lang.String prefix)
Return a new container which contains items that have a given prefix |
java.lang.String |
getID()
surrogate support |
int |
getIndexOfChild(PLTreeNode child)
|
java.lang.String |
getModule()
|
int |
getSize()
|
java.util.List |
getSurrogates()
|
boolean |
isLeaf()
|
boolean |
isUndefined()
|
PLSurrogateContainer |
listifyTreeContainer()
Miscellaneous methods |
PLSurrogateContainer |
mergeSurrogateContainer(PLSurrogateContainer otherContainer)
|
int |
removePLObject(PLObject object)
Insert the method's description here. |
void |
setChild(int index,
PLTreeNode child)
|
void |
setChildSurrogates(PLSurrogateContainer container)
|
void |
setLabel(java.lang.String label)
|
void |
setSurrogates(java.util.List surrogates)
|
void |
setUndefined(boolean flag)
|
static PLSurrogate |
surrogatify(java.lang.Object object)
|
static java.util.List |
surrogatifyList(java.util.List candidates)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PLSurrogateContainer()
public PLSurrogateContainer(java.util.List surrogates)
public PLSurrogateContainer(java.lang.String label, java.util.List surrogates)
Method Detail |
public static java.util.List surrogatifyList(java.util.List candidates)
public java.lang.String getModule()
getModule
in interface PLObject
public static PLSurrogate surrogatify(java.lang.Object object)
public void setSurrogates(java.util.List surrogates)
public java.util.List getSurrogates()
public void setChild(int index, PLTreeNode child)
setChild
in interface PLTreeNode
public PLTreeNode getChild(int index)
getChild
in interface PLTreeNode
public int getIndexOfChild(PLTreeNode child)
getIndexOfChild
in interface PLTreeNode
public int getChildCount()
getChildCount
in interface PLTreeNode
public boolean isLeaf()
isLeaf
in interface PLTreeNode
public java.lang.Object getElementAt(int i)
getElementAt
in interface PLList
public int getSize()
getSize
in interface PLList
public void addPLObject(PLObject object)
addPLObject
in interface PLList
public void setLabel(java.lang.String label)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getID()
getID
in interface PLObject
public PLSurrogateContainer getChildSurrogates()
getChildSurrogates
in interface PLObject
public void setChildSurrogates(PLSurrogateContainer container)
setChildSurrogates
in interface PLObject
public PLSurrogateContainer listifyTreeContainer()
public int removePLObject(PLObject object)
removePLObject
in interface PLList
object
- edu.isi.powerloom.gui.xmlobject.PLObject
public boolean isUndefined()
isUndefined
in interface PLObject
public void setUndefined(boolean flag)
setUndefined
in interface PLObject
public PLSurrogateContainer getFilteredSurrogateContainer(java.lang.String prefix)
public PLSurrogateContainer mergeSurrogateContainer(PLSurrogateContainer otherContainer)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |