T
- type of the propertypublic abstract class AbstractProperty<T> extends Object implements Property<T>, Serializable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2016-05-28 11:33:31 +0200 (Sat, 28 May 2016) $, @version $Revision: 2051 $, by $Author: averbraeck $,
initial version 18 dec. 2014
Constructor and Description |
---|
AbstractProperty(String key,
int displayPriority,
String shortName,
String description)
Construct a new AbstractProperty.
|
Modifier and Type | Method and Description |
---|---|
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 AbstractProperty.
|
CompoundProperty |
getParent()
Retrieve the parent property.
|
String |
getShortName()
Return a short description 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.
|
boolean |
isReadOnly()
Return true if the property can not be altered.
|
Iterator<Property<?>> |
iterator() |
protected void |
setParent(CompoundProperty newParent)
Set the parent of this AbstractProperty.
|
void |
setReadOnly(boolean readOnlyValue)
Finalize the readOnly flag.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deepCopy, getValue, setValue
forEach, spliterator
public AbstractProperty(String key, int displayPriority, String shortName, String description)
key
- String; unique (within this property tree) name of the new AbstractPropertydisplayPriority
- sorting order when properties are displayed to the usershortName
- String; concise description of the propertydescription
- String; long description of the property (may use HTML markup)public final void setReadOnly(boolean readOnlyValue)
readOnlyValue
- boolean; the new value for the readonly flagpublic final int getDisplayPriority()
getDisplayPriority
in interface Property<T>
public abstract String htmlStateDescription()
htmlStateDescription
in interface Property<T>
public final String getShortName()
getShortName
in interface Property<T>
public final String getDescription()
getDescription
in interface Property<T>
public final boolean isReadOnly()
isReadOnly
in interface Property<T>
public final String getKey()
public final Property<?> findByKey(String propertyKey)
protected final void setParent(CompoundProperty newParent)
newParent
- AbstractProperty<?>; the new parent of this AbstractPropertypublic final CompoundProperty getParent()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.