public class IlvGanttCycleSelectAccelerator extends IlvCycleSelectAccelerator
IlvGanttCycleSelectAccelerator allows the user to
 traverse and select the objects in an IlvGanttSheet using the keyboard.
 At each specified key event, selection traverses to the next object.
 After the last object, the first object is selected again. The accelerator
 has options that determine whether the following types of objects will be traversed
 and selected
 The following code example shows how to use
 IlvGanttCycleSelectAccelerator in a simple Java application:
 
  // Ensure that the Gantt sheet is focusable and receives the key events.
  ganttSheet.setFocusable(true);
  ganttSheet.setFocusTraversalKeysEnabled(false);
  // Install the accelerator
  ganttSheet.addAccelerator(new IlvGanttCycleSelectAccelerator(KeyEvent.KEY_PRESSED,
                                                               KeyEvent.VK_TAB,
                                                               0,
                                                               true));
 | Modifier and Type | Class and Description | 
|---|---|
static class  | 
IlvGanttCycleSelectAccelerator.GraphicComparator
GraphicComparator defines the default selection traversal ordering
 across the objects in an IlvGanttSheet:
 
   The ordering among activity and reservation graphics is:
     
       Graphics are first ordered by row number. | 
| Constructor and Description | 
|---|
IlvGanttCycleSelectAccelerator(KeyStroke keystroke,
                              boolean consumeEvents)
Creates an  
IlvGanttCycleSelectAccelerator associated with the specified
 key stroke. | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
ensureVisible(IlvGraphic selectedGraphic,
             IlvGanttSheet ganttSheet)
Scrolls the Gantt sheet if necessary to ensure that the selected graphic is visible
 to the user. 
 | 
protected boolean | 
handleEvent(IlvManagerView v)
Processes the event. 
 | 
endOfSequence, getComparator, getNext, isDescendIntoExpandedSubgraphsAllowed, isEnsureVisible, isForward, isSelectable, isSelectExpandedSubgraphsAllowed, isSelectLinksAllowed, isSelectNodesAllowed, isSelectNonNodesOrLinksAllowed, setComparator, setDescendIntoExpandedSubgraphsAllowed, setEnsureVisible, setForward, setSelectExpandedSubgraphsAllowed, setSelectLinksAllowed, setSelectNodesAllowed, setSelectNonNodesOrLinksAllowedCtrlChar, getEventType, getKeyChar, getKeyCode, getModifier, isConsumeEvents, setConsumeEventspublic IlvGanttCycleSelectAccelerator(KeyStroke keystroke, boolean consumeEvents)
IlvGanttCycleSelectAccelerator associated with the specified
 key stroke.keystroke - The key stroke associated with the accelerator.consumeEvents - If true, the accelerator handles and consumes the
                      event, except when the consume flag of the event is already set
                      to true. If false, the accelerator
                      ignores the event's consume flag, and handles all events without
                      changing the consume flag.protected boolean handleEvent(IlvManagerView v)
handleEvent in class IlvCycleSelectAcceleratorv - The Gantt sheet.protected void ensureVisible(IlvGraphic selectedGraphic, IlvGanttSheet ganttSheet)
IlvGanttSheet.ensureVisible(IlvGraphic, int).selectedGraphic - The selected graphic.ganttSheet - The Gantt sheet containing the graphic.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.