|
||||||||||
| 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.PathProperty
public class PathProperty
A property that
| Constructor Summary | |
|---|---|
PathProperty(ConfigManager cfgmgr,
String name,
Object reference,
String... paths)
Creates a new path property. |
|
| Method Summary | |
|---|---|
static Property[] |
createPath(ConfigManager cfgmgr,
Object object,
String path)
Attempts to resolve the provided path into a property chain, returning null
on failure. |
Object |
get(Object object)
Retrieves the value of the property. |
String |
getColorName()
Returns the name of the color lookup for the property. |
Type |
getGenericType()
Returns the generic property type. |
double |
getMaximum()
Returns the maximum value. |
int |
getMaxSize()
Returns the maximum size; |
Member |
getMember()
Returns the underlying member of the property (the field or method that provides the annotations). |
Object |
getMemberObject(Object object)
Returns a reference to the member object (the object to whose member Property.getMember()
refers, given the object one would pass to Property.get(java.lang.Object) or Property.set(java.lang.Object, java.lang.Object)). |
double |
getMinimum()
Returns the minimum value. |
int |
getMinSize()
Returns the minimum size. |
String |
getMode()
Returns the mode string. |
double |
getScale()
Returns the scale value. |
double |
getStep()
Returns the step value. |
Class<?> |
getType()
Returns the property type. |
String |
getUnits()
Returns the units string. |
void |
set(Object object,
Object value)
Sets the value of the property. |
boolean |
shouldTranslateName()
Returns whether or not we should attempt to translate the name. |
| Methods inherited from class com.threerings.editor.Property |
|---|
getAnnotation, getAnnotation, getArgumentType, getArgumentTypes, getBoolean, getByte, getChar, getComponentSubtypes, getComponentType, getComponentTypeLabel, getDouble, getFloat, getGenericArgumentType, getGenericArgumentTypes, getGenericComponentType, getInt, getLong, getMessageBundle, getName, getShort, getSubtypes, getTypeLabel, isAnnotationPresent, isLegalValue, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, 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 PathProperty(ConfigManager cfgmgr,
String name,
Object reference,
String... paths)
throws InvalidPathsException
cfgmgr - the config manager to use when resolving references.name - the name of the property.reference - the reference object from which we derive our property chains.paths - the list of paths.
InvalidPathsException - if none of the supplied paths are valid.| Method Detail |
|---|
public static Property[] createPath(ConfigManager cfgmgr,
Object object,
String path)
null
on failure.
public boolean shouldTranslateName()
Property
shouldTranslateName in class Propertypublic String getColorName()
Property
getColorName in class Propertypublic Member getMember()
Property
getMember in class Propertypublic Object getMemberObject(Object object)
PropertyProperty.getMember()
refers, given the object one would pass to Property.get(java.lang.Object) or Property.set(java.lang.Object, java.lang.Object)).
getMemberObject in class Propertypublic Class<?> getType()
Property
getType in class Propertypublic Type getGenericType()
Property
getGenericType in class Propertypublic String getMode()
Property
getMode in class Propertypublic String getUnits()
Property
getUnits in class Propertypublic double getMinimum()
Property
getMinimum in class Propertypublic double getMaximum()
Property
getMaximum in class Propertypublic double getStep()
Property
getStep in class Propertypublic double getScale()
Property
getScale in class Propertypublic int getMinSize()
Property
getMinSize in class Propertypublic int getMaxSize()
Property
getMaxSize in class Propertypublic Object get(Object object)
Property
get 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 | |||||||||