edu.washington.cs.supple.render
Class WidgetDescriptor
java.lang.Object
edu.washington.cs.supple.render.WidgetDescriptor
- All Implemented Interfaces:
- java.io.Serializable
- public class WidgetDescriptor
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- kgajos
Used to describe detailed properties of a widget (may be used to
re-instantiate widget)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
widgetClass
protected transient java.lang.Class widgetClass
properties
protected java.util.Hashtable properties
WidgetDescriptor
public WidgetDescriptor(Widget w)
getWidgetClass
public java.lang.Class getWidgetClass()
- Returns:
- Returns the widgetClass.
setProperty
public void setProperty(java.lang.String name,
java.io.Serializable value)
getProperty
public java.lang.Object getProperty(java.lang.String name)
getIntProperty
public int getIntProperty(java.lang.String name,
int defaultValue)
getDoubleProperty
public double getDoubleProperty(java.lang.String name,
double defaultValue)
getBooleanProperty
public boolean getBooleanProperty(java.lang.String name,
boolean defaultValue)
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
toString
public java.lang.String toString()
getPropertyNames
public java.util.Collection getPropertyNames()
- Returns:
- the names of the widget's properties...