Where Am I? Class Hierarchy All Classes All Fields and Methods

Class com.ibm.ivj.db.uibeans.DBNavigator

com.ibm.ivj.db.uibeans.DBNavigator

public class DBNavigator
implements ActionListener

DBNavigator represents a panel that contains buttons to allow you to navigate the result set associated with a Select bean.

Version:
1.0 06/30/98

Variable Index

noSelect
ErrorCode for DataException if no Select is associated with DBNavigator.

Constructor Index

DBNavigator()
Constructs a new DBNavigator.

Method Index

actionPerformed(ActionEvent)
When a button is pressed, a new thread is created to execute the associated method.
addExceptionListener(ExceptionListener)
Adds the ExceptionListener.
getModel()
Returns the data model represented by a Select bean for this DBNavigator.
isShowCommit()
Returns true if this DBNavigator contains a Commit button.
isShowDelete()
Returns true if this DBNavigator contains a Delete button.
isShowExecute()
Returns true if this DBNavigator contains an Execute button.
isShowFirst()
Returns true if this DBNavigator contains a First button.
isShowInsert()
Returns true if this DBNavigator contains a Insert button.
isShowLast()
Returns true if this DBNavigator contains a Last button.
isShowNext()
Returns true if this DBNavigator contains a Next button.
isShowPrevious()
Returns true if this DBNavigator contains a Previous button.
isShowRefresh()
Returns true if this DBNavigator contains a Refresh button.
isShowRollback()
Returns true if this DBNavigator contains a Rollback button.
removeExceptionListener(ExceptionListener)
Removes the ExceptionListener.
setModel(Select)
Associates a data model represented by a Select bean with this DBNavigator.
setShowCommit(boolean)
If true, the DBNavigator contains a Commit button.
setShowDelete(boolean)
If true, the DBNavigator contains a Delete button.
setShowExecute(boolean)
If true, the DBNavigator contains a Execute button.
setShowFirst(boolean)
If true, the DBNavigator contains a First button.
setShowInsert(boolean)
If true, the DBNavigator contains a Insert button.
setShowLast(boolean)
If true, the DBNavigator contains a Last button.
setShowNext(boolean)
If true, the DBNavigator contains a Next button.
setShowPrevious(boolean)
If true, the DBNavigator contains a Previous button.
setShowRefresh(boolean)
If true, the DBNavigator contains a Refresh button.
setShowRollback(boolean)
If true, the DBNavigator contains a Rollback button.

Variables

noSelect
 public static final int noSelect
ErrorCode for DataException if no Select is associated with DBNavigator.


Constructors

DBNavigator
 public DBNavigator()
Constructs a new DBNavigator.


Methods

actionPerformed
 public void actionPerformed(ActionEvent e)
When a button is pressed, a new thread is created to execute the associated method. If there is no associated Select, an ExceptionEvent is triggered with the errorCode noSelect. If a DataException is raised while exeucting the method, an ExceptionEvent is triggered.

Parameters:
e - the action event
addExceptionListener
 public void addExceptionListener(ExceptionListener newListener)
Adds the ExceptionListener. Exception events occur if an exception is raised while executing any of the actions associated with the buttons on the DBNavigator.

Parameters:
newListener - ExceptionListener
See Also:
ExceptionListener, removeExeptionListener
getModel
 public Select getModel() throws DataException
Returns the data model represented by a Select bean for this DBNavigator.

Returns:
the data model
See Also:
setModel
isShowCommit
 public boolean isShowCommit()
Returns true if this DBNavigator contains a Commit button.

Returns:
true if this DBNavigator contains a Commit button.
See Also:
setShowCommit
isShowDelete
 public boolean isShowDelete()
Returns true if this DBNavigator contains a Delete button.

Returns:
true if this DBNavigator contains a Delete button.
See Also:
setShowDelete
isShowExecute
 public boolean isShowExecute()
Returns true if this DBNavigator contains an Execute button.

Returns:
true if this DBNavigator contains an Execute button.
See Also:
setShowExecute
isShowFirst
 public boolean isShowFirst()
Returns true if this DBNavigator contains a First button.

