|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.Input
org.pajes.html.Select
org.pajes.html.SelectJavaScriptList
public class SelectJavaScriptList
Generates the <SELECT>, and the associated <OPTION> tags to create list boxes and drop-down lists are generated from a client-side JavaScript script.
| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Select |
|---|
NULL_ENTRY |
| Fields inherited from class org.pajes.html.Input |
|---|
TYPE_ATTRIBUTE |
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
protected |
SelectJavaScriptList()
Default constructor for sub-classing does nothing. |
|
SelectJavaScriptList(Form form,
java.lang.String name,
boolean allowMultipleItemsToBeSelected,
int rowsToDisplay,
boolean isRequired,
Script script)
Create a drop down list or select box. |
|
SelectJavaScriptList(Form form,
java.lang.String name,
boolean allowMultipleItemsToBeSelected,
int rowsToDisplay,
Script script)
Create a drop down list or select box. |
|
SelectJavaScriptList(Form form,
java.lang.String name,
boolean allowMultipleItemsToBeSelected,
Script script)
Create a drop down list or select box. |
|
SelectJavaScriptList(Form form,
java.lang.String name,
int rowsToDisplay,
boolean allowMultipleItemsToBeSelected,
boolean isRequired,
int indexToIgnore,
Script script)
Create a drop down list or select box. |
|
SelectJavaScriptList(Form form,
java.lang.String name,
int rowsToDisplay,
Script script)
Create a drop down list or select box. |
|
SelectJavaScriptList(Form form,
java.lang.String name,
Script script)
Create a drop down list or select box. |
| Method Summary | |
|---|---|
protected java.util.Iterator<? extends OptionItem> |
getOptions()
Returns an Iterator of Option instances. |
protected Script |
getScript()
Returns the JavaScript function that is the source of the select list options. |
protected SelectJavaScriptList |
setScript(Script script)
Sets a JavaScript function as the source of the select list options. |
protected void |
writeContent(Browser browser)
Called to write the content between the start and end tags. |
| Methods inherited from class org.pajes.html.Select |
|---|
getMultipleSelectAllowed, getNull, getRowsToDisplay, getSearchField, isMandatory, setGenerateNull, setGenerateNull, setIndexToIgnoreInMandatoryCheck, setMandatory, setMultipleSelectAllowed, setRowsToDisplay, write, writeSearchField |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.pajes.html.InputValidation |
|---|
getClientValidation, getDOMReference, getName, isRequiringValidation, setOnBlurValidation |
| Constructor Detail |
|---|
public SelectJavaScriptList(Form form,
java.lang.String name,
boolean allowMultipleItemsToBeSelected,
int rowsToDisplay,
boolean isRequired,
Script script)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name of the List Box.allowMultipleItemsToBeSelected - to true is multiple items are selectablerowsToDisplay - the number of rows that are shown when the user clicks on the
select listisRequired - to true if an item must be selected from the listscript - the Script from which the options for this list will be
determined at load time.
public SelectJavaScriptList(Form form,
java.lang.String name,
boolean allowMultipleItemsToBeSelected,
int rowsToDisplay,
Script script)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name of the List Box.allowMultipleItemsToBeSelected - to true is multiple items are selectablerowsToDisplay - the number of rows that are shown when the user clicks on the
select listscript - the Script from which the options for this list will be
determined at load time.
public SelectJavaScriptList(Form form,
java.lang.String name,
boolean allowMultipleItemsToBeSelected,
Script script)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name of the List Box.allowMultipleItemsToBeSelected - to true if multiple items are selectablescript - the Script from which the options for this list will be
determined at load time.
public SelectJavaScriptList(Form form,
java.lang.String name,
int rowsToDisplay,
boolean allowMultipleItemsToBeSelected,
boolean isRequired,
int indexToIgnore,
Script script)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name of the List Box.rowsToDisplay - the number of rows that are shown when the user clicks on the
select listallowMultipleItemsToBeSelected - to true is multiple items are selectableisRequired - to true if an item must be selected from the listindexToIgnore - a zero-indexed item in the select list to be ignored when
determining if a value has been selected from the list.script - the Script from which the options for this list will be
determined at load time.
public SelectJavaScriptList(Form form,
java.lang.String name,
int rowsToDisplay,
Script script)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name of the List Box.rowsToDisplay - the number of rows that are shown when the user clicks on the
select listscript - the Script from which the options for this list will be
determined at load time.
public SelectJavaScriptList(Form form,
java.lang.String name,
Script script)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name of the List Box.script - the Script from which the options for this list will be
determined at load time.protected SelectJavaScriptList()
| Method Detail |
|---|
protected java.util.Iterator<? extends OptionItem> getOptions()
getOptions in class Selectprotected Script getScript()
protected SelectJavaScriptList setScript(Script script)
script - the Script object containg the JavaScript code.
protected void writeContent(Browser browser)
throws java.io.IOException
writeContent in class Selectbrowser - the browser to which the results are to be output.
java.io.IOException - if an I/O error occurs writing to the browser.Tag.setWriteEndTag(boolean)
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||