T
- type of the propertypublic abstract class AbstractProperty<T> extends Object implements Iterable<AbstractProperty<T>>
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
AbstractProperty(int displayPriority) |
Modifier and Type | Method and Description |
---|---|
abstract 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.
|
abstract String |
getShortName()
Return a short description of the property.
|
abstract T |
getValue()
Retrieve the current value of the property.
|
abstract boolean |
isReadOnly()
Return true if the property can not be altered.
|
Iterator<AbstractProperty<T>> |
iterator() |
abstract void |
setValue(T newValue)
Change the value of the property.
|
String |
toString() |
public AbstractProperty(int displayPriority)
displayPriority
- sorting order when properties are displayed to the user.public abstract T getValue()
public abstract String getShortName()
public abstract String getDescription()
public abstract void setValue(T newValue) throws PropertyException
newValue
- T; the new value for the propertyPropertyException
- when this Property is read-only, or newValue is not validpublic abstract boolean isReadOnly()
public final int getDisplayPriority()
public final Iterator<AbstractProperty<T>> iterator()
iterator
in interface Iterable<AbstractProperty<T>>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.