javax.rad.ui.control
Interface INavigationControl

All Known Subinterfaces:
ITable
All Known Implementing Classes:
JVxTable, SwingTable, UITable

public interface INavigationControl

The INavigationControl is an interface that allows to control the behavior of the ENTER and TAB key in the implementing controls.

By default the implementing control is assumed to be a row/column based control.


Field Summary
static int NAVIGATION_CELL_AND_FOCUS
          When pressing the ENTER/TAB keys the focus should jump from cell to cell, without changing the row.
static int NAVIGATION_CELL_AND_ROW_AND_FOCUS
          When pressing the ENTER/TAB keys the focus should jump from cell to cell, if the last cell is reached the next row should be selected.
static int NAVIGATION_NONE
          Nothing should happened when pressing the ENTER/TAB keys.
static int NAVIGATION_ROW_AND_FOCUS
          When pressing the ENTER/TAB keys the focus should jump from row to row.
 
Method Summary
 int getEnterNavigationMode()
          Gets the navigation mode for the ENTER key.
 int getTabNavigationMode()
          Gets the navigation mode for the TAB key.
 void setEnterNavigationMode(int pNavigationMode)
          Sets the navigation mode for the ENTER key.
 void setTabNavigationMode(int pNavigationMode)
          Sets the navigation mode for the TAB key.
 

Field Detail

NAVIGATION_NONE

static final int NAVIGATION_NONE
Nothing should happened when pressing the ENTER/TAB keys.

See Also:
Constant Field Values

NAVIGATION_CELL_AND_FOCUS

static final int NAVIGATION_CELL_AND_FOCUS
When pressing the ENTER/TAB keys the focus should jump from cell to cell, without changing the row. If the last cell is reached, the focus should jump to the next control.

See Also:
Constant Field Values

NAVIGATION_CELL_AND_ROW_AND_FOCUS

static final int NAVIGATION_CELL_AND_ROW_AND_FOCUS
When pressing the ENTER/TAB keys the focus should jump from cell to cell, if the last cell is reached the next row should be selected. If the last row and cell is reached, the focus should jump to the next control.

See Also:
Constant Field Values

NAVIGATION_ROW_AND_FOCUS

static final int NAVIGATION_ROW_AND_FOCUS
When pressing the ENTER/TAB keys the focus should jump from row to row. If the last row is reached, the focus should jump to the next control.

See Also:
Constant Field Values
Method Detail

getEnterNavigationMode

int getEnterNavigationMode()
Gets the navigation mode for the ENTER key.

Returns:
the navigation mode for the ENTER key.
See Also:
NAVIGATION_NONE, NAVIGATION_CELL_AND_FOCUS, NAVIGATION_CELL_AND_ROW_AND_FOCUS, NAVIGATION_ROW_AND_FOCUS

setEnterNavigationMode

void setEnterNavigationMode(int pNavigationMode)
Sets the navigation mode for the ENTER key.

Parameters:
pNavigationMode - the navigation mode for the ENTER key.
See Also:
NAVIGATION_NONE, NAVIGATION_CELL_AND_FOCUS, NAVIGATION_CELL_AND_ROW_AND_FOCUS, NAVIGATION_ROW_AND_FOCUS

getTabNavigationMode

int getTabNavigationMode()
Gets the navigation mode for the TAB key.

Returns:
the navigation mode for the TAB key.
See Also:
NAVIGATION_NONE, NAVIGATION_CELL_AND_FOCUS, NAVIGATION_CELL_AND_ROW_AND_FOCUS, NAVIGATION_ROW_AND_FOCUS

setTabNavigationMode

void setTabNavigationMode(int pNavigationMode)
Sets the navigation mode for the TAB key.

Parameters:
pNavigationMode - the navigation mode for the TAB key.
See Also:
NAVIGATION_NONE, NAVIGATION_CELL_AND_FOCUS, NAVIGATION_CELL_AND_ROW_AND_FOCUS, NAVIGATION_ROW_AND_FOCUS


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.