Class powersoft.jcm.db.DataNavigator
All Packages Class Hierarchy This Package Previous Next Index
Class powersoft.jcm.db.DataNavigator
java.lang.Object
|
+----powersoft.jcm.ui.Component
|
+----powersoft.jcm.db.DataNavigator
- public final class DataNavigator
- extends Component
- implements DataNavigatorButtons, DataOpenListener, DataCloseListener, DataAvailableListener, AdjustCursorListener
A data navigator provides the user with an easy-to-use tool for navigating
through a data source. It consists of command buttons which when clicked
move the query's cursor.
- See Also:
- DataSource
-
ACTION_MOVE_FIRST
-
-
ACTION_MOVE_LAST
-
-
ACTION_NONE
- constants used in the BOFAction and EOFAction properties
-
DataNavigator()
-
-
adjustCursor(AdjustCursorEvent)
-
-
createAWTComponent(Component)
- Creates the AWT component.
-
dataAvailable(DataAvailableEvent)
-
-
dataClose(DataCloseEvent)
-
-
dataOpen(DataOpenEvent)
-
-
getBOFAction()
- Determines the behavior of the cursor when the user clicks the data
navigator's "up one row" button when the cursor is at the BOF position.
-
getDataSource()
- Gets the data source associated with the data navigator.
-
getEOFAction()
- Determines the behavior of the cursor when the user clicks the data
navigator's "down one row" button when the cursor is at the BOF position.
-
getShowAdd()
-
-
getShowCancel()
-
-
getShowDelete()
-
-
getShowEdit()
-
-
getShowMoveFirst()
-
-
getShowMoveLast()
-
-
getShowMoveNext()
-
-
getShowMovePrevious()
-
-
getShowRefresh()
-
-
getShowState(byte)
- Get the show state of a button in the navigator.
-
getShowUpdate()
-
-
setBOFAction(byte)
- Specifies the behavior of the cursor when the user clicks the data
navigator's "up one row" button when the cursor is at the BOF position.
-
setDataSource(DataSource)
- Sets the data source associated with the data navigator.
-
setEOFAction(byte)
- Specifies the behavior of the cursor when the user clicks the data
navigator's "down one row" button when the cursor is at the BOF position.
-
setShowAdd(boolean)
-
-
setShowCancel(boolean)
-
-
setShowDelete(boolean)
-
-
setShowEdit(boolean)
-
-
setShowMoveFirst(boolean)
-
-
setShowMoveLast(boolean)
-
-
setShowMoveNext(boolean)
-
-
setShowMovePrevious(boolean)
-
-
setShowRefresh(boolean)
-
-
setShowState(byte, boolean)
- Show or hide a button in the navigator.
-
setShowUpdate(boolean)
-
ACTION_NONE
public final static byte ACTION_NONE
- constants used in the BOFAction and EOFAction properties
ACTION_MOVE_FIRST
public final static byte ACTION_MOVE_FIRST
ACTION_MOVE_LAST
public final static byte ACTION_MOVE_LAST
DataNavigator
public DataNavigator()
getDataSource
public DataSource getDataSource()
- Gets the data source associated with the data navigator.
- Returns:
- The data source object associated with this data navigator.
setDataSource
public void setDataSource(DataSource source)
- Sets the data source associated with the data navigator.
- Parameters:
- source - The data source to associate with this data navigator.
getBOFAction
public byte getBOFAction()
- Determines the behavior of the cursor when the user clicks the data
navigator's "up one row" button when the cursor is at the BOF position.
- Returns:
- One of the following:
- ACTION_NONE
- ACTION_MOVE_FIRST
- ACTION_MOVE_LAST
setBOFAction
public void setBOFAction(byte action)
- Specifies the behavior of the cursor when the user clicks the data
navigator's "up one row" button when the cursor is at the BOF position.
- Parameters:
- One - of the following:
- ACTION_NONE
- ACTION_MOVE_FIRST
- ACTION_MOVE_LAST
getEOFAction
public byte getEOFAction()
- Determines the behavior of the cursor when the user clicks the data
navigator's "down one row" button when the cursor is at the BOF position.
- Returns:
- One of the following:
- ACTION_NONE
- ACTION_MOVE_FIRST
- ACTION_MOVE_LAST
setEOFAction
public void setEOFAction(byte action)
- Specifies the behavior of the cursor when the user clicks the data
navigator's "down one row" button when the cursor is at the BOF position.
- Returns:
- One of the following:
- ACTION_NONE
- ACTION_MOVE_FIRST
- ACTION_MOVE_LAST
setShowState
public void setShowState(byte which,
boolean state)
- Show or hide a button in the navigator.
- Parameters:
- which - Specifies which button to show or hide; must be one of the button
constants in DataNavigatorButtons.
- state - true to show the button; false to hide the button.
- Throws: IllegalArgumentException
- thrown if 'which' is not a
valid number in DataNavigatorButtons.
getShowState
public boolean getShowState(byte which)
- Get the show state of a button in the navigator.
- Parameters:
- which - Specifies which button to test; must be one of the button
constants in DataNavigatorButtons.
- Returns:
- true if the button is showing; false if the button is not.
- Throws: IllegalArgumentException
- thrown if 'which' is not a
valid number in DataNavigatorButtons.
setShowAdd
public void setShowAdd(boolean state)
getShowAdd
public boolean getShowAdd()
setShowCancel
public void setShowCancel(boolean state)
getShowCancel
public boolean getShowCancel()
setShowDelete
public void setShowDelete(boolean state)
getShowDelete
public boolean getShowDelete()
setShowEdit
public void setShowEdit(boolean state)
getShowEdit
public boolean getShowEdit()
setShowMoveFirst
public void setShowMoveFirst(boolean state)
getShowMoveFirst
public boolean getShowMoveFirst()
setShowMoveLast
public void setShowMoveLast(boolean state)
getShowMoveLast
public boolean getShowMoveLast()
setShowMoveNext
public void setShowMoveNext(boolean state)
getShowMoveNext
public boolean getShowMoveNext()
setShowMovePrevious
public void setShowMovePrevious(boolean state)
getShowMovePrevious
public boolean getShowMovePrevious()
setShowRefresh
public void setShowRefresh(boolean state)
getShowRefresh
public boolean getShowRefresh()
setShowUpdate
public void setShowUpdate(boolean state)
getShowUpdate
public boolean getShowUpdate()
dataOpen
public void dataOpen(DataOpenEvent event)
dataAvailable
public void dataAvailable(DataAvailableEvent event)
dataClose
public void dataClose(DataCloseEvent event)
adjustCursor
public void adjustCursor(AdjustCursorEvent __event)
createAWTComponent
protected Component createAWTComponent(Component parent)
- Creates the AWT component.
- Overrides:
- createAWTComponent in class Component
All Packages Class Hierarchy This Package Previous Next Index