|
Oracle9i Business Components for Java API Reference Oracle9i JDeveloper (9.0.4) B10391-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jdeveloper.html.WebBeanImpl | +--oracle.jdeveloper.html.DataWebBeanImpl | +--oracle.jbo.html.DataWebBeanImpl | +--oracle.jbo.html.databeans.ViewCurrentRecord
The ViewCurrentRecord Data Web Bean displays a read-only version of the current record of a View Object's RowSet.
JDeveloper's JSP Element wizard instantiates the ViewCurrentRecord class in a jsp:useBean tag in a .jsp file. Along with the class, the wizard also includes an ID and a scope declaration set to request. If you change the scope to any other value, you will have to handle possible multithreading issues.
The definition of ViewCurrentRecord provided by the wizard includes these methods: setUseRoundedCorners, setShowRecordNumbers, setReleaseApplicationResources, initialize, and render. For example,
<jsp:useBean class="oracle.jbo.html.databeans.ViewCurrentRecord" id="vcrMaster" scope="request" > <% vcrMaster.setUseRoundedCorners(true); vcrMaster.setShowRecordNumbers(true); vcrMaster.setReleaseApplicationResources(false); vcrMaster.initialize(application,session, request,response,out, "package3_Package3Module.DeptView"); vcrMaster.render(); %> </jsp:useBean>
The value assigned to the setReleaseApplicationResources method determines whether the Application Module is released after ViewCurrentRecord Data Web Bean processes it. Typically, the value should not be set to true unless this is the last Web Bean to be processed in the JSP page.
Field Summary | |
protected boolean |
showRecordNumber
|
protected boolean |
useRoundedCorners
|
Fields inherited from class oracle.jdeveloper.html.DataWebBeanImpl |
amName, bReleaseApplication, dispAttrs, ds |
Fields inherited from class oracle.jdeveloper.html.WebBeanImpl |
application, bUsedInTag, out, page, request, response, session |
Fields inherited from interface oracle.jdeveloper.html.WebBean |
contentFrameName, defaultCaboBase, defaultCaboImageBase, defaultImageBase, defaultJSPBase, defaultNLSFormat, JS_LIBRARIES, JS_NAMEID, JSButtonConstructorLib, JSCalendarConstructorLib, JSContainerConstructorLib, JSDataConstructLib, JSModalPageConstructorLib, JSTableConstructLib, JSToolbarConstructorLib, JSTreeConstructLib, JSUtilitiesLib |
Constructor Summary | |
ViewCurrentRecord()
|
Method Summary | |
void |
render()
Renders the current record from the RowSet of the View Object. |
void |
setShowRecordNumbers(boolean bShow)
Sets whether the control will render the record numbers in the browser. |
void |
setUseRoundedCorners(boolean bSet)
Enables or disables the use of rounded corners in the HTML table generated by this Web Bean. |
Methods inherited from class oracle.jbo.html.DataWebBeanImpl |
initialize, setUsedInTag |
Methods inherited from class oracle.jdeveloper.html.WebBeanImpl |
generateScriptSrc, getCookie, getOut, getRequest, getRequestVariable, getRequestVariable, getUniqueName, initBeanForJS, initBeanForJS, initBeanForJS, initialize, initialize, initialize, render, setRequestVariable, setRequestVariable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jdeveloper.html.DataWebBean |
clearDisplayAttributes, getApplicationName, getDisplayAttributeDefs, getDisplayAttributes, getDisplayFieldRenderer, getEditFieldRenderer, getRowSet, getViewObjectName, handleCommit, initialize, initialize, isAppStateful, setDisplayAttributes, setDisplayFieldRenderer, setDisplayFieldRenderer, setEditFieldRenderer, setEditFieldRenderer, setReleaseApplicationResources, setRowSet, shouldDisplayAttribute |
Methods inherited from interface oracle.jdeveloper.html.WebBean |
initialize, initialize, internalInitialize, render |
Field Detail |
protected boolean showRecordNumber
protected boolean useRoundedCorners
Constructor Detail |
public ViewCurrentRecord()
Method Detail |
public void setUseRoundedCorners(boolean bSet)
bSet
- true to use rounded corners; false to use
squared corners.public void setShowRecordNumbers(boolean bShow)
bShow
- true to display record numbers; false to
suppress record numbers.public void render() throws java.lang.Exception
render
in interface WebBean
render
in class WebBeanImpl
java.lang.Exception
|
Oracle9i Business Components for Java API Reference Oracle9i JDeveloper (9.0.4) B10391-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.