org.jdesktop.swingx.combobox
Class ListModelComboBoxWrapper

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.jdesktop.swingx.combobox.ListModelComboBoxWrapper
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel

public class ListModelComboBoxWrapper
extends AbstractListModel
implements ComboBoxModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
ListModelComboBoxWrapper(ListModel delegate)
           
 
Method Summary
 void addListDataListener(ListDataListener l)
           
 Object getElementAt(int index)
           
 Object getSelectedItem()
           
 int getSize()
           
 void removeListDataListener(ListDataListener l)
           
 void setSelectedItem(Object anItem)
           
 
Methods inherited from class javax.swing.AbstractListModel
fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListModelComboBoxWrapper

public ListModelComboBoxWrapper(ListModel delegate)
Method Detail

getSize

public int getSize()
Specified by:
getSize in interface ListModel

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface ListModel

addListDataListener

public void addListDataListener(ListDataListener l)
Specified by:
addListDataListener in interface ListModel
Overrides:
addListDataListener in class AbstractListModel

removeListDataListener

public void removeListDataListener(ListDataListener l)
Specified by:
removeListDataListener in interface ListModel
Overrides:
removeListDataListener in class AbstractListModel

setSelectedItem

public void setSelectedItem(Object anItem)
Specified by:
setSelectedItem in interface ComboBoxModel

getSelectedItem

public Object getSelectedItem()
Specified by:
getSelectedItem in interface ComboBoxModel


Copyright © 2012. All Rights Reserved.