ilog.views.accelerator
Class IlvDeleteSelectionAccelerator
java.lang.Object
ilog.views.IlvAccelerator
ilog.views.accelerator.IlvDeleteSelectionAccelerator
- All Implemented Interfaces:
- Serializable
public class IlvDeleteSelectionAccelerator
- extends IlvAccelerator
IlvDeleteSelectionAccelerator is an accelerator that allows
the user to remove the currently selected objects from a manager.
Example
The following code example shows how to use
IlvDeleteSelectionAccelerator in a simple Java application:
// Install the select interactor on the view.
// This is used to select graphic objects with the mouse that can then be
// deleted using the delete accelerator.
IlvSelectInteractor inter = new IlvSelectInteractor();
inter.setOpaqueMove(true);
mgrview.setInteractor(inter);
// Install the delete accelerator.
manager.addAccelerator(
new IlvDeleteSelectionAccelerator(KeyEvent.KEY_PRESSED, KeyEvent.VK_DELETE, 0));
About Interactors and Accelerators
IlvDeleteSelectionAccelerator 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IlvDeleteSelectionAccelerator
public IlvDeleteSelectionAccelerator(int type,
int key,
int modifiers)
- Initializes an IlvDeleteSelectionAccelerator
handleEvent
protected boolean handleEvent(IlvManagerView v)
- Processes the event.
- Specified by:
handleEvent in class IlvAccelerator
- Parameters:
v - The manager view.
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage. . All Rights Reserved.