QJCC homepage

biz.chitec.quarterback.swing
Class NumberedStringComboBoxModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended bybiz.chitec.quarterback.swing.NumberedStringListModel
          extended bybiz.chitec.quarterback.swing.NumberedStringComboBoxModel
All Implemented Interfaces:
ChangeableListModel, javax.swing.ComboBoxModel, javax.swing.ListModel, java.io.Serializable

public class NumberedStringComboBoxModel
extends NumberedStringListModel
implements javax.swing.ComboBoxModel

Combobox model for Lists of NumberedStrings. Has nice special methods for handling the vectors (e.g. intelligent insertion)

Version:
$Id: 29e0a23e60fb88a69d8c15f80d713e4fa6b5751d $
Author:
Dirk Hillbrecht/chitec 1997-2000. Distributed under the terms of the GNU LGPL.
See Also:
Serialized Form

Field Summary
protected  boolean indexreturning
           
protected  int selidx
           
 
Fields inherited from class biz.chitec.quarterback.swing.NumberedStringListModel
addnrfirst, dosort, mydata, mylist, showaddnr, sortbyname
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
NumberedStringComboBoxModel()
           
NumberedStringComboBoxModel(boolean sad)
           
NumberedStringComboBoxModel(ChatSymbolHolder csh)
           
NumberedStringComboBoxModel(ChatSymbolHolder csh, int[] idxx)
           
NumberedStringComboBoxModel(java.util.List v)
           
NumberedStringComboBoxModel(java.util.List v, boolean sad)
           
 
Method Summary
 int getGUISelectedIndex()
           
 int getNSSelectedIndex()
           
 java.lang.Object getSelectedItem()
           
 boolean isIndexReturning()
           
 void setGUISelectedIndex(int selx)
          Sets GUI index of selection explicitly
 void setIndexReturning(boolean x)
           
 void setSelectedItem(java.lang.Object selobj)
           
 
Methods inherited from class biz.chitec.quarterback.swing.NumberedStringListModel
add, addAll, addContent, addFromChatSymbolHolder, addFromChatSymbolHolder, Addnr2GUIIdx, changeContent, clear, containsNSIdx, getAddNrFirst, getContent, getElementAt, getList, getNSbyNSIdx, getShowAddNr, getSize, GUI2NSAddNr, GUI2NSIdx, GUI2NSIdx, isSortByName, isSorting, lazyNS2GUIIdx, lazyNS2GUIIdx, NS2GUIIdx, NS2GUIIdx, remove, removeContent, setAddNrFirst, setContent, setList, setShowAddNr, setSortByName, setSorting, trimToExternalList
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 

Field Detail

selidx

protected int selidx

indexreturning

protected boolean indexreturning
Constructor Detail

NumberedStringComboBoxModel

public NumberedStringComboBoxModel()

NumberedStringComboBoxModel

public NumberedStringComboBoxModel(boolean sad)

NumberedStringComboBoxModel

public NumberedStringComboBoxModel(java.util.List v)

NumberedStringComboBoxModel

public NumberedStringComboBoxModel(java.util.List v,
                                   boolean sad)

NumberedStringComboBoxModel

public NumberedStringComboBoxModel(ChatSymbolHolder csh,
                                   int[] idxx)

NumberedStringComboBoxModel

public NumberedStringComboBoxModel(ChatSymbolHolder csh)
Method Detail

setIndexReturning

public void setIndexReturning(boolean x)

isIndexReturning

public boolean isIndexReturning()

setSelectedItem

public void setSelectedItem(java.lang.Object selobj)
Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel

getSelectedItem

public java.lang.Object getSelectedItem()
Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel

getGUISelectedIndex

public int getGUISelectedIndex()

setGUISelectedIndex

public void setGUISelectedIndex(int selx)
Sets GUI index of selection explicitly

Parameters:
selx -

getNSSelectedIndex

public int getNSSelectedIndex()

QJCC homepage