T
- type of the propertypublic abstract class AbstractProperty<T> extends Object implements Iterable<AbstractProperty<T>>
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $,
initial version 18 dec. 2014
Constructor and Description |
---|
AbstractProperty(int displayPriority) |
Modifier and Type | Method and Description |
---|---|
abstract AbstractProperty<T> |
deepCopy()
Construct a deep copy of this property (duplicates everything except immutable fields).
|
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 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.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
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 abstract String htmlStateDescription()
public abstract AbstractProperty<T> deepCopy()
public final Iterator<AbstractProperty<T>> iterator()
iterator
in interface Iterable<AbstractProperty<T>>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.