Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.beans.table
Class SelectionUtils

java.lang.Object
  |
  +--oracle.cabo.ui.beans.table.SelectionUtils

public class SelectionUtils
extends java.lang.Object

Utility methods for retrieving the selection state of a table.

See Also:
MultipleSelectionBean, SingleSelectionBean

Constructor Summary
SelectionUtils()
           
 
Method Summary
static int getSelectedIndex(DataObject servletRequestObject)
          Return a zero-based integer indicating which row in a single-selection table was selected.
static int[] getSelectedIndices(DataObjectList servletRequestSet)
          Return an array of integers of those rows which were marked as selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionUtils

public SelectionUtils()
Method Detail

getSelectedIndex

public static int getSelectedIndex(DataObject servletRequestObject)
Return a zero-based integer indicating which row in a single-selection table was selected. This method will return -1 if no row was selected or if the table had no SingleSelectionBean.
Parameters:
servletRequestObject - a DataObject (usually a ServletRequestDataSet) constructed with the name of the TableBean to be queried.

getSelectedIndices

public static int[] getSelectedIndices(DataObjectList servletRequestSet)
Return an array of integers of those rows which were marked as selected. The result array will be zero-length if no rows were selected or if the table had no MultipleSelectionBean.
Parameters:
servletRequestObject - a DataObjectList (usually a ServletRequestDataSet) constructed with the name of the TableBean to be queried for selection.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.