|
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.HTMLFieldRendererImpl | +--oracle.jdeveloper.html.StaticPickList
This class represents a Static PickList. It's data is provided by two string arrays, one for the labels and another for the prompts . It supports various renderings: combobox, listbox,radio group and checbox group.
Field Summary | |
protected java.lang.String[] |
aLabels
|
protected java.util.Hashtable |
allvalues
|
protected java.lang.String[] |
aValues
|
boolean |
bUseLineBreaks
|
protected oracle.jdeveloper.html.ListIterator |
iter
|
protected int |
nType
|
protected java.lang.String |
sQuery
|
static int |
TYPE_CHECKBOX_GROUP
|
static int |
TYPE_COMBOBOX
|
static int |
TYPE_LISTBOX
|
static int |
TYPE_RADIO_GROUP
|
protected java.util.Hashtable |
values
|
Fields inherited from class oracle.jdeveloper.html.HTMLFieldRendererImpl |
attrDef, ds, htmlAttributes, locale, page, sFormName, sPrompt |
Constructor Summary | |
StaticPickList()
Constructs object. |
Method Summary | |
protected HTMLSelect |
createHTMLSelect(boolean bMultiple)
|
protected HTMLElement |
generateCheckBoxGroup()
|
protected HTMLElement |
generateComboBox()
|
protected HTMLElement |
generateListBox()
|
protected HTMLElement |
generateRadioGroup()
|
int |
getControlType()
|
protected java.lang.String |
getRenderedString()
|
boolean |
getUseLineBreaks()
|
protected void |
prepareForMultiValueListGeneration()
|
java.lang.String |
renderToString(Row row)
This method is called when the field renderers are being used from the Tag library and from the DataWebBeans. |
void |
setControlType(int nType)
|
void |
setControlType(java.lang.String sType)
|
void |
setDataSource(java.lang.String[] labels,
java.lang.String[] values)
Configures the source arrays for the prompts and values of the static picklist |
void |
setUseLineBreaks(boolean bUseBreaks)
|
Methods inherited from class oracle.jdeveloper.html.HTMLFieldRendererImpl |
getAttributeDef, getCSSClassName, getDatasource, getDisplayHeight, getDisplayWidth, getFieldName, getFormName, getHiddenFieldForValue, getHTMLValue, getHTMLValue, getMaxDataLength, getPageContext, getPromptText, getValue, lookup, setAttributeDef, setCSSClassName, setDatasource, setDisplayHeight, setDisplayWidth, setFieldName, setFormName, setHtmlAttributes, setMaxDataLength, setPageContext, setPromptText, setValue, setValueFromRow |
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.HTMLRenderingContext |
getFormName, getPromptText, setFormName, setPromptText |
Field Detail |
public static final int TYPE_COMBOBOX
public static final int TYPE_LISTBOX
public static final int TYPE_CHECKBOX_GROUP
public static final int TYPE_RADIO_GROUP
public boolean bUseLineBreaks
protected int nType
protected java.lang.String sQuery
protected java.util.Hashtable values
protected java.util.Hashtable allvalues
protected java.lang.String[] aLabels
protected java.lang.String[] aValues
protected oracle.jdeveloper.html.ListIterator iter
Constructor Detail |
public StaticPickList()
Method Detail |
public void setControlType(java.lang.String sType)
setControlType
in interface StaticPickListContext
public void setControlType(int nType)
setControlType
in interface StaticPickListContext
public int getControlType()
getControlType
in interface StaticPickListContext
public void setUseLineBreaks(boolean bUseBreaks)
setUseLineBreaks
in interface StaticPickListContext
public boolean getUseLineBreaks()
getUseLineBreaks
in interface StaticPickListContext
public void setDataSource(java.lang.String[] labels, java.lang.String[] values)
setDataSource
in interface StaticPickListContext
protected void prepareForMultiValueListGeneration()
protected HTMLSelect createHTMLSelect(boolean bMultiple)
protected HTMLElement generateComboBox()
protected HTMLElement generateListBox()
protected HTMLElement generateCheckBoxGroup()
protected HTMLElement generateRadioGroup()
protected java.lang.String getRenderedString()
public java.lang.String renderToString(Row row)
HTMLFieldRenderer
renderToString
in interface HTMLFieldRenderer
|
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.