net.sf.sbcc.componentcombo.plaf.basic
Class BasicComponentComboBoxUI.DefaultKeySelectionManager

java.lang.Object
  extended by net.sf.sbcc.componentcombo.plaf.basic.BasicComponentComboBoxUI.DefaultKeySelectionManager
All Implemented Interfaces:
javax.swing.plaf.UIResource, JAbstractComponentComboBox.KeySelectionManager
Enclosing class:
BasicComponentComboBoxUI

 class BasicComponentComboBoxUI.DefaultKeySelectionManager
extends java.lang.Object
implements JAbstractComponentComboBox.KeySelectionManager, javax.swing.plaf.UIResource


Field Summary
private  java.lang.String prefix
           
private  java.lang.String typedString
           
 
Constructor Summary
BasicComponentComboBoxUI.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
 

Field Detail

prefix

private java.lang.String prefix

typedString

private java.lang.String typedString
Constructor Detail

BasicComponentComboBoxUI.DefaultKeySelectionManager

BasicComponentComboBoxUI.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.