| The Essential JViews Framework > Getting Started with JViews Framework > Step 2 - View Interaction |
Step 2 - View Interaction |
INDEX
PREVIOUS
NEXT
|
The second part of the tutorial, the Sample2.java file, is an extension of the Sample1 file. Compile the Sample2.java file and run it as you did for Sample1. See Running the Example.
In this part of the tutorial, we add interaction to the view by placing a selection interactor on it. For this, we add a Select button and associate it with the interactor. By clicking on the Select button, the selection interactor is placed on the view. Once you click the button, you can select the graphic objects in the view (in our case the states of the United States), move them around, and modify their shape.
A selection interactor is an instance of the class IlvSelectInteractor, a subclass of the IlvManagerViewInteractor class. This view interactor will process all the input events, such as mouse and keyboard events, occurring in a manager view.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |