Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.jbo
Class NavigationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by oracle.jbo.JboEvent
          extended by oracle.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.

Overrides:
toString in class java.util.EventObject
Returns:
a diagnostic string.

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

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