Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo
Class NavigationEvent

java.lang.Object
  extended by oracle.adfnmc.util.eventing.EventObject
      extended by oracle.jbo.JboEvent
          extended by oracle.jbo.NavigationEvent

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

Field Summary
 
Fields inherited from class oracle.adfnmc.util.eventing.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 oracle.adfnmc.util.eventing.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, 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 EventObject
Returns:
a diagnostic string.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.