edu.washington.cs.supple.wlib.java2
Class AbstractCheckBoxListWidget
java.lang.Object
edu.washington.cs.supple.render.AbstractWidget
edu.washington.cs.supple.render.SimpleWidget
edu.washington.cs.supple.wlib.java2.SimpleSwingWidget
edu.washington.cs.supple.wlib.java2.AbstractCheckBoxListWidget
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, SwingWidget, UnwrappedWidget, Widget
- Direct Known Subclasses:
- HorizontalCheckBoxListWidget, VerticalCheckBoxListWidget
- public abstract class AbstractCheckBoxListWidget
- extends SimpleSwingWidget
- Author:
- Jing Jing Long
|
Method Summary |
javax.swing.JComponent |
getSwingComponent(int hints)
|
protected abstract javax.swing.JPanel |
makePanel(int hints)
|
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 |
void |
setEnabled(boolean enabled)
This method is exposed only so that wrappers can access it; others should
stay away |
| Methods inherited from class edu.washington.cs.supple.render.AbstractWidget |
anotherPropertyChanged, clone, clone, disengage, dismissCurrentView, displayDynamic, equals, executeAction, generateWidgetDescriptor, getBag, getConcreteWidget, getCost, getParent, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, indexChanged, isEngaged, isEquivalent, legalValuesChanged, likelyValuesChanged, propertyChange, reportActionExecutionEvent, reportValueChangedEvent, setBag, setCost, setParent, setSizeCache, setValue, setWrapper, toString, 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, disengage, getBag, getConcreteWidget, getCost, getEffortEstimate, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, hasChildren, isEngaged, isEquivalent, setBag, setCost, setParent, setSizeCache, setWrapper, unwrapWidget |
vtype
protected VectorType vtype
elementType
protected SuppleType elementType
checkedBoxes
protected java.util.Vector checkedBoxes
boxes
protected java.util.Vector boxes
panel
protected javax.swing.JPanel panel
AbstractCheckBoxListWidget
public AbstractCheckBoxListWidget(UiObject object)
- Parameters:
object -
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 instances of enumerable vector types with final legal values
getSwingComponent
public javax.swing.JComponent getSwingComponent(int hints)
- Parameters:
hints - specifies the variant of the widget to be rendered
- Returns:
- a renderable component
makePanel
protected abstract javax.swing.JPanel makePanel(int hints)
setEnabled
public void setEnabled(boolean enabled)
- Description copied from interface:
Widget
- This method is exposed only so that wrappers can access it; others should
stay away
- Specified by:
setEnabled in interface Widget- Overrides:
setEnabled in class AbstractWidget
- Parameters:
enabled - indicates if the underlying object is active