edu.washington.cs.supple.render
Interface ContainerWidget

All Superinterfaces:
java.lang.Cloneable, Widget
All Known Subinterfaces:
PopupWidget
All Known Implementing Classes:
AbstractContainerWidget, AbstractPopupWidget

public interface ContainerWidget
extends Widget

Author:
kgajos

Field Summary
 
Fields inherited from interface edu.washington.cs.supple.render.Widget
MAX_HINT, NO_BORDER, NO_NAME, TOP_LEVEL_WIDGET
 
Method Summary
 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
 
Methods inherited from interface edu.washington.cs.supple.render.Widget
childIterator, clone, clone, disengage, engage, getBag, getConcreteWidget, getConcreteWidget, getCost, getEffortEstimate, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, hasChildren, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget
 

Method Detail

setChildren

public void setChildren(java.util.Hashtable h)
Called by the WidgetBag when the solution is finalized

Parameters:
h - a mapping from UiObjects to child widgets

makeVisible

public 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.

Parameters:
target - the vhild object that should be made visible
Throws:
java.lang.IllegalArgumentException - if the child does not exist