|
|||||||||||
| 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.SuppleUiObjectHierarchyElementImpl
edu.washington.cs.supple.rep.UiObjectImpl
edu.washington.cs.supple.rep.StateVarImpl
Represents state variable elements
| Field Summary | |
protected boolean |
requestedActive
|
protected ValueBinding |
valueBinding
|
protected java.lang.Object |
valueCache
|
| Fields inherited from class edu.washington.cs.supple.rep.UiObjectImpl |
active, activeValue, constraints, currentView, hints, interfaceIdentifier, modifiable, runtime, textLabel, type, uniqueId, uniqueIdCounter |
| Fields inherited from class edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl |
name, parent |
| Fields inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl |
pcs |
| Constructor Summary | |
StateVarImpl(SuppleType type,
java.lang.String label,
boolean modifiable)
|
|
StateVarImpl(SuppleType type,
java.lang.String label,
ValueBinding valueBinding,
boolean modifiable)
|
|
| Method Summary | |
protected void |
acceptBindingVisitor(UiVisitor visitor)
Helper for accept() - allows subclasses to extend the bindings to be visited without overriding accept(). |
void |
bindValue(ValueBinding binding)
Rebinds this object's value |
void |
childChanged()
Called by a child object if something in it or below it changes |
java.lang.Object |
clone()
|
java.lang.String |
getIndex()
Gets the index of this object's current value |
java.lang.String |
getIndex(int maxLength)
|
java.lang.Object |
getValue()
Returns locally cached value of the underlying bean |
ValueBinding |
getValueBinding()
Get the value binding. |
boolean |
hasValue()
Returns true if a value (other than null) has been set for this element |
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
void |
setActive(boolean a)
Lets you manually set the active state of a UiObject. |
void |
setValue(java.lang.Object v)
Sets the current value of this object |
java.lang.String |
toPrettyString(java.lang.String pref)
|
java.lang.String |
toString()
|
protected void |
updateIndex()
|
protected void |
updateValue(java.lang.Object value)
Update the local cache of bean's value and fire appropriate change event |
void |
valueChanged(ValueBinding binding,
java.lang.Object newValue)
Signals variable change. |
protected void |
verifyCurrentValue()
|
| Methods inherited from class edu.washington.cs.supple.rep.UiObjectImpl |
accept, addRenderingConstraint, addRenderingHint, bindActive, equals, getBottomUpObjects, getCommonAncestor, getInterfaceIdentifier, getPath, getRenderingConstraints, getRenderingHints, getTextLabel, getType, getUniqueId, getView, hashCode, hasTextLabel, isActive, isLeaf, isModifiable, isRuntime, setRuntime, setType, setView, updateParent |
| Methods inherited from class edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl |
getAncestors, getFullName, getName, getParent, getParentObject, getRootObject, isChildOf, isDescendantOf, isRoot, setName, setParent |
| 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.UiObject |
accept, equals, getInterfaceIdentifier, getTextLabel, getType, getUniqueId, getView, hashCode, hasTextLabel, isActive, isLeaf, isModifiable, isRuntime, setRuntime, setView |
| Methods inherited from interface edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElement |
getAncestors, getFullName, getName, getParent, getParentObject, getRootObject, isChildOf, isDescendantOf, isRoot, setName, setParent |
| Methods inherited from interface edu.washington.cs.supple.rep.SuppleBean |
addPropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface edu.washington.cs.supple.rep.ConstraintManipulation |
addRenderingConstraint, addRenderingHint, getRenderingConstraints, getRenderingHints |
| Field Detail |
protected java.lang.Object valueCache
protected transient ValueBinding valueBinding
protected boolean requestedActive
| Constructor Detail |
public StateVarImpl(SuppleType type,
java.lang.String label,
boolean modifiable)
type - label - modifiable -
public StateVarImpl(SuppleType type,
java.lang.String label,
ValueBinding valueBinding,
boolean modifiable)
type - label - modifiable - | Method Detail |
public java.lang.String toString()
toString in interface UiObjecttoString in class UiObjectImplpublic java.lang.String toPrettyString(java.lang.String pref)
toPrettyString in interface UiObjecttoPrettyString in class UiObjectImplpublic java.lang.Object clone()
clone in class UiObjectImplpublic void bindValue(ValueBinding binding)
StateVar
bindValue in interface StateVarbinding - public ValueBinding getValueBinding()
StateVar
getValueBinding in interface StateVarpublic void setActive(boolean a)
UiObject
setActive in interface UiObjectsetActive in class UiObjectImpla - new valueprotected void updateValue(java.lang.Object value)
value - the new value of the beanpublic java.lang.Object getValue()
StateVar
getValue in interface StateVarpublic boolean hasValue()
StateVar
hasValue in interface StateVarpublic void setValue(java.lang.Object v)
StateVar
setValue in interface StateVarv - new valueprotected void verifyCurrentValue()
protected void updateIndex()
public java.lang.String getIndex()
StateVar
getIndex in interface StateVarpublic java.lang.String getIndex(int maxLength)
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class UiObjectImplpublic void childChanged()
UiObject
childChanged in interface UiObjectchildChanged in class UiObjectImpl
public void valueChanged(ValueBinding binding,
java.lang.Object newValue)
ValueListener
valueChanged in interface ValueListenervalueChanged in class UiObjectImplprotected void acceptBindingVisitor(UiVisitor visitor)
UiObjectImpl
acceptBindingVisitor in class UiObjectImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||