oracle.cabo.servlet.ui.data
Class PageEventDataObject
java.lang.Object
|
+--oracle.cabo.servlet.ui.data.PageEventDataObject
- All Implemented Interfaces:
- DataObject
- public class PageEventDataObject
- extends java.lang.Object
- implements DataObject
Turns a PageEvent into a DataObject, so they can be used as generic
data objects for any interface that takes DataObjects. PageEvent
uses the following syntax for DataObject selection:
selectValue()
uses keys directly from the
servlet request. If passed the name of a DataObjectList
(for example, data submitted from a TableBean), it will detect
and decode that.
=-=AEW Move to servlet.data?
Method Summary |
static java.lang.Object |
getParameterValue(PageEvent pageEvent,
java.lang.String parameterName,
boolean multipleValues)
gets the value (or values) of a parameter |
java.lang.Object |
selectValue(RenderingContext context,
java.lang.Object select)
Given a select string, returns the value matching that
selection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageEventDataObject
public PageEventDataObject(PageEvent pageEvent)
- Creates a PageEventDataObject around a PageEvent.
PageEventDataObject
public PageEventDataObject(PageEvent pageEvent,
boolean multipleValues)
- Creates a PageEventDataObject around a PageEvent.
- Parameters:
pageEvent
- the page eventmultipleValues
- if true, return a String array of parameters
otherwise, return the single parameter String
selectValue
public java.lang.Object selectValue(RenderingContext context,
java.lang.Object select)
- Description copied from interface:
DataObject
- Given a select string, returns the value matching that
selection. It is legal to return null if the select key
doesn't match anything.
- Specified by:
selectValue
in interface DataObject
- Following copied from interface:
oracle.cabo.ui.data.DataObject
- Parameters:
context
- the current rendering contextselect
- a select criterion, syntax as defined by the data object
getParameterValue
public static java.lang.Object getParameterValue(PageEvent pageEvent,
java.lang.String parameterName,
boolean multipleValues)
- gets the value (or values) of a parameter
- Parameters:
parameterName
- the name of the parameterpageEvent
- the page eventmultipleValues
- if true, return a String array of parameters
otherwise, return the single parameter String