Modifier
, java.io.Serializable
ModifierFunctionWrapper
public class ModifierGeneral extends java.lang.Object implements Modifier, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.Object[] |
object |
|
protected java.lang.String |
property |
|
protected java.lang.reflect.Method[] |
readMethod |
|
protected java.lang.reflect.Method[] |
writeMethod |
Constructor | Description |
---|---|
ModifierGeneral(java.lang.Object[] obj,
java.lang.String prop) |
Constructor connecting the modifier's getValue and setValue methods to the set/get accessor
methods of the object being modifier.
|
ModifierGeneral(java.lang.Object obj,
java.lang.String prop) |
Modifier for property of a single object (most common use)
|
Modifier and Type | Method | Description |
---|---|---|
Dimension |
getDimension() |
Returns the dimension of the property being modified.
|
java.lang.String |
getLabel() |
Returns a descriptive label of the property being modified.
|
java.lang.Object[] |
getObject() |
|
java.lang.String |
getProperty() |
|
double |
getValue() |
Gets the current value of the property.
|
void |
setLabel(java.lang.String label) |
|
void |
setValue(double d) |
Sets the value of the property.
|
protected java.lang.Object[] object
protected java.lang.String property
protected transient java.lang.reflect.Method[] readMethod
protected transient java.lang.reflect.Method[] writeMethod
public ModifierGeneral(java.lang.Object[] obj, java.lang.String prop)
obj
- the object with the property to be modifiedprop
- the name of the property being modifiedpublic ModifierGeneral(java.lang.Object obj, java.lang.String prop)
public void setValue(double d)
Modifier
public double getValue()
Modifier
public java.lang.String getLabel()
Modifier
public void setLabel(java.lang.String label)
label
- The label to set. Default is the property name.public Dimension getDimension()
Modifier
getDimension
in interface Modifier
public java.lang.Object[] getObject()
public java.lang.String getProperty()