edu.washington.cs.supple.wlib.awt
Class HorizontalContainerWidget

java.lang.Object
  extended byedu.washington.cs.supple.render.AbstractWidget
      extended byedu.washington.cs.supple.render.AbstractContainerWidget
          extended byedu.washington.cs.supple.wlib.awt.ContainerAwtWidget
              extended byedu.washington.cs.supple.wlib.awt.HorizontalContainerWidget
All Implemented Interfaces:
AwtWidget, java.lang.Cloneable, ContainerWidget, java.util.EventListener, java.beans.PropertyChangeListener, UnwrappedWidget, Widget

public class HorizontalContainerWidget
extends ContainerAwtWidget

Author:
Jing Jing Long

Field Summary
 
Fields inherited from class edu.washington.cs.supple.wlib.awt.ContainerAwtWidget
LEFT, LIST_PLACEMENT_PROPERTY, LISTING_WIDGET_PROPERTY, listingWidget, listPlacement, TOP
 
Fields inherited from class edu.washington.cs.supple.render.AbstractContainerWidget
children, 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
HorizontalContainerWidget(UiObject object)
           
HorizontalContainerWidget(UiObject object, AwtWidget lWidget, int placement)
           
HorizontalContainerWidget(UiObject object, WidgetDescriptor wd, WidgetFactory f)
           
 
Method Summary
protected  java.awt.Dimension getContainerSize(int hints)
          Unless a child overrides getSize, it should override this method
 float getEffortEstimate(ActionDescription a)
           
 WidgetProperties getWidgetProperties()
          Returns the corresponding WidgetProperties
protected  java.awt.Container makeAwtContainer(int hints)
          To be overriden by children (unless they override getAwtComponent)
 java.lang.String toString()
           
 
Methods inherited from class edu.washington.cs.supple.wlib.awt.ContainerAwtWidget
addActionButtonSize, addChildren, disengage, engage, generateWidgetDescriptor, getAwtComponent, getComponentForChild, getConcreteWidget, getListingWidget, getSize, hasListingWidget, makeActionButton, makeActionButtons, rendersObject, setListingWidget
 
Methods inherited from class edu.washington.cs.supple.render.AbstractContainerWidget
childIterator, getChild, getChildFor, getMaxChildSize, getMaxChildSize, getMinChildSize, getSumChildSize, getSumChildSize, hasChildren, makeVisible, setChildren
 
Methods inherited from class edu.washington.cs.supple.render.AbstractWidget
anotherPropertyChanged, clone, clone, dismissCurrentView, displayDynamic, equals, executeAction, getBag, getConcreteWidget, getCost, getParent, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, indexChanged, isEngaged, isEquivalent, legalValuesChanged, likelyValuesChanged, propertyChange, 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
childIterator, clone, clone, getBag, getConcreteWidget, getCost, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, hasChildren, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget
 

Constructor Detail

HorizontalContainerWidget

public HorizontalContainerWidget(UiObject object)
Parameters:
object -

HorizontalContainerWidget

public HorizontalContainerWidget(UiObject object,
                                 AwtWidget lWidget,
                                 int placement)
Parameters:
object -
lWidget -
placement -

HorizontalContainerWidget

public HorizontalContainerWidget(UiObject object,
                                 WidgetDescriptor wd,
                                 WidgetFactory f)
                          throws java.lang.Exception
Method Detail

getWidgetProperties

public WidgetProperties getWidgetProperties()
Description copied from interface: Widget
Returns the corresponding WidgetProperties

Specified by:
getWidgetProperties in interface Widget
Overrides:
getWidgetProperties in class ContainerAwtWidget
Returns:
properties associated with this widget

getContainerSize

protected java.awt.Dimension getContainerSize(int hints)
Description copied from class: ContainerAwtWidget
Unless a child overrides getSize, it should override this method

Overrides:
getContainerSize in class ContainerAwtWidget
Parameters:
hints - rendering hints
Returns:
the size of the container object

toString

public java.lang.String toString()
Overrides:
toString in class ContainerAwtWidget

makeAwtContainer

protected java.awt.Container makeAwtContainer(int hints)
Description copied from class: ContainerAwtWidget
To be overriden by children (unless they override getAwtComponent)

Overrides:
makeAwtContainer in class ContainerAwtWidget
Parameters:
hints - rendering hints
Returns:
the container with all elements listed in the type

getEffortEstimate

public float getEffortEstimate(ActionDescription a)