|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.swingext.Property
A property that can be displayed and edited within a PropertyTable.
Constructor Summary | |
---|---|
Property(java.lang.String name,
java.lang.Class valueType,
java.lang.Object initialValue)
Constructs a new Property. |
|
Property(java.lang.String name,
java.lang.Class valueType,
java.lang.Object initialValue,
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 name, java.lang.Class valueType, java.lang.Object initialValue)
name
- the property namevalueType
- the value type classinitialValue
- the initial valuepublic Property(java.lang.String name, java.lang.Class valueType, java.lang.Object initialValue, java.lang.Object[] values)
name
- the property namevalueType
- the value type classinitialValue
- 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
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |