de.unihalle.informatik.Alida.dataio.provider.swing.components
Class ALDSwingComponentComboBoxItem

java.lang.Object
  extended by de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponentComboBoxItem
All Implemented Interfaces:
Comparable<ALDSwingComponentComboBoxItem>

public class ALDSwingComponentComboBoxItem
extends Object
implements Comparable<ALDSwingComponentComboBoxItem>

Alida-specific combobox item linked to a 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.

Author:
moeller

Constructor Summary
ALDSwingComponentComboBoxItem(Object _item, String _text, String _tooltip)
          Default constructor.
 
Method Summary
 int compareTo(ALDSwingComponentComboBoxItem o)
           
 String getItemText()
          Get textual representation of object.
 Object getObject()
          Get the object associated with this item.
 String getTooltip()
          Get tooltip text.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ALDSwingComponentComboBoxItem

public ALDSwingComponentComboBoxItem(Object _item,
                                     String _text,
                                     String _tooltip)
Default constructor.

Parameters:
_item - Object linked to item.
_text - Textual representation of object.
_tooltip - Tooltip text.
Method Detail

getObject

public Object getObject()
Get the object associated with this item.

Returns:
Object linked to item.

getItemText

public String getItemText()
Get textual representation of object.

Returns:
Textual representation.

getTooltip

public String getTooltip()
Get tooltip text.

Returns:
Tooltip text.

compareTo

public int compareTo(ALDSwingComponentComboBoxItem o)
Specified by:
compareTo in interface Comparable<ALDSwingComponentComboBoxItem>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.