skip to main content
Programmer's documentation > Developing with the JViews Gantt SDK > Accessible Gantt and schedule charts > Keyboard navigation
 
Keyboard navigation
Keyboard navigation refers to an alternative means of interacting with an application without using a mouse. In particular, it involves interaction with elements of the graphical user interface (GUI), such as menus and buttons. In JViews Gantt and schedule charts, you can use keystrokes to move through the contents.
A JViews Gantt application consists essentially of Swing GUI components and IlvGanttChart and IlvScheduleChart components.
Keyboard navigation for Swing components is provided with the JDK. You can use Tab and Ctrl+Tab to navigate through all elements of the GUI. Use Enter, Esc, and the Arrow keys to operate menus, combination boxes, and buttons. You can assign shortcut keys to the most important menus and buttons by using JMenuItem.setAccelerator(KeyStroke) and AbstractButton.setMnemonic(int)
Keyboard navigation of the IlvJTable component of a Gantt or schedule chart is also provided by the JDK. You can use the Tab key to navigate through all the cells of the table, and Ctrl+Tab to navigate out of the table. You can implement navigation on the graphic objects of the Gantt sheet component through the IlvGanttCycleSelectAccelerator class.
You can implement navigation and operation on graphic objects of the Gantt sheet by creating an instance of IlvAccelerator. Alternatively, you can create an instance of IlvGanttSheetInteractor. You can find a sample that illustrates the accessibility features of JViews Gantt in <installdir>/jviews-gantt/samples/accessibility.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.