Professional Documents
Culture Documents
10.
XXCustomFListener.java: This Class is the event listener
class. It listens to the events on each bean on the page and calls
appropriate method to handle the event.
FieldBeans
Text
LOV
List
Button
Heading1
Heading2
Line Separator
Space Separator
1)InputableFieldBean
InputableFieldBean is the base class for all user developed field beans which has
a value property to be inputable during "runtime".
This class is the super class for Text field, Read only Text field, LOV field.
public void
setEditable(boolean)
public void
Mandatory or
This is used to
alter the case of
the values
entered by the
public void
setAlter(java.lang.String)
user. For eg
setAlter("U")
makes the user
input to Upper
Case after the
user types in the
value.
public java.lang.String
getValue()
public void
setValue(java.lang.String)
public void
setBarcodeDelimiter(char)
delimiter
public void
setDFIs(java.lang.String[] )
Data Field
Indicator
public java.lang.String[]
getDFIs()
public void
setDFIRequired(boolean)
required flag
As indicated in the class diagram, Inputable beans have Text Field Bean and LOV field Bean as most
LOVFieldBean
LOV is commonly used component in Oracle Applications. It provides the user with list of
values and user has to choose one of them.
The common requirements which are required for constructing a LOV are:
1.
Source for List of values (mostly an SQL query or an PLSQL procedure which returns the query result
as REF CURSOR)
2.
The various values associated with each selection(eg,Emp Id, Emp Name, Department, Description)
3.
The values displayed in the UI and values used in background(eg Usually Emp Name is displayed in
the screen, not the Emp Id. But we get the Emp Id of selected Emp Name and use it for further processing)
4.
Data types of each parameters passed to SQL Query or PLSQL procedure and their values(if we use
bind parameters or IN parameters)
5.
An array to get the values associated with the selected value by the user.
6.
Criteria for validation check to be performed, if the user manually enters the value in the LOV field rather
than selecting one by clicking "torch lite" icon, we can either validate it via an API or accept is just like that.
setlovStatement(java.lang.String)
a reference cursor
output parameter.
public java.lang.String[]
getSubfieldNames()
public void
setSubfieldNames(java.lang.String[])
subfields.
public java.lang.String[]
get prompts of
getSubfieldPrompts()
subfields.
public void
set prompts of
setSubfieldPrompts(java.lang.String[])
subfields.
subfields.(This controls
which values are
displyed in UI. For eg,
Empid is usullay not
displayed in UI though
it is a part of the
LOV)
public java.lang.String[]
getInputParameterTypes()
list.
publicvoid
setInputParameterTypes(java.lang.String[]) list.
public java.lang.String[]
getInputParameters()
list.
public void
setInputParameters(java.lang.String[])
public void
setSelectedValues(java.util.Vector)
obtain a vector of
public java.util.Vector getSelectedValues() String values for the
chosen LOV
when we setValue we
public void setValue(java.lang.String)
set the
validateFromLOV
property. (Default is
true)
For code snippet of how to create an LOV, one can refer my previous article "Hello World in
Mobile Applications"
TextFieldBean
Text Field is a common means of data input to mobile applications either via scanning a value
or by manually typing in to it.This can also be used to display some values by making this
field as read only so that user cant edit or enter any value into this field.
The Commonly used API used specific to Text filed is
indicate the
public void
setIsPassword(boolean IsPassword)
field to store a
password.
Most other common APIs are available in the super class "InputableFieldBean"
2)HeadingFieldBean
HeadingFieldBean is the base class for all user developed heading field beans.
This class is the bean class for two types of headings: HEADING1 and HEADING2.
Default heading type is HEADING1. Heading Field is mainly used to set Titles for each regions of a Mobile page.
The Commonly used APIs:
public short
getAlignment()
3)ListFieldBean
ListfieldBean is bean which holds a fixed list of values. In OAF, it is called as poplist. Please see the image
below for a List Bean.
The Commonly used APIs:
public java.lang.String
getValue()
public void
setValue(java.lang.String Value)
getListSource()
separated by
comma.
setListSource(java.lang.String)
separated by
comma.
public void
setListSource(java.util.Vector)
via a vector