edu.washington.cs.supple.wlib.java2
Class DynamicPopupWidget
java.lang.Object
edu.washington.cs.supple.render.AbstractWidget
edu.washington.cs.supple.render.AbstractContainerWidget
edu.washington.cs.supple.wlib.java2.ContainerSwingWidget
edu.washington.cs.supple.wlib.java2.AbstractDynamicPopupWidget
edu.washington.cs.supple.wlib.java2.DynamicPopupWidget
- All Implemented Interfaces:
- java.lang.Cloneable, ContainerWidget, java.util.EventListener, java.beans.PropertyChangeListener, SwingWidget, UnwrappedWidget, Widget
- public class DynamicPopupWidget
- extends AbstractDynamicPopupWidget
- Author:
- kgajos
|
Method Summary |
protected void |
dismiss()
|
protected java.awt.Dimension |
getContainerSize(int hints)
Unless a child overrides getSize, it should override this method |
WidgetProperties |
getWidgetProperties()
Returns the corresponding WidgetProperties |
protected javax.swing.JComponent |
makeActionButtons(int hints)
Creates a panel with appropriate action buttons |
protected javax.swing.JComponent |
makeSwingContainer(int hints)
To be overriden by children (unless they override getSwingComponent) |
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 |
java.lang.String |
toString()
|
| Methods inherited from class edu.washington.cs.supple.wlib.java2.ContainerSwingWidget |
addActionButtonSize, addChildren, disengage, engage, generateWidgetDescriptor, getComponentForChild, getConcreteWidget, getListingWidget, getSize, getSwingComponent, hasListingWidget, makeActionButton, setEnabled, 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, 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 |
DynamicPopupWidget
public DynamicPopupWidget(UiObject object)
- Parameters:
object -
getWidgetProperties
public WidgetProperties getWidgetProperties()
- Description copied from interface:
Widget
- Returns the corresponding WidgetProperties
- Specified by:
getWidgetProperties in interface Widget- Overrides:
getWidgetProperties in class AbstractDynamicPopupWidget
- 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 DynamicType objects; false otherwise
getContainerSize
protected java.awt.Dimension getContainerSize(int hints)
- Description copied from class:
ContainerSwingWidget
- Unless a child overrides getSize, it should override this method
- Overrides:
getContainerSize in class ContainerSwingWidget
- Parameters:
hints - rendering hints
- Returns:
- the size of the container object
makeSwingContainer
protected javax.swing.JComponent makeSwingContainer(int hints)
- Description copied from class:
ContainerSwingWidget
- To be overriden by children (unless they override getSwingComponent)
- Overrides:
makeSwingContainer in class ContainerSwingWidget
- Parameters:
hints - rendering hints
- Returns:
- the container with all elements listed in the type
toString
public java.lang.String toString()
- Overrides:
toString in class ContainerSwingWidget
makeActionButtons
protected javax.swing.JComponent makeActionButtons(int hints)
- Description copied from class:
ContainerSwingWidget
- Creates a panel with appropriate action buttons
- Overrides:
makeActionButtons in class ContainerSwingWidget
- Parameters:
hints - TODO
- Returns:
- the panel with action buttons
dismiss
protected void dismiss()