Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


oracle.jdeveloper.html
Class HTMLFieldRendererImpl

java.lang.Object
  extended byoracle.jdeveloper.html.HTMLFieldRendererImpl

All Implemented Interfaces:
HTMLFieldRenderer, HTMLRenderingContext
Direct Known Subclasses:
ArrayField, ReadOnlyField, StaticPickList, StructField, TextField

public abstract class HTMLFieldRendererImpl
extends java.lang.Object
implements HTMLFieldRenderer

This class provides a base implementation of the HTMLFieldRenderer interface. Use this class as the base class for any new field renderers.


Field Summary
protected AttributeDef attrDef
protected DataSource ds
protected java.util.HashMap htmlAttributes
protected LocaleContext locale
protected javax.servlet.jsp.PageContext page
protected java.lang.String sFormName
protected java.lang.String sPrompt

Constructor Summary
HTMLFieldRendererImpl()

Method Summary
AttributeDef getAttributeDef()
java.lang.String getCSSClassName()
Gets the name of the CSS (cascading style sheet) used by this field.
DataSource getDatasource()
int getDisplayHeight()
Gets the display height, in characters, of this field.
int getDisplayWidth()
Gets the display width, in characters, of this field.
java.lang.String getFieldName()
Gets this FORM field's name.
java.lang.String getFormName()
protected HTMLInputElement getHiddenFieldForValue()
protected java.lang.String getHTMLValue(Row row)
protected java.lang.String getHTMLValue(Row row, RowSet rs, java.lang.String attrName)
int getMaxDataLength()
Gets the maximum input length, in characters, of this field.
javax.servlet.jsp.PageContext getPageContext()
java.lang.String getPromptText()
Gets the prompt to be displayed next to this input field.
java.lang.String getValue()
Gets this field's current value.
protected java.lang.Object lookup(java.lang.String name, java.lang.String property, java.lang.String scope)
void setAttributeDef(AttributeDef aDef)
void setCSSClassName(java.lang.String sClass)
Sets the CSS (cascading style sheet) class name to be used by this field.
void setDatasource(DataSource dataSource)
void setDisplayHeight(int nHeight)
Sets the display height, in characters, of this field.
void setDisplayWidth(int nWidth)
Sets the display width, in characters, of this field.
void setFieldName(java.lang.String sName)
Sets this FORM field's name.
void setFormName(java.lang.String sFormName)
void setHtmlAttributes(java.util.HashMap attrs)
Sets multiple html field in once Each element of the HashMap contain the name of the attribute as the key and the value of the html attribute in the value.
void setMaxDataLength(int nLength)
Sets the maximum input length, in characters, of this field.
void setPageContext(javax.servlet.jsp.PageContext pageContext)
void setPromptText(java.lang.String sPrompt)
Sets the prompt to be displayed next to this input field.
void setValue(java.lang.String value)
Sets this field's current value.
protected void setValueFromRow(Row row)

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.HTMLFieldRenderer
renderToString

Field Detail

page

protected javax.servlet.jsp.PageContext page

ds

protected DataSource ds

attrDef

protected AttributeDef attrDef

htmlAttributes

protected java.util.HashMap htmlAttributes

sPrompt

protected java.lang.String sPrompt

sFormName

protected java.lang.String sFormName

locale

protected LocaleContext locale

Constructor Detail

HTMLFieldRendererImpl

public HTMLFieldRendererImpl()

Method Detail

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pageContext)
Specified by:
setPageContext in interface HTMLFieldRenderer

getPageContext

public javax.servlet.jsp.PageContext getPageContext()
Specified by:
getPageContext in interface HTMLFieldRenderer

setDatasource

public void setDatasource(DataSource dataSource)
Specified by:
setDatasource in interface HTMLFieldRenderer

getDatasource

public DataSource getDatasource()
Specified by:
getDatasource in interface HTMLFieldRenderer

setAttributeDef

public void setAttributeDef(AttributeDef aDef)
Specified by:
setAttributeDef in interface HTMLFieldRenderer

getAttributeDef

public AttributeDef getAttributeDef()
Specified by:
getAttributeDef in interface HTMLFieldRenderer

setFieldName

public void setFieldName(java.lang.String sName)
Sets this FORM field's name. This will be the name of the input parameter when the HTML form is submitted.
Specified by:
setFieldName in interface HTMLFieldRenderer
Parameters:
sName - name of this FORM field.

