|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.render.AbstractWidget
edu.washington.cs.supple.render.AbstractContainerWidget
| Field Summary | |
protected java.util.Hashtable |
children
|
protected ContainerType |
containerType
|
| Fields inherited from class edu.washington.cs.supple.render.AbstractWidget |
bag, cost, engaged, object, parent, stateVar, textLabel, type, widgetDescriptor, wrapper |
| Fields inherited from interface edu.washington.cs.supple.render.Widget |
MAX_HINT, NO_BORDER, NO_NAME, TOP_LEVEL_WIDGET |
| Constructor Summary | |
AbstractContainerWidget(UiObject object)
|
|
| Method Summary | |
java.util.Iterator |
childIterator()
Returns an iterator over child widgets. |
void |
disengage()
Used to break the connection between the widget and the underlying ui object |
void |
engage()
Used to tie the widgets with the underlying ui objects |
protected Widget |
getChild(UiObject object)
Returns the widget object of a child corresponding to the description contained in the object |
protected Widget |
getChildFor(UiObject object)
Returns the widget for a given child object |
protected java.awt.Dimension |
getMaxChildSize(int hints)
Calls the enclosing WidgetBag to obtain the info |
protected java.awt.Dimension |
getMaxChildSize(int hints,
java.util.Collection objects)
Calls the enclosing WidgetBag to obtain the info |
protected java.awt.Dimension |
getMinChildSize(int hints,
UiObject object)
|
protected java.awt.Dimension |
getSumChildSize(int hints)
Calls the enclosing WidgetBag to obtain the info |
protected java.awt.Dimension |
getSumChildSize(int hints,
java.util.Collection objects)
Calls the enclosing WidgetBag to obtain the info |
WidgetProperties |
getWidgetProperties()
Returns the corresponding WidgetProperties |
boolean |
hasChildren()
|
void |
makeVisible(UiObject target)
This piece of functionality is necessary for interfaces with shortcuts -- it forces the container widget to make a particular child visible; this base implementation assumes that widgets are rendered side by side so it only makes sure that the target is a legal child. |
void |
setChildren(java.util.Hashtable h)
Called by the WidgetBag when the solution is finalized |
java.lang.String |
toString()
|
| Methods inherited from class edu.washington.cs.supple.render.AbstractWidget |
anotherPropertyChanged, clone, clone, dismissCurrentView, displayDynamic, equals, executeAction, generateWidgetDescriptor, getBag, getConcreteWidget, getConcreteWidget, getCost, getParent, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, indexChanged, isEngaged, isEquivalent, legalValuesChanged, likelyValuesChanged, propertyChange, rendersObject, reportActionExecutionEvent, reportValueChangedEvent, setBag, setCost, setEnabled, setParent, setSizeCache, setValue, setWrapper, unwrapWidget, valueChanged |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.washington.cs.supple.render.Widget |
clone, clone, getBag, getConcreteWidget, getConcreteWidget, getCost, getEffortEstimate, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget |
| Field Detail |
protected ContainerType containerType
protected java.util.Hashtable children
| Constructor Detail |
public AbstractContainerWidget(UiObject object)
| Method Detail |
public WidgetProperties getWidgetProperties()
Widget
getWidgetProperties in interface WidgetgetWidgetProperties in class AbstractWidgetprotected java.awt.Dimension getMaxChildSize(int hints)
hints - the rendering hints
protected java.awt.Dimension getMinChildSize(int hints,
UiObject object)
protected java.awt.Dimension getMaxChildSize(int hints,
java.util.Collection objects)
hints - the rendering hintsobjects - the subset of children for which calculation will be performed
protected java.awt.Dimension getSumChildSize(int hints)
hints - the rendering hints
protected java.awt.Dimension getSumChildSize(int hints,
java.util.Collection objects)
hints - the rendering hintsobjects - the subset of children for which calculation will be performed
protected Widget getChild(UiObject object)
object - description
public java.util.Iterator childIterator()
childIterator in interface Widgetpublic boolean hasChildren()
hasChildren in interface Widgetprotected Widget getChildFor(UiObject object)
object - child object
public void setChildren(java.util.Hashtable h)
setChildren in interface ContainerWidgeth - a mapping from UiObjects to child widgetspublic void makeVisible(UiObject target)
makeVisible in interface ContainerWidgettarget - the vhild object that should be made visible
java.lang.IllegalArgumentException - if the child does not existpublic java.lang.String toString()
toString in class AbstractWidgetpublic void disengage()
Widget
disengage in interface Widgetdisengage in class AbstractWidgetpublic void engage()
Widget
engage in interface Widgetengage in class AbstractWidget
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||