public class BooleanProperty extends AbstractProperty<Boolean>
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 29 dec. 2014
| Constructor and Description |
|---|
BooleanProperty(String shortName,
String description,
Boolean initialValue,
boolean readOnly,
int displayPriority)
Construct an BooleanProperty.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractProperty<Boolean> |
deepCopy()
Construct a deep copy of this property (duplicates everything except immutable fields).
|
String |
getDescription()
Return a description of the property (may use HTML markup).
|
String |
getShortName()
Return a short description of the property.
|
Boolean |
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(Boolean newValue)
Change the value of the property.
|
getDisplayPriority, iterator, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic BooleanProperty(String shortName, String description, Boolean initialValue, boolean readOnly, int displayPriority)
shortName - String; the short name of the new BooleanPropertydescription - String; description of the new BooleanProperty (may use HTML mark up)initialValue - Integer; the initial value of the new BooleanPropertyreadOnly - boolean; if true this BooleanProperty can not be altereddisplayPriority - int; the displayPriority of the new BooleanPropertypublic final Boolean getValue()
getValue in class AbstractProperty<Boolean>public final String getShortName()
getShortName in class AbstractProperty<Boolean>public final String getDescription()
getDescription in class AbstractProperty<Boolean>public final void setValue(Boolean newValue) throws PropertyException
setValue in class AbstractProperty<Boolean>newValue - T; the new value for the propertyPropertyException - when this Property is read-only, or newValue is not validpublic final boolean isReadOnly()
isReadOnly in class AbstractProperty<Boolean>public final String htmlStateDescription()
htmlStateDescription in class AbstractProperty<Boolean>public AbstractProperty<Boolean> deepCopy()
deepCopy in class AbstractProperty<Boolean>Copyright © 2014–2015 Delft University of Technology. All rights reserved.