getFieldName

public java.lang.String getFieldName()
Gets this FORM field's name. This will be the name of the input parameter when the HTML form is submitted.
Specified by:
getFieldName in interface HTMLFieldRenderer
Returns:
this FORM field's name.

setDisplayWidth

public void setDisplayWidth(int nWidth)
Sets the display width, in characters, of this field.
Specified by:
setDisplayWidth in interface HTMLFieldRenderer
Parameters:
nWidth - the display width, in characters.

getDisplayWidth

public int getDisplayWidth()
Gets the display width, in characters, of this field.
Specified by:
getDisplayWidth in interface HTMLFieldRenderer
Returns:
the display width, in characters.

setDisplayHeight

public void setDisplayHeight(int nHeight)
Sets the display height, in characters, of this field. Used for TextArea only.
Specified by:
setDisplayHeight in interface HTMLFieldRenderer
Parameters:
nHeight - the display height, in characters.

getDisplayHeight

public int getDisplayHeight()
Gets the display height, in characters, of this field.
Specified by:
getDisplayHeight in interface HTMLFieldRenderer
Returns:
the display height, in characters.

setMaxDataLength

public void setMaxDataLength(int nLength)
Sets the maximum input length, in characters, of this field. The user will not be able to enter more than nLength characters.
Specified by:
setMaxDataLength in interface HTMLFieldRenderer
Parameters:
nLength - the maximum input length, in characters.

getMaxDataLength

public int getMaxDataLength()
Gets the maximum input length, in characters, of this field. This is the maximum number of characters the user can enter in the field.
Specified by:
getMaxDataLength in interface HTMLFieldRenderer
Returns:
the maximum input length, in characters.

setHtmlAttributes

public void setHtmlAttributes(java.util.HashMap attrs)
Description copied from interface: HTMLFieldRenderer
Sets multiple html field in once Each element of the HashMap contain the name of the attribute as the key and the value of the html attribute in the value.
Specified by:
setHtmlAttributes in interface HTMLFieldRenderer
Parameters:
attrs - Map of the html attributes

setPromptText

public void setPromptText(java.lang.String sPrompt)
Sets the prompt to be displayed next to this input field.
Specified by:
setPromptText in interface HTMLRenderingContext
Parameters:
sPrompt - the prompt for this input field.

getPromptText

public java.lang.String getPromptText()
Gets the prompt to be displayed next to this input field.
Specified by:
getPromptText in interface HTMLRenderingContext
Returns:
the prompt displayed next to this input field.

setCSSClassName

public void setCSSClassName(java.lang.String sClass)
Sets the CSS (cascading style sheet) class name to be used by this field. You can the use this class name in your CSS file to change the visual attributes of the field.
Specified by:
setCSSClassName in interface HTMLFieldRenderer
Parameters:
sClass - the class name of the CSS.

getCSSClassName

public java.lang.String getCSSClassName()
Gets the name of the CSS (cascading style sheet) used by this field.
Specified by:
getCSSClassName in interface HTMLFieldRenderer
Returns:
the class name of the CSS.

setValue

public void setValue(java.lang.String value)
Sets this field's current value.
Specified by:
setValue in interface HTMLFieldRenderer
Parameters:
value - current value of this field.

getValue

public java.lang.String getValue()
Gets this field's current value.
Specified by:
getValue in interface HTMLFieldRenderer
Returns:
this field's current value.

setFormName

public void setFormName(java.lang.String sFormName)
Specified by:
setFormName in interface HTMLRenderingContext

getFormName

public java.lang.String getFormName()
Specified by:
getFormName in interface HTMLRenderingContext

lookup

protected java.lang.Object lookup(java.lang.String name,
                                  java.lang.String property,
                                  java.lang.String scope)

getHTMLValue

protected java.lang.String getHTMLValue(Row row,
                                        RowSet rs,
                                        java.lang.String attrName)

getHTMLValue

protected java.lang.String getHTMLValue(Row row)

setValueFromRow

protected void setValueFromRow(Row row)

getHiddenFieldForValue

protected HTMLInputElement getHiddenFieldForValue()

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


Copyright © 1997, 2005, Oracle. All rights reserved.