public class ALDSwingComponentItem extends Object implements Comparable<ALDSwingComponentItem>
ALDSwingComponentComboBox
.
An instance of this class contains all information associated with an entry
in a ALDSwingComponentComboBox
, i.e. the actual object, its textual
representation and an optional tooltip text. Note that object and tooltip
text are allowed to be null.
Modifier and Type | Field and Description |
---|---|
private Object |
item
Item linked to the combobox entry.
|
private String |
itemText
Textual representation of the object.
|
private String |
tooltip
Tooltip text shown upon hovering over the entry.
|
Constructor and Description |
---|
ALDSwingComponentItem(Object _item,
String _text,
String _tooltip)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ALDSwingComponentItem o) |
String |
getItemText()
Get textual representation of object.
|
Object |
getObject()
Get the object associated with this item.
|
String |
getTooltip()
Get tooltip text.
|
String |
toString() |
private Object item
private String itemText
private String tooltip
public Object getObject()
public String getItemText()
public String getTooltip()
public int compareTo(ALDSwingComponentItem o)
compareTo
in interface Comparable<ALDSwingComponentItem>
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.