edu.washington.cs.supple.render
Class WidgetDescriptor

java.lang.Object
  extended byedu.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

Field Summary
protected  java.util.Hashtable properties
           
protected  java.lang.Class widgetClass
           
 
Constructor Summary
WidgetDescriptor(Widget w)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean getBooleanProperty(java.lang.String name, boolean defaultValue)
           
 double getDoubleProperty(java.lang.String name, double defaultValue)
           
 int getIntProperty(java.lang.String name, int defaultValue)
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.util.Collection getPropertyNames()
           
 java.lang.Class getWidgetClass()
           
 int hashCode()
           
 void setProperty(java.lang.String name, java.io.Serializable value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

widgetClass

protected transient java.lang.Class widgetClass

properties

protected java.util.Hashtable properties
Constructor Detail

WidgetDescriptor

public WidgetDescriptor(Widget w)
Method Detail

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...