|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.rep.SuppleBeanImpl
edu.washington.cs.supple.rep.BaseType
edu.washington.cs.supple.rep.ContainerTypeImpl
| Field Summary | |
protected java.util.Vector |
children
|
protected java.util.Hashtable |
childTable
|
protected ContainerTypeImpl |
derivedFrom
|
protected java.util.Vector |
dynamicChildren
|
protected java.util.Hashtable |
hiddenChildren
|
protected int |
numChildrenAdded
|
protected UiObject |
object
|
| Fields inherited from class edu.washington.cs.supple.rep.BaseType |
finalLegalValues, hasOrdering, lastUid, legalValues, legalValuesBinding, likelyValues, likelyValuesBinding, maxNumLegalValues, nullLegal, typicalIndexLength, uid |
| Fields inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl |
pcs |
| Constructor Summary | |
ContainerTypeImpl()
|
|
ContainerTypeImpl(java.util.Collection likelyValues,
java.util.Collection legalValues)
|
|
ContainerTypeImpl(java.lang.Object[] likelyValues,
java.lang.Object[] legalValues)
|
|
ContainerTypeImpl(ValueBinding likelyVals,
ValueBinding legalVals)
|
|
| Method Summary | |
void |
accept(UiVisitor visitor)
Visitor pattern. |
boolean |
addChild(java.lang.String name,
UiObject child)
If the child is not on the list of children yet and if there exists no other child with the same name, it is added |
boolean |
addDynamicChild(java.lang.String name,
UiObject child)
|
boolean |
childrenHaveLabels()
Checks if all children have meaningful labels |
java.lang.Object |
clone()
Clone this type, does not clone children. |
UiObject |
getChild(java.lang.String name)
|
java.util.Vector |
getChildren()
|
java.lang.String |
getIndex(java.lang.Object value)
|
int |
getNumChildren()
|
int |
getNumChildrenAdded()
Returns the total number of children added. |
UiObject |
getUiObject()
|
boolean |
hasIndex()
Index is a short unique summary of the value (which can be used for choosing present values, etc. |
boolean |
hasModifiableChild()
Checks if any descendant of this type is modifiable |
protected void |
init()
Initialize the container type. |
boolean |
isEnumerable()
This method tells you if possible values for this type can be (reasonably) enumerated |
boolean |
isLegalValueClass(java.lang.Class c)
Check if a class is legal for this type. |
boolean |
isPrimitiveType()
Test if this is a primitive type. |
void |
rebindChildrenToValue(java.lang.Object value)
rebinds children if the container value changes |
void |
removeChild(UiObject child)
Removes a child from this container; can only be called before the UI is submitted for rendering |
int |
size()
|
boolean |
swapChild(UiObject oldChild,
UiObject newChild)
To be used very carefully (pretty much only by UiTransformers) -- replaces one child ui object with another |
java.lang.String |
toPrettyString(java.lang.String pref)
|
java.lang.String |
toString()
|
| Methods inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl |
addPropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.washington.cs.supple.rep.SuppleType |
getIndex, getLegalValues, getLikelyValues, getLongestLegalIndex, getMaxNumLegalValues, getNumLegalValues, getNumLikelyValues, getTypicalIndexLength, getUniqueId, hasOrdering, hasSetLegalValues, isFinalLegalValues, isLegalValue, orderValues, verifyCurrentValue |
| Methods inherited from interface edu.washington.cs.supple.rep.SuppleBean |
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
protected java.util.Vector children
protected java.util.Vector dynamicChildren
protected java.util.Hashtable hiddenChildren
protected java.util.Hashtable childTable
protected int numChildrenAdded
protected UiObject object
protected ContainerTypeImpl derivedFrom
| Constructor Detail |
public ContainerTypeImpl()
public ContainerTypeImpl(java.util.Collection likelyValues,
java.util.Collection legalValues)
likelyValues - legalValues -
public ContainerTypeImpl(java.lang.Object[] likelyValues,
java.lang.Object[] legalValues)
likelyValues - legalValues -
public ContainerTypeImpl(ValueBinding likelyVals,
ValueBinding legalVals)
| Method Detail |
protected void init()
public java.lang.Object clone()
public boolean addChild(java.lang.String name,
UiObject child)
name - unique name to distinguish it from other childrenchild - child to be added; cannot be null
public boolean addDynamicChild(java.lang.String name,
UiObject child)
public boolean swapChild(UiObject oldChild,
UiObject newChild)
ContainerType
swapChild in interface ContainerTypeoldChild - newChild -
public void removeChild(UiObject child)
ContainerType
removeChild in interface ContainerTypechild - the child ui object to be removedpublic java.util.Vector getChildren()
getChildren in interface ContainerTypepublic UiObject getChild(java.lang.String name)
getChild in interface ContainerTypename - name of the child
public int getNumChildren()
getNumChildren in interface ContainerTypepublic int getNumChildrenAdded()
getNumChildrenAdded in interface ContainerTypepublic boolean isEnumerable()
SuppleType
isEnumerable in interface SuppleTypeisEnumerable in class BaseTypepublic int size()
size in interface ContainerTypepublic java.lang.String toString()
toString in class BaseTypepublic java.lang.String toPrettyString(java.lang.String pref)
toPrettyString in interface SuppleTypetoPrettyString in class BaseTypepublic boolean childrenHaveLabels()
childrenHaveLabels in interface ContainerTypepublic UiObject getUiObject()
getUiObject in interface ContainerTypepublic boolean hasModifiableChild()
ContainerType
hasModifiableChild in interface ContainerTypepublic boolean isPrimitiveType()
SuppleType
isPrimitiveType in interface SuppleTypepublic boolean isLegalValueClass(java.lang.Class c)
SuppleType
isLegalValueClass in interface SuppleTypec -
public boolean hasIndex()
SuppleType
hasIndex in interface SuppleTypepublic java.lang.String getIndex(java.lang.Object value)
getIndex in interface SuppleTypepublic void rebindChildrenToValue(java.lang.Object value)
public void accept(UiVisitor visitor)
SuppleType
accept in interface SuppleTypeaccept in class BaseType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||