org.xulux.guilayer.swing.models
Class DefaultComboModel.ComboShowable

java.lang.Object
  extended by org.xulux.guilayer.swing.models.DefaultComboModel.ComboShowable
Enclosing class:
DefaultComboModel

public class DefaultComboModel.ComboShowable
extends java.lang.Object

Holds all items in a list


Constructor Summary
DefaultComboModel.ComboShowable(int index, java.lang.String value)
          The main constructor
 
Method Summary
 int getIndex()
           
 java.lang.String toString()
          Since a combo is using the toString value of an object, this will return the value set in the constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultComboModel.ComboShowable

public DefaultComboModel.ComboShowable(int index,
                                       java.lang.String value)
The main constructor

Parameters:
index - the index in the original data
value - the value that needs to be shown
Method Detail

toString

public java.lang.String toString()
Since a combo is using the toString value of an object, this will return the value set in the constructor

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getIndex

public int getIndex()
Returns:
the index in the original data


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.