Class com.ibm.ivj.db.uibeans.DBNavigator
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----com.ibm.ivj.db.uibeans.DBNavigator
- public class DBNavigator
- implements ActionListener
- extends JPanel
DBNavigator represents a panel that contains buttons to allow you to
navigate the result set associated with a Select or ProcedureCall bean.
Field Index
- noSelect
- ErrorCode for DataException if no Select or ProcedureCall is associated with DBNavigator.
Constructor Index
- DBNavigator()
- Constructs a new DBNavigator.
Method Index
- actionPerformed(ActionEvent)
- When a button is pressed, all buttons are disabled and a new thread is created to
execute the associated method.
- addExceptionListener(ExceptionListener)
- Adds the ExceptionListener.
- getModel()
- Returns the data model represented by a Select or ProcedureCall 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.
- isToolTipsEnabled()
- Returns true if this DBNavigator has tool tips enabled.
- removeExceptionListener(ExceptionListener)
- Removes the ExceptionListener.
- setModel(Select)
- Associates a data model represented by a Select or ProcedureCall 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.
- setToolTipsEnabled(boolean)
- If true, this DBNavigator has tool tips enabled.
Fields
noSelect
public static final int noSelect
- ErrorCode for DataException if no Select or ProcedureCall is associated with DBNavigator.
Constructors
DBNavigator
public DBNavigator()
- Constructs a new DBNavigator.
Methods
actionPerformed
public void actionPerformed(ActionEvent e)
- When a button is pressed, all buttons are disabled and a new thread is created to
execute the associated method. When the method is complete, the buttons are enabled.
If there is no associated Select or ProcedureCall , an ExceptionEvent is triggered with the
errorCode
noSelect
. If a DataException or a RuntimeException is raised while
exeucting the method, an ExceptionEvent is triggered.
- Parameters:
- e - the action event
addExceptionListener
public void addExceptionListener(ExceptionListener listener)
- 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:
- listener - ExceptionListener
- See Also:
- ExceptionListener
- removeExceptionListener
getModel
public Select getModel()
- Returns the data model represented by a Select or ProcedureCall 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
isToolTipsEnabled
public boolean isToolTipsEnabled()
- Returns true if this DBNavigator has tool tips enabled. If tool tips are
enabled, the DBNavigator should only be contained in a Swing componennt.
- Returns:
- true if this DBNavigator has tool tips enabled.
- See Also:
- setToolTipsEnabled
removeExceptionListener
public void removeExceptionListener(ExceptionListener listener)
- 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:
- listener - ExceptionListener
- See Also:
- ExceptionListener
- addExceptionListener
setModel
public void setModel(Select model)
- Associates a data model represented by a Select or ProcedureCall 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:
- isShowExecute
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
setToolTipsEnabled
public void setToolTipsEnabled(boolean toolTips)
- If true, this DBNavigator has tool tips enabled. If tool tips are
enabled, the DBNavigator should only be contained in a Swing componennt.
The default value of this property is true.
- Parameters:
- toolTips - true - enable tool tips;
false - disable tool tips
- See Also:
- isToolTipsEnabled
