org.compiere.grid.ed
Class ComboSelectionManager
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboSelectionManager
public ComboSelectionManager()
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 pressedmodel - 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® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.