|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.editor.Property
com.threerings.editor.FieldProperty
public class FieldProperty
A property accessed directly through a field.
| Constructor Summary | |
|---|---|
FieldProperty(Field field)
Creates a new field property. |
|
| Method Summary | |
|---|---|
Object |
get(Object object)
Retrieves the value of the property. |
boolean |
getBoolean(Object object)
Retrieves the value of the property. |
byte |
getByte(Object object)
Retrieves the value of the property. |
char |
getChar(Object object)
Retrieves the value of the property. |
double |
getDouble(Object object)
Retrieves the value of the property. |
float |
getFloat(Object object)
Retrieves the value of the property. |
Type |
getGenericType()
Returns the generic property type. |
int |
getInt(Object object)
Retrieves the value of the property. |
long |
getLong(Object object)
Retrieves the value of the property. |
Member |
getMember()
Returns the underlying member of the property (the field or method that provides the annotations). |
short |
getShort(Object object)
Retrieves the value of the property. |
Class<?> |
getType()
Returns the property type. |
void |
set(Object object,
Object value)
Sets the value of the property. |
void |
setBoolean(Object object,
boolean value)
Sets the value of the property. |
void |
setByte(Object object,
byte value)
Sets the value of the property. |
void |
setChar(Object object,
char value)
Sets the value of the property. |
void |
setDouble(Object object,
double value)
Sets the value of the property. |
void |
setFloat(Object object,
float value)
Sets the value of the property. |
void |
setInt(Object object,
int value)
Sets the value of the property. |
void |
setLong(Object object,
long value)
Sets the value of the property. |
void |
setShort(Object object,
short value)
Sets the value of the property. |
| Methods inherited from class com.threerings.editor.Property |
|---|
getAnnotation, getAnnotation, getArgumentType, getArgumentTypes, getColorName, getComponentSubtypes, getComponentType, getComponentTypeLabel, getGenericArgumentType, getGenericArgumentTypes, getGenericComponentType, getMaximum, getMaxSize, getMemberObject, getMessageBundle, getMinimum, getMinSize, getMode, getName, getScale, getStep, getSubtypes, getTypeLabel, getUnits, isAnnotationPresent, isLegalValue, shouldTranslateName, toString |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldProperty(Field field)
| Method Detail |
|---|
public Member getMember()
Property
getMember in class Propertypublic Class<?> getType()
Property
getType in class Propertypublic Type getGenericType()
Property
getGenericType in class Propertypublic boolean getBoolean(Object object)
Property
getBoolean in class Propertypublic byte getByte(Object object)
Property
getByte in class Propertypublic char getChar(Object object)
Property
getChar in class Propertypublic double getDouble(Object object)
Property
getDouble in class Propertypublic float getFloat(Object object)
Property
getFloat in class Propertypublic int getInt(Object object)
Property
getInt in class Propertypublic long getLong(Object object)
Property
getLong in class Propertypublic short getShort(Object object)
Property
getShort in class Propertypublic Object get(Object object)
Property
get in class Property
public void setBoolean(Object object,
boolean value)
Property
setBoolean in class Property
public void setByte(Object object,
byte value)
Property
setByte in class Property
public void setChar(Object object,
char value)
Property
setChar in class Property
public void setDouble(Object object,
double value)
Property
setDouble in class Property
public void setFloat(Object object,
float value)
Property
setFloat in class Property
public void setInt(Object object,
int value)
Property
setInt in class Property
public void setLong(Object object,
long value)
Property
setLong in class Property
public void setShort(Object object,
short value)
Property
setShort in class Property
public void set(Object object,
Object value)
Property
set in class Property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||