jd.util
Class SimpleKeyList

java.lang.Object
  extended byjd.util.SimpleKeyList
All Implemented Interfaces:
KeyList

public class SimpleKeyList
extends Object
implements KeyList

SimpleKeyList represents a list of text-value pairs.


Constructor Summary
SimpleKeyList()
           
SimpleKeyList(Object[] values, String[] texts)
           
SimpleKeyList(Object value, String text)
           
SimpleKeyList(String[] content)
           
SimpleKeyList(Vector content)
           
 
Method Summary
 String getText(int i)
           
 Object getValue(int i)
           
 int indexOf(Object value)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleKeyList

public SimpleKeyList()

SimpleKeyList

public SimpleKeyList(Object value,
                     String text)

SimpleKeyList

public SimpleKeyList(Object[] values,
                     String[] texts)

SimpleKeyList

public SimpleKeyList(String[] content)

SimpleKeyList

public SimpleKeyList(Vector content)
Method Detail

size

public final int size()
Specified by:
size in interface KeyList

indexOf

public int indexOf(Object value)
Specified by:
indexOf in interface KeyList

getValue

public Object getValue(int i)
Specified by:
getValue in interface KeyList

getText

public String getText(int i)
Specified by:
getText in interface KeyList

toString

public String toString()