Adempiere 3.5.2a

org.compiere.grid.ed
Class ComboSelectionManager

java.lang.Object
  extended by org.compiere.grid.ed.ComboSelectionManager
All Implemented Interfaces:
JComboBox.KeySelectionManager

public class ComboSelectionManager
extends Object
implements JComboBox.KeySelectionManager

ComboBox Selection Manager for AuroReduction

Version:
$Id: ComboSelectionManager.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
Author:
Jorg Janke

Constructor Summary
ComboSelectionManager()
           
 
Method Summary
 int selectionForKey(char key, ComboBoxModel model)
          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

ComboSelectionManager

public ComboSelectionManager()
Method Detail

selectionForKey

public int selectionForKey(char key,
                           ComboBoxModel model)
Given aKey and the model, returns the row that should become selected. Return -1 if no match was found.

Specified by:
selectionForKey in interface JComboBox.KeySelectionManager
Parameters:
key - a char value, usually indicating a keyboard key that was pressed
model - 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

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.