Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

oracle.jbo
Class NavigationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byoracle.jbo.JboEvent
          extended byoracle.jbo.NavigationEvent
All Implemented Interfaces:
java.io.Serializable

public class NavigationEvent
extends JboEvent

An event generated by RowSet to inform its listeners when the iterator position in a View Object changes.

Since:
JDeveloper 3.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NavigationEvent(NavigatableRowIterator source, Row previousRow, Row currentRow)
          Creates a navagation event when a new row becomes current.
 
Method Summary
 Row getPreviousRow()
          Identifies the row that was previously the current row.
 int getPreviousRowIndex()
          Identifies the row that was previously the current row.
 Row getRow()
          Identifies the row that is to become the current row.
 int getRowIndex()
          Gets the index of the row that is to become the current row.
 java.lang.String toString()
          Internal: For debugging only.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NavigationEvent

public NavigationEvent(NavigatableRowIterator source,
                       Row previousRow,
                       Row currentRow)
Creates a navagation event when a new row becomes current.

Parameters:
source - an accessor to a set of rows.
previousRow - the row that was the current row.
currentRow - the row that is to become the current row.
Method Detail

getRow

public final Row getRow()
Identifies the row that is to become the current row.

Returns:
the new row.

getRowIndex

public final int getRowIndex()
Gets the index of the row that is to become the current row.

Returns:
the index relative to the begining of the view.

getPreviousRow

public final Row getPreviousRow()
Identifies the row that was previously the current row.

Returns:
the previous row.

getPreviousRowIndex

public final int getPreviousRowIndex()
Identifies the row that was previously the current row.

Returns:
the index relative to the begining of the view. If no row was previously current, -1 is returned.

toString

public java.lang.String toString()
Internal: For debugging only.

Returns:
a diagnostic string.

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

 

Copyright © 1997, 2004, Oracle. All rights reserved.