org.apache.ojb.tools.swing
Class SortingComboBoxModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byorg.apache.ojb.tools.swing.SortingComboBoxModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel, java.io.Serializable

public class SortingComboBoxModel
extends javax.swing.AbstractListModel
implements javax.swing.MutableComboBoxModel

Version:
$Id: SortingComboBoxModel.java,v 1.3 2002/08/29 17:04:52 mpoeschl Exp $
Author:
Florian Bruckner
See Also:
Serialized Form

Field Summary
(package private)  java.util.List aList
           
(package private)  java.lang.Object selectedItem
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SortingComboBoxModel()
          Creates a new instance of SortingComboBoxModel
SortingComboBoxModel(java.util.List l)
           
 
Method Summary
 void addElement(java.lang.Object obj)
           
 java.lang.Object getElementAt(int param)
           
 int getIndexOf(java.lang.Object o)
           
 java.lang.Object getSelectedItem()
           
 int getSize()
           
 void insertElementAt(java.lang.Object obj, int param)
           
 void removeElement(java.lang.Object obj)
           
 void removeElementAt(int param)
           
 void setSelectedItem(java.lang.Object obj)
           
 
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, removeListDataListener
 

Field Detail

aList

java.util.List aList

selectedItem

java.lang.Object selectedItem
Constructor Detail

SortingComboBoxModel

public SortingComboBoxModel()
Creates a new instance of SortingComboBoxModel


SortingComboBoxModel

public SortingComboBoxModel(java.util.List l)
Method Detail

getElementAt

public java.lang.Object getElementAt(int param)
Specified by:
getElementAt in interface javax.swing.ListModel

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

addElement

public void addElement(java.lang.Object obj)
Specified by:
addElement in interface javax.swing.MutableComboBoxModel

getSelectedItem

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

insertElementAt

public void insertElementAt(java.lang.Object obj,
                            int param)
Specified by:
insertElementAt in interface javax.swing.MutableComboBoxModel

removeElement

public void removeElement(java.lang.Object obj)
Specified by:
removeElement in interface javax.swing.MutableComboBoxModel

removeElementAt

public void removeElementAt(int param)
Specified by:
removeElementAt in interface javax.swing.MutableComboBoxModel

setSelectedItem

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

getIndexOf

public int getIndexOf(java.lang.Object o)


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14