net.sf.sbcc.componentcombo
Class JAbstractComponentComboBox.DefaultKeySelectionManager

java.lang.Object
  extended by net.sf.sbcc.componentcombo.JAbstractComponentComboBox.DefaultKeySelectionManager
All Implemented Interfaces:
java.io.Serializable, JAbstractComponentComboBox.KeySelectionManager
Enclosing class:
JAbstractComponentComboBox

 class JAbstractComponentComboBox.DefaultKeySelectionManager
extends java.lang.Object
implements JAbstractComponentComboBox.KeySelectionManager, java.io.Serializable


Constructor Summary
JAbstractComponentComboBox.DefaultKeySelectionManager()
           
 
Method Summary
 java.lang.Object selectionForKey(char aKey, SimpleComboBoxModel aModel)
          Given aKey and the model, returns the row that should become selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAbstractComponentComboBox.DefaultKeySelectionManager

JAbstractComponentComboBox.DefaultKeySelectionManager()
Method Detail

selectionForKey

public java.lang.Object selectionForKey(char aKey,
                                        SimpleComboBoxModel aModel)
Description copied from interface: JAbstractComponentComboBox.KeySelectionManager
Given aKey and the model, returns the row that should become selected. Return -1 if no match was found.

Specified by:
selectionForKey in interface JAbstractComponentComboBox.KeySelectionManager
Parameters:
aKey - a char value, usually indicating a keyboard key that was pressed
aModel - a ComboBoxModel -- the component's data model, containing the list of selectable items
Returns:
an int equal to the selected row, where 0 is the first item and -1 is none.