Returns:
true if this DBNavigator contains a First button.
See Also:
setShowFirst
isShowInsert
 public boolean isShowInsert()
Returns true if this DBNavigator contains a Insert button.

Returns:
true if this DBNavigator contains a Insert button.
See Also:
setShowInsert
isShowLast
 public boolean isShowLast()
Returns true if this DBNavigator contains a Last button.

Returns:
true if this DBNavigator contains a Last button.
See Also:
setShowLast
isShowNext
 public boolean isShowNext()
Returns true if this DBNavigator contains a Next button.

Returns:
true if this DBNavigator contains a Next button.
See Also:
setShowNext
isShowPrevious
 public boolean isShowPrevious()
Returns true if this DBNavigator contains a Previous button.

Returns:
true if this DBNavigator contains a Previous button.
See Also:
setShowPrevious
isShowRefresh
 public boolean isShowRefresh()
Returns true if this DBNavigator contains a Refresh button.

Returns:
true if this DBNavigator contains a Refresh button.
See Also:
setShowRefresh
isShowRollback
 public boolean isShowRollback()
Returns true if this DBNavigator contains a Rollback button.

Returns:
true if this DBNavigator contains a Rollback button.
See Also:
setShowRollback
removeExceptionListener
 public void removeExceptionListener(ExceptionListener newListener)
Removes the ExceptionListener. Exception events occur if an exception is raised while executing any of the actions associated with the buttons on the DBNavigator.

Parameters:
newListener - ExceptionListener
See Also:
ExceptionListener, addExeptionListener
setModel
 public void setModel(Select model)
Associates a data model represented by a Select bean with this DBNavigator.

Parameters:
model - the data model for the DBNavigator
See Also:
getModel
setShowCommit
 public void setShowCommit(boolean showCommit)
If true, the DBNavigator contains a Commit button.

The default value of this property is true.

Parameters:
showCommit - true - show Commit button; false - don't show a Commit button
See Also:
isShowCommit
setShowDelete
 public void setShowDelete(boolean showDelete)
If true, the DBNavigator contains a Delete button.

The default value of this property is true.

Parameters:
showDelete - true - show Delete button; false - don't show a Delete button
See Also:
isShowDelete
setShowExecute
 public void setShowExecute(boolean showExecute)
If true, the DBNavigator contains a Execute button.

The default value of this property is true.

Parameters:
showExecute - true - show Execute button; false - don't show a Execute button
See Also:
isShowCommit
setShowFirst
 public void setShowFirst(boolean showFirst)
If true, the DBNavigator contains a First button.

The default value of this property is true.

Parameters:
showFirst - true - show First button; false - don't show a First button
See Also:
isShowFirst
setShowInsert
 public void setShowInsert(boolean showInsert)
If true, the DBNavigator contains a Insert button.

The default value of this property is true.

Parameters:
showInsert - true - show Insert button; false - don't show a Insert button
See Also:
isShowInsert
setShowLast
 public void setShowLast(boolean showLast)
If true, the DBNavigator contains a Last button.

The default value of this property is true.

Parameters:
showLast - true - show Last button; false - don't show a Last button
See Also:
isShowLast
setShowNext
 public void setShowNext(boolean showNext)
If true, the DBNavigator contains a Next button.

The default value of this property is true.

Parameters:
showNext - true - show Next button; false - don't show a Next button
See Also:
isShowNext
setShowPrevious
 public void setShowPrevious(boolean showPrevious)
If true, the DBNavigator contains a Previous button.

The default value of this property is true.

Parameters:
showPrevious - true - show Previous button; false - don't show a Previous button
See Also:
isShowPrevious
setShowRefresh
 public void setShowRefresh(boolean showRefresh)
If true, the DBNavigator contains a Refresh button.

The default value of this property is true.

Parameters:
showRefresh - true - show Refresh button; false - don't show a Refresh button
See Also:
isShowRefresh
setShowRollback
 public void setShowRollback(boolean showRollback)
If true, the DBNavigator contains a Rollback button.

The default value of this property is true.

Parameters:
showRollback - true - show Rollback button; false - don't show a Rollback button
See Also:
isShowRollback

Where Am I? Class Hierarchy All Classes All Fields and Methods