edu.washington.cs.supple.rep
Class UiAlternativeImpl

java.lang.Object
  extended byedu.washington.cs.supple.rep.SuppleBeanImpl
      extended byedu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl
          extended byedu.washington.cs.supple.rep.UiObjectImpl
              extended byedu.washington.cs.supple.rep.UiAlternativeImpl
All Implemented Interfaces:
java.lang.Cloneable, ConstraintManipulation, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable, SuppleBean, SuppleUiObjectHierarchyElement, UiAlternative, UiObject, ValueListener

public class UiAlternativeImpl
extends UiObjectImpl
implements UiAlternative

Author:
kgajos
See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList alternatives
           
protected  UiObject curAlternative
           
protected  java.lang.String description
           
 
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
UiAlternativeImpl(java.lang.String description)
           
 
Method Summary
 void addAlternative(UiObject a)
           
 UiObject getCurrentAlternative()
           
 java.util.Iterator iterator()
           
 void setAlternative(UiObject a)
           
 int size()
           
 java.lang.String toPrettyString(java.lang.String pref)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.washington.cs.supple.rep.UiObjectImpl
accept, acceptBindingVisitor, addRenderingConstraint, addRenderingHint, bindActive, childChanged, clone, equals, getBottomUpObjects, getCommonAncestor, getInterfaceIdentifier, getPath, getRenderingConstraints, getRenderingHints, getTextLabel, getType, getUniqueId, getView, hashCode, hasTextLabel, isActive, isLeaf, isModifiable, isRuntime, propertyChange, setActive, setRuntime, setType, setView, updateParent, valueChanged
 
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, childChanged, equals, getInterfaceIdentifier, getTextLabel, getType, getUniqueId, getView, hashCode, hasTextLabel, isActive, isLeaf, isModifiable, isRuntime, setActive, 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 java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface edu.washington.cs.supple.rep.ConstraintManipulation
addRenderingConstraint, addRenderingHint, getRenderingConstraints, getRenderingHints
 

Field Detail

alternatives

protected java.util.ArrayList alternatives

curAlternative

protected UiObject curAlternative

description

protected java.lang.String description
Constructor Detail

UiAlternativeImpl

public UiAlternativeImpl(java.lang.String description)
Parameters:
description - the description -- used mostly for debugging
Method Detail

addAlternative

public void addAlternative(UiObject a)
Specified by:
addAlternative in interface UiAlternative

setAlternative

public void setAlternative(UiObject a)
Specified by:
setAlternative in interface UiAlternative

getCurrentAlternative

public UiObject getCurrentAlternative()
Specified by:
getCurrentAlternative in interface UiAlternative

size

public int size()
Specified by:
size in interface UiAlternative

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface UiAlternative

toString

public java.lang.String toString()
Specified by:
toString in interface UiObject
Overrides:
toString in class UiObjectImpl

toPrettyString

public java.lang.String toPrettyString(java.lang.String pref)
Specified by:
toPrettyString in interface UiObject
Overrides:
toPrettyString in class UiObjectImpl