edu.washington.cs.supple.wlib.java2
Class AbstractDynamicPopupWidget

java.lang.Object
  extended byedu.washington.cs.supple.render.AbstractWidget
      extended byedu.washington.cs.supple.render.AbstractContainerWidget
          extended byedu.washington.cs.supple.wlib.java2.ContainerSwingWidget
              extended byedu.washington.cs.supple.wlib.java2.AbstractDynamicPopupWidget
All Implemented Interfaces:
java.lang.Cloneable, ContainerWidget, java.util.EventListener, java.beans.PropertyChangeListener, SwingWidget, UnwrappedWidget, Widget
Direct Known Subclasses:
DynamicPopupWidget

public class AbstractDynamicPopupWidget
extends ContainerSwingWidget

Author:
kgajos

Field Summary
 
Fields inherited from class edu.washington.cs.supple.wlib.java2.ContainerSwingWidget
actionButton, 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
AbstractDynamicPopupWidget(UiObject object)
           
 
Method Summary
 float getEffortEstimate(ActionDescription a)
           
 WidgetProperties getWidgetProperties()
          Returns the corresponding WidgetProperties
static boolean rendersObject(UiObject object)
          A static method for testing the applicability of the widget given a type of the UI component to be rendered
 
Methods inherited from class edu.washington.cs.supple.wlib.java2.ContainerSwingWidget
addActionButtonSize, addChildren, disengage, engage, generateWidgetDescriptor, getComponentForChild, getConcreteWidget, getContainerSize, getListingWidget, getSize, getSwingComponent, hasListingWidget, makeActionButton, makeActionButtons, makeSwingContainer, setEnabled, setListingWidget, toString
 
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, 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, setParent, setSizeCache, setWrapper, unwrapWidget
 

Constructor Detail

AbstractDynamicPopupWidget

public AbstractDynamicPopupWidget(UiObject object)
Parameters:
object -
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 ContainerSwingWidget
Returns:
properties associated with this widget

rendersObject

public static boolean rendersObject(UiObject object)
A static method for testing the applicability of the widget given a type of the UI component to be rendered

Returns:
true for all coumpound objects (including actions provided they have at least two arguments); false otherwise

getEffortEstimate

public float getEffortEstimate(ActionDescription a)