ilog.views.accelerator
Class IlvSelectAllAccelerator
java.lang.Object
ilog.views.IlvAccelerator
ilog.views.accelerator.IlvSelectAllAccelerator
- All Implemented Interfaces:
- Serializable
public class IlvSelectAllAccelerator
- extends IlvAccelerator
IlvSelectAllAccelerator is used to allow the user to select
all the selectable objects in the manager.
Example
The following code example shows how to use
IlvSelectAllAccelerator in a simple Java application:
// Install the scroll down accelerator
manager.addAccelerator(new IlvSelectAllAccelerator(KeyEvent.KEY_PRESSED,
KeyEvent.VK_A,
KeyEvent.CTRL_MASK));
About Interactors and Accelerators
IlvSelectAllAccelerator is a custom accelerator, that is,
a subclass of IlvAccelerator. An accelerator is a class that
listens to a specific key event in the manager. All input events are handled by
means of interactors or accelerators. For information about how to treat
events in a manager, see
Handling Events. The following code
examples show how to handle user events:
- See Also:
- Serialized Form
|
Constructor Summary |
IlvSelectAllAccelerator(int type,
int key,
int modifiers)
Creates and initializes the accelerator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IlvSelectAllAccelerator
public IlvSelectAllAccelerator(int type,
int key,
int modifiers)
- Creates and initializes the accelerator.
handleEvent
protected boolean handleEvent(IlvManagerView view)
- Processes the event.
- Specified by:
handleEvent in class IlvAccelerator
- Parameters:
view - The manager view.
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage.