|
Oracle9i Business Components for Java InterMedia API Reference Oracle9i JDeveloper (9.0.4) B10394-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--oracle.jdeveloper.html.HTMLFieldRendererImpl
|
+--oracle.ord.html.OrdBuildURLRenderer
Generates an HTML tag string to render interMedia Business Component for Java (BC4J) domain objects in the browser.
OrdBuildURLRenderer serves as the default HTML display renderer class for all interMedia domain classes:
OrdImageDomainOrdAudioDomainOrdVideoDomainOrdDocDomainThe HTML tag string generated by this class follows these rules:
OrdImageDomain domain objects: Generates HTML image tags, like <IMG SRC=[mediaFetchingURL] ALT=[attribute name] WIDTH=[width] HEIGHT=[height]>.OrdAudioDomain, OrdVideoDomain, and OrdDocDomain domain objects: Generates HTML anchor tags, such as <A HREF=[mediaFetchingURL]>[attribute name]</A>.Internally, OrdBuildURLRenderer class uses OrdURLBuilder class to build the [mediaFetchingURL] string.
Users can write their own HTML renderer class to create customized HTML tag strings for the interMedia domain classes. For example, users may prefer an HTML EMBED tag instead of an ANCHOR tag to render audio/video content. Or users may decide to add a JavaScript action to the generated HTML IMAGE tag. Use the class OrdURLBuilder to construct the [mediaFetchingURL] for the customized HTML renderer.
OrdURLBuilder| Constructor Summary | |
OrdBuildURLRenderer()Constructor reserved for internal use. | |
OrdBuildURLRenderer(oracle.jbo.html.DataSource dataSource, oracle.jbo.Row row, java.lang.String attribute)Deprecated. | |
| Method Summary | |
int |
getContentLength()Deprecated. |
java.lang.Object |
getOrdDomainObject()Deprecated. |
java.lang.String |
getOrdDomainURL()Deprecated. |
boolean |
isAudio()Deprecated. |
boolean |
isDoc()Deprecated. |
boolean |
isImage()Deprecated. |
boolean |
isNull()Deprecated. |
boolean |
isVideo()Deprecated. |
java.lang.String |
renderToString(oracle.jbo.Row row)Returns the HTML tag string that refers to the interMedia domain object. |
| Methods inherited from class oracle.jdeveloper.html.HTMLFieldRendererImpl |
getAttributeDef, getCSSClassName, getDatasource, getDisplayHeight, getDisplayWidth, getFieldName, getFormName, getMaxDataLength, getPageContext, getPromptText, getValue, setAttributeDef, setCSSClassName, setDatasource, setDisplayHeight, setDisplayWidth, setFieldName, setFormName, setHtmlAttributes, setMaxDataLength, setPageContext, setPromptText, setValue |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OrdBuildURLRenderer()
public OrdBuildURLRenderer(oracle.jbo.html.DataSource dataSource,
oracle.jbo.Row row,
java.lang.String attribute)
dataSource - the object that contains data binding information used by the HTML renderer to access the domain objectrow - the row which contains the interMedia domain objectattribute - the attribute for which to build the URL| Method Detail |
public java.lang.Object getOrdDomainObject()
null if there is no domain object in the row.public boolean isImage()
OrdImageDomain. If the domain object is null, it returns false.true if the domain object is an instance of OrdImageDomain; otherwise, returns falsepublic boolean isAudio()
OrdAudioDomain. If the domain object is null, it returns false.true if the domain object is an instance of OrdAudioDomain; otherwise, returns falsepublic boolean isVideo()
OrdVideoDomain. If the domain object is null, it returns false.true if the domain object is an instance of OrdVideoDomain; otherwise, returns falsepublic boolean isDoc()
OrdDocDomain. If the domain object is null, it returns false.true if the domain object is an instance of OrdDocDomain; otherwise, returns falsepublic boolean isNull()
null.true if the domain object is null; otherwise, returns falsepublic int getContentLength()
null, it returns 0.OrdDomainIOInterface.getContentLength()public java.lang.String getOrdDomainURL()
renderToString .public java.lang.String renderToString(oracle.jbo.Row row)
The HTML tags generated by this class follow these rules:
OrdImageDomain domain objects: Generates HTML image tags, like <IMG SRC=[URL] ALT=[attribute name] WIDTH=[width] HEIGHT=[height]>.OrdAudioDomain, OrdVideoDomain, and OrdDocDomain domain objects: Generates HTML anchor tags, such as <A HREF=[URL]>[attribute name]</A>.Certain BC4J data tags and data web beans call this method when they use the HTMLdisplay renderers to display a domain object in the browser.
renderToString in interface oracle.jdeveloper.html.HTMLFieldRendererrenderToString in class oracle.jdeveloper.html.HTMLFieldRendererImplrow - the row which contains the domain object
|
Oracle9i Business Components for Java InterMedia API Reference Oracle9i JDeveloper (9.0.4) B10394-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||