com.threerings.editor
Class FieldProperty

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.editor.Property
          extended by com.threerings.editor.FieldProperty
All Implemented Interfaces:
Copyable, Cloneable

public class FieldProperty
extends Property

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

FieldProperty

public FieldProperty(Field field)
Creates a new field property.

Method Detail

getMember

public Member getMember()
Description copied from class: Property
Returns the underlying member of the property (the field or method that provides the annotations).

Specified by:
getMember in class Property

getType

public Class<?> getType()
Description copied from class: Property
Returns the property type.

Specified by:
getType in class Property

getGenericType

public Type getGenericType()
Description copied from class: Property
Returns the generic property type.

Specified by:
getGenericType in class Property

getBoolean

public boolean getBoolean(Object object)
Description copied from class: Property
Retrieves the value of the property.

Overrides:
getBoolean in class Property

getByte

public byte getByte(Object object)
Description copied from class: Property
Retrieves the value of the property.

Overrides:
getByte in class Property

getChar

public char getChar(Object object)
Description copied from class: Property
Retrieves the value of the property.

Overrides:
getChar in class Property

getDouble

public double getDouble(Object object)
Description copied from class: Property
Retrieves the value of the property.

Overrides:
getDouble in class Property

getFloat

public float getFloat(Object object)
Description copied from class: Property
Retrieves the value of the property.

Overrides:
getFloat in class Property

getInt

public int getInt(Object object)
Description copied from class: Property
Retrieves the value of the property.

Overrides:
getInt in class Property

getLong

public long getLong(Object object)
Description copied from class: Property
Retrieves the value of the property.

Overrides:
getLong in class Property

getShort

public short getShort(Object object)
Description copied from class: Property
Retrieves the value of the property.

Overrides:
getShort in class Property

get

public Object get(Object object)
Description copied from class: Property
Retrieves the value of the property.

Specified by:
get in class Property

setBoolean

public void setBoolean(Object object,
                       boolean value)
Description copied from class: Property
Sets the value of the property.

Overrides:
setBoolean in class Property

setByte

public void setByte(Object object,
                    byte value)
Description copied from class: Property
Sets the value of the property.

Overrides:
setByte in class Property

setChar

public void setChar(Object object,
                    char value)
Description copied from class: Property
Sets the value of the property.

Overrides:
setChar in class Property

setDouble

public void setDouble(Object object,
                      double value)
Description copied from class: Property
Sets the value of the property.

Overrides:
setDouble in class Property

setFloat

public void setFloat(Object object,
                     float value)
Description copied from class: Property
Sets the value of the property.

Overrides:
setFloat in class Property

setInt

public void setInt(Object object,
                   int value)
Description copied from class: Property
Sets the value of the property.

Overrides:
setInt in class Property

setLong

public void setLong(Object object,
                    long value)
Description copied from class: Property
Sets the value of the property.

Overrides:
setLong in class Property

setShort

public void setShort(Object object,
                     short value)
Description copied from class: Property
Sets the value of the property.

Overrides:
setShort in class Property

set

public void set(Object object,
                Object value)
Description copied from class: Property
Sets the value of the property.

Specified by:
set in class Property


Copyright © 2011. All Rights Reserved.