edu.washington.cs.supple.wlib.java2
Class ImageWidget
java.lang.Object
edu.washington.cs.supple.render.AbstractWidget
edu.washington.cs.supple.render.SimpleWidget
edu.washington.cs.supple.wlib.java2.AbstractImageBasedWidget
edu.washington.cs.supple.wlib.java2.ImageWidget
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, SwingWidget, UnwrappedWidget, Widget
- public class ImageWidget
- extends AbstractImageBasedWidget
- Author:
- kgajos
Fields inherited from class edu.washington.cs.supple.wlib.java2.AbstractImageBasedWidget |
curImage, curImageIcon, desiredHeight, desiredWidth, downsample, DOWNSAMPLE_PROPERTY, height, IMAGE_NOT_AVAILABLE, imageHeight, imageLabel, imageWidth, width |
Method Summary |
javax.swing.JComponent |
getSwingComponent(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 |
java.lang.String |
toString()
|
protected void |
valueChanged(java.beans.PropertyChangeEvent evt)
Subclasses should override this method if they want to update display the
value of the underlying type changes |
Methods inherited from class edu.washington.cs.supple.render.AbstractWidget |
anotherPropertyChanged, clone, clone, disengage, dismissCurrentView, displayDynamic, engage, equals, executeAction, getBag, getConcreteWidget, getConcreteWidget, getCost, getParent, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, indexChanged, isEngaged, isEquivalent, legalValuesChanged, likelyValuesChanged, propertyChange, reportActionExecutionEvent, reportValueChangedEvent, setBag, setCost, setEnabled, setParent, setSizeCache, setValue, setWrapper, unwrapWidget |
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, engage, getBag, getConcreteWidget, getConcreteWidget, getCost, getEffortEstimate, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, hasChildren, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget |
imageType
protected ImageType imageType
ImageWidget
public ImageWidget(UiObject object,
int width,
int height)
- Parameters:
object
- width
- height
-
ImageWidget
public ImageWidget(UiObject object,
WidgetDescriptor wd,
WidgetFactory f)
rendersObject
public static boolean rendersObject(UiObject object)
- Description copied from class:
AbstractWidget
- A static method for testing the applicability of the widget given a type
of the UI component to be rendered
getSwingComponent
public javax.swing.JComponent getSwingComponent(int hints)
- Parameters:
hints
- specifies the variant of the widget to be rendered
- Returns:
- a renderable component
valueChanged
protected void valueChanged(java.beans.PropertyChangeEvent evt)
- Description copied from class:
AbstractWidget
- Subclasses should override this method if they want to update display the
value of the underlying type changes
- Overrides:
valueChanged
in class AbstractWidget
- Parameters:
evt
- property change event with details
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractImageBasedWidget