|
interMedia BC4J Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
OrdImageDomain
OrdAudioDomain
OrdVideoDomain
OrdDocDomain
The 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 |
Type | Method |
---|---|
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. |
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 URLMethod 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
false
public boolean isAudio()
OrdAudioDomain
. If the domain object is null
,
it returns false
.true
if the domain object is an instance of
OrdAudioDomain
; otherwise, returns false
public boolean isVideo()
OrdVideoDomain
. If the domain object is null
,
it returns false
.true
if the domain object is an instance of
OrdVideoDomain
; otherwise, returns false
public boolean isDoc()
OrdDocDomain
. If the domain object is null
,
it returns false
.true
if the domain object is an instance of
OrdDocDomain
; otherwise, returns false
public boolean isNull()
null
.true
if the domain object is null
;
otherwise, returns false
public 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.
row
- the row which contains the domain object
|
interMedia BC4J Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |