T
- Type of the propertypublic interface Property<T> extends Iterable<Property<?>>
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
AbstractProperty<T> |
deepCopy()
Construct a deep copy of this property (duplicates everything except immutable fields).
|
Property<?> |
findByKey(String propertyKey)
Retrieve a Property anywhere in this group that has the specified key.
|
String |
getDescription()
Return a description of the property (may use HTML markup).
|
int |
getDisplayPriority()
Display priority determines the order in which properties should be displayed.
|
String |
getKey()
Retrieve the key of this Property.
|
CompoundProperty |
getParent()
Retrieve the parent property.
|
String |
getShortName()
Return a short description of the property.
|
T |
getValue()
Retrieve the current value of the property.
|
String |
htmlStateDescription()
Generate a description of the state of this property in HTML (excluding the <html> at the start and the
</html> at the end.
|
boolean |
isReadOnly()
Return true if the property can not be altered.
|
void |
setValue(T newValue)
Change the value of the property.
|
forEach, iterator, spliterator
T getValue()
String getShortName()
String getDescription()
void setValue(T newValue) throws PropertyException
newValue
- T; the new value for the propertyPropertyException
- when this Property is read-only, or newValue is not validboolean isReadOnly()
int getDisplayPriority()
String htmlStateDescription()
AbstractProperty<T> deepCopy()
Property<?> findByKey(String propertyKey)
propertyKey
- String; the keyString getKey()
CompoundProperty getParent()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.