edu.washington.cs.supple.rep
Interface StateVar

All Superinterfaces:
ConstraintManipulation, java.util.EventListener, java.beans.PropertyChangeListener, SuppleBean, SuppleUiObjectHierarchyElement, UiObject
All Known Subinterfaces:
PrimitiveShortcut
All Known Implementing Classes:
StateVarImpl

public interface StateVar
extends UiObject

StateVars represent application variables.

Author:
kgajos

Method Summary
 void bindValue(ValueBinding binding)
          Rebinds this object's value
 java.lang.String getIndex()
          Gets the index of this object's current value
 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 setValue(java.lang.Object v)
          Sets the current value of this object
 
Methods inherited from interface edu.washington.cs.supple.rep.UiObject
accept, childChanged, equals, getInterfaceIdentifier, getTextLabel, getType, getUniqueId, getView, hashCode, hasTextLabel, isActive, isLeaf, isModifiable, isRuntime, setActive, setRuntime, setView, toPrettyString, toString
 
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 java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface edu.washington.cs.supple.rep.ConstraintManipulation
addRenderingConstraint, addRenderingHint, getRenderingConstraints, getRenderingHints
 

Method Detail

getValue

public java.lang.Object getValue()
Returns locally cached value of the underlying bean

Returns:
value of the underlying bean

hasValue

public boolean hasValue()
Returns true if a value (other than null) has been set for this element

Returns:
true if a value has been set for this element

setValue

public void setValue(java.lang.Object v)
Sets the current value of this object

Parameters:
v - new value

getIndex

public java.lang.String getIndex()
Gets the index of this object's current value

Returns:

bindValue

public void bindValue(ValueBinding binding)
Rebinds this object's value

Parameters:
binding -

getValueBinding

public ValueBinding getValueBinding()
Get the value binding.