org.hydrateframework.gui
Class ComboBoxMap

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.hydrateframework.gui.ComboBoxMap
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel

public class ComboBoxMap
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel

Version:
@(#)$Revision: 1.2 $
Author:
David Chamberlin
See Also:
Serialized Form

Nested Class Summary
static class ComboBoxMap.Entry
           
static class ComboBoxMap.Pair
           
 
Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
ComboBoxMap(java.util.List<java.util.Map.Entry> l)
           
 
Method Summary
 java.lang.Object getElementAt(int i)
           
 java.lang.Object getSelectedItem()
           
 int getSize()
           
 void setSelectedItem(java.lang.Object o)
           
 
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
 

Constructor Detail

ComboBoxMap

public ComboBoxMap(java.util.List<java.util.Map.Entry> l)
Method Detail

getElementAt

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

getSize

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

getSelectedItem

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

setSelectedItem

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


Copyright © 2000 The Hydrate Project. All Rights Reserved.