|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.swidgets.Property
A property that can be displayed and edited within a PropertyTable.
Constructor Summary | |
Property(java.lang.String theName,
java.lang.Class theValueType,
java.lang.Object theInitialValue)
Constructs a new Property. |
|
Property(java.lang.String theName,
java.lang.Class theValueType,
java.lang.Object theInitialValue,
java.lang.Object[] values)
Constructs a new Property. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compares two Properties by comparing their names. |
java.lang.Object[] |
getAvailableValues()
Returns the set of available property values, or null if no such finite set exists. |
java.lang.Object |
getCurrentValue()
Returns the currently selected property value. |
java.lang.Object |
getInitialValue()
Returns the initial property value. |
java.lang.String |
getName()
Returns the property name. |
java.lang.Class |
getValueType()
Property editors should be configured to edit objects of this type. |
void |
setCurrentValue(java.lang.Object value)
Sets the currently selected property value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Property(java.lang.String theName, java.lang.Class theValueType, java.lang.Object theInitialValue)
theName
- the property nametheValueType
- the value type classtheInitialValue
- the initial valuepublic Property(java.lang.String theName, java.lang.Class theValueType, java.lang.Object theInitialValue, java.lang.Object[] values)
theName
- the property nametheValueType
- the value type classtheInitialValue
- the initial valuevalues
- the set of available values to choose fromMethod Detail |
public java.lang.String getName()
public java.lang.Class getValueType()
public java.lang.Object getInitialValue()
public java.lang.Object[] getAvailableValues()
public java.lang.Object getCurrentValue()
public void setCurrentValue(java.lang.Object value)
value
- new property valuepublic int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |