com.threerings.editor
Class TranslatedPathProperty

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

public class TranslatedPathProperty
extends PathProperty

A property that


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.editor.PathProperty
PathProperty.IndexProperty
 
Field Summary
protected  MessageBundle _msgs
          Our message bundle.
 
Fields inherited from class com.threerings.editor.PathProperty
_paths
 
Fields inherited from class com.threerings.editor.Property
_argumentTypes, _configTypes, _genericArgumentTypes, _name
 
Constructor Summary
TranslatedPathProperty(ConfigManager cfgmgr, String name, String bundle, Object reference, String... paths)
          Creates a new path property.
 
Method Summary
protected  void setProperty(Object obj, Object value, Property prop, boolean coerce)
          Sets the property value.
 
Methods inherited from class com.threerings.editor.PathProperty
coerce, createPath, get, getColorName, getGenericType, getMaximum, getMaxSize, getMember, getMemberObject, getMinimum, getMinSize, getMode, getProperty, getProperty, getScale, getStep, getType, getUnits, set, shouldTranslateName
 
Methods inherited from class com.threerings.editor.Property
addSubtypes, addSubtypes, getAnnotation, getAnnotation, getArgumentType, getArgumentTypes, getBoolean, getByte, getChar, getComponentSubtypes, getComponentType, getComponentTypeLabel, getDouble, getEditorTypes, getFloat, getGenericArgumentType, getGenericArgumentTypes, getGenericComponentType, getInt, getLong, getMessageBundle, getName, getShort, getSubtypes, getSubtypes, getTypeArguments, getTypeArguments, getTypeArguments, getTypeClass, getTypeLabel, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_msgs

protected MessageBundle _msgs
Our message bundle.

Constructor Detail

TranslatedPathProperty

public TranslatedPathProperty(ConfigManager cfgmgr,
                              String name,
                              String bundle,
                              Object reference,
                              String... paths)
                       throws InvalidPathsException
Creates a new path property.

Parameters:
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.
Throws:
InvalidPathsException - if none of the supplied paths are valid.
Method Detail

setProperty

protected void setProperty(Object obj,
                           Object value,
                           Property prop,
                           boolean coerce)
Description copied from class: PathProperty
Sets the property value.

Overrides:
setProperty in class PathProperty