T - type of the pick ids (usually String or Integer)public class PickListItem<T> extends Object
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.
| Constructor and Description |
|---|
PickListItem(T id,
String displayText)
Construct a new PickListItem.
|
PickListItem(T id,
String displayText,
String description)
Construct a new PickListItem.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Retrieve the description of this PickListItem.
|
String |
getDisplayText()
Retrieve the display text of this PickListItem.
|
T |
getId()
Retrieve the id of this PickListItem.
|
String |
toString() |
public PickListItem(T id, String displayText, String description)
id - T; the id of the new PickListItemdisplayText - String; the text to show to the user in the pick listdescription - String; the description of this pick list item (may use HTML formatting)public final T getId()
public final String getDisplayText()
public final String getDescription()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.