|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.input.extended.E4SelectValues
public class E4SelectValues
Selection values for SELECT input-fields.
SELECT,
E4SelectValuesFieldDependent| Nested Class Summary | |
|---|---|
static class |
E4SelectValues.OPTION
Option for the selection. |
static class |
E4SelectValues.OPTIONGROUP
A optiongroup defines a grouping in <OPTION>-tags for a SELECT element. |
| Field Summary | |
|---|---|
protected CLASS_Name |
m_css_class
|
protected java.util.Vector |
m_vec
|
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
E4SelectValues()
|
|
E4SelectValues(E4DBSelect_Intf sel,
E4DBColumnName column)
Use the database selection (represented by declared select object). |
|
E4SelectValues(java.lang.String[] selection)
|
|
E4SelectValues(java.util.Vector vec)
Deprecated. |
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
add(E4SelectValues.OPTION option)
Deprecated. |
void |
addAll(E4SelectValues val2)
Add a complete vector to this selection vector. |
E4SelectValues.OPTION |
addElement(boolean option,
E4Label_Intf display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(boolean option,
java.lang.String display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(char option,
E4Label_Intf display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(char option,
java.lang.String display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(E4Long option,
E4Label_Intf display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(E4Long option,
java.lang.String display)
Add an element to the selection vector. |
void |
addElement(E4SelectValues.OPTION option)
Add an element to the selection vector. |
void |
addElement(E4SelectValues.OPTIONGROUP optiongroup)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(E4String option)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(E4String option,
E4Label_Intf display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(E4String option,
java.lang.String display)
Add an element to the selection vector. |
void |
addElement(int n)
|
E4SelectValues.OPTION |
addElement(long option,
E4Label_Intf display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(long option,
E4String display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(long option,
java.lang.String display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(java.lang.String option)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(java.lang.String option,
E4Label_Intf display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(java.lang.String option,
E4String display)
Add an element to the selection vector. |
E4SelectValues.OPTION |
addElement(java.lang.String option,
java.lang.String display)
Add an element to the selection vector. |
E4SelectValues |
addOptionGroup(E4Label_Intf label)
Adds an <OPTGROUP>-Tag to the <SELECT> tag. |
E4SelectValues.OPTIONGROUP |
addOptionGroup(E4Label_Intf label,
E4SelectValues val)
Adds an <OPTGROUP>-Tag to the <SELECT> tag. |
E4SelectValues |
addOptionGroup(java.lang.String label)
Adds an <OPTGROUP>-Tag to the <SELECT> tag. |
E4SelectValues.OPTIONGROUP |
addOptionGroup(java.lang.String label,
E4SelectValues val)
Adds an <OPTGROUP>-Tag to the <SELECT> tag. |
java.lang.Class |
classAt(int i)
Check the class of the element at the specified position, this might be either #OPTION or #OPTIONGROUP. |
void |
collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
|
void |
collectTranslationsForEditing(E4TranslationsVec translations,
E4ServletImplementation_Intf servlet)
|
int |
countValidElements()
|
static E4SelectValues |
createMonthSelection()
Creates a selection by month, based on Calendar.MONTH values. |
static E4SelectValues |
createRangeSelection(int range_from,
int range_to,
int range_increment)
Create a selection range out of two integer numbers and an incremental value. |
static E4SelectValues |
createWeekdaySelection()
Creates a selection by weekday, based on Calendar.DAY_OF_WEEK values. |
static E4SelectValues |
createYesNoSelection()
Creates a selection by weekday, based on Calendar.DAY_OF_WEEK values. |
E4SelectValues.OPTION |
elementAt(int i)
Get the element at the specified position |
E4Label_Intf |
findOption(java.lang.String searchFor)
Get the label associated with a specified option value. |
E4Label_Intf |
firstOptionLabel()
Get the label for the first option, including looking in all sub selections. |
java.lang.String |
firstOptionValue()
Get the first option value, including looking in all sub selections. |
java.lang.String |
getDefaultValue()
Get the default value for this selector. |
boolean |
getEncodehtmlDisplaytext()
|
boolean |
getEncodehtmlOptionvalue()
|
E4SelectValues.OPTION[] |
getOptionsIncludingSub()
|
CLASS_Name |
getSTYLE()
|
void |
removeAll()
Remove all options. |
void |
setDefaultValue(boolean val)
Set the default value for this selector. |
void |
setDefaultValue(E4Long val)
Set the default value for this selector. |
void |
setDefaultValue(E4String val)
Set the default value for this selector. |
void |
setDefaultValue(long val)
Set the default value for this selector. |
void |
setDefaultValue(java.lang.String val)
Set the default value for this selector. |
void |
setEncodehtmlDisplaytext(boolean m_encodehtml_displaytext)
|
void |
setEncodehtmlOptionvalue(boolean m_encodehtml_value)
|
void |
setSTYLE(CLASS_Name css_class)
|
void |
showUntranslatedInBrackets(boolean mode)
Change the current display behavior for non-translated items. |
int |
size()
Get the number of elements in the vector (no sub elements). |
int |
sizeIncludingSub()
Get the number of elements in the vector (including sub elements defined by addOptionGroup(String) and
others. |
void |
sort(Language dest_lang)
Sort a Vector of OPTIONS objects ascending. |
java.lang.StringBuffer |
toHtmlOptions(java.lang.String sValue,
boolean displayonly,
Language dest_lang)
|
protected java.lang.StringBuffer |
toHtmlOptions(java.lang.String sValue,
boolean displayonly,
Language dest_lang,
int sizeElements,
E4SelectValues selection)
|
java.lang.String |
toString()
|
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector m_vec
protected CLASS_Name m_css_class
| Constructor Detail |
|---|
public E4SelectValues()
public E4SelectValues(java.lang.String[] selection)
public E4SelectValues(java.util.Vector vec)
E4SelectValues()
public E4SelectValues(E4DBSelect_Intf sel,
E4DBColumnName column)
throws java.lang.Exception
sel - a database seelctioncolumn - the column to be used for both, value and label
java.lang.Exception| Method Detail |
|---|
public boolean getEncodehtmlOptionvalue()
public void setEncodehtmlOptionvalue(boolean m_encodehtml_value)
public boolean getEncodehtmlDisplaytext()
public void setEncodehtmlDisplaytext(boolean m_encodehtml_displaytext)
public E4SelectValues.OPTIONGROUP addOptionGroup(java.lang.String label,
E4SelectValues val)
label - the label which is displayed in the SELECT element.val - the sub-values of the option-group.
addOptionGroup(e4s.translate.E4Label_Intf,e4s.html.input.extended.E4SelectValues),
addOptionGroup(String),
addOptionGroup(e4s.translate.E4Label_Intf)public E4SelectValues addOptionGroup(java.lang.String label)
label - the label which is displayed in the SELECT element.
addOptionGroup(String,e4s.html.input.extended.E4SelectValues),
addOptionGroup(e4s.translate.E4Label_Intf)public E4SelectValues addOptionGroup(E4Label_Intf label)
label - the label which is displayed in the SELECT element.
addOptionGroup(e4s.translate.E4Label_Intf,e4s.html.input.extended.E4SelectValues),
addOptionGroup(String,e4s.html.input.extended.E4SelectValues),
addOptionGroup(String)
public E4SelectValues.OPTIONGROUP addOptionGroup(E4Label_Intf label,
E4SelectValues val)
label - the label which is displayed in the SELECT element.val - the sub-values of the option-group.
addOptionGroup(String,e4s.html.input.extended.E4SelectValues),
addOptionGroup(String),
#addOptionGroup(e4s.html.translate.E4Label_Intf)public void add(E4SelectValues.OPTION option)
addElement(e4s.html.input.extended.E4SelectValues.OPTION)public void addElement(E4SelectValues.OPTION option)
option - the new option value to be addedaddElement(String),
addElement(String,String)public void addElement(E4SelectValues.OPTIONGROUP optiongroup)
optiongroup - the new option-group to be addedaddOptionGroup(java.lang.String, e4s.html.input.extended.E4SelectValues)public void addAll(E4SelectValues val2)
val2 - the vector to be added.
public E4SelectValues.OPTION addElement(java.lang.String option,
java.lang.String display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(java.lang.String option,
E4Label_Intf display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(char option,
java.lang.String display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(char option,
E4Label_Intf display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(E4String option,
java.lang.String display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(E4String option,
E4Label_Intf display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(E4Long option,
java.lang.String display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(E4Long option,
E4Label_Intf display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(long option,
java.lang.String display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(boolean option,
java.lang.String display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(boolean option,
E4Label_Intf display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(long option,
E4Label_Intf display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(java.lang.String option,
E4String display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)
public E4SelectValues.OPTION addElement(long option,
E4String display)
option - is the value associated with the field value (internally)display - is the label that is shown on the screen and present for the useraddElement(String)public E4SelectValues.OPTION addElement(java.lang.String option)
option - is the value associated with the field value and displayaddElement(String, String)public E4SelectValues.OPTION addElement(E4String option)
option - is the value associated with the field value and displayaddElement(String, String)public int size()
elementAt(int),
sizeIncludingSub()public int sizeIncludingSub()
addOptionGroup(String) and
others.
#elementAt()
public E4SelectValues.OPTION elementAt(int i)
throws java.lang.Exception
i - the index of the element
an - exception, if the element at the specified position is not of type #OPTION
java.lang.Exceptionsize()public java.lang.Class classAt(int i)
#OPTION or #OPTIONGROUP.
i - the index of the element
elementAt(int)public E4SelectValues.OPTION[] getOptionsIncludingSub()
public void collectTranslationsForEditing(E4TranslationsVec translations,
E4ServletImplementation_Intf servlet)
public void sort(Language dest_lang)
v - the vector to sort (v will be changed)public int countValidElements()
public java.lang.StringBuffer toHtmlOptions(java.lang.String sValue,
boolean displayonly,
Language dest_lang)
protected java.lang.StringBuffer toHtmlOptions(java.lang.String sValue,
boolean displayonly,
Language dest_lang,
int sizeElements,
E4SelectValues selection)
public void showUntranslatedInBrackets(boolean mode)
mode - true = show un-translated text in brackets (default), false = no bracketse4s.translate.E4Label_Intf#showUntranslatedInBrackets(boolean)
public static E4SelectValues createRangeSelection(int range_from,
int range_to,
int range_increment)
range_from - the range starting fromrange_to - the range ending (including)range_increment - a positive increment value.public static E4SelectValues createMonthSelection()
public static E4SelectValues createWeekdaySelection()
public static E4SelectValues createYesNoSelection()
public void setDefaultValue(java.lang.String val)
E4InputField.setValue(String),
getDefaultValue(),
setDefaultValue(long)public void setDefaultValue(long val)
E4InputField.setValue(String),
getDefaultValue(),
setDefaultValue(String)public void setDefaultValue(E4String val)
E4InputField.setValue(String),
getDefaultValue(),
setDefaultValue(long)public void setDefaultValue(E4Long val)
E4InputField.setValue(String),
getDefaultValue(),
setDefaultValue(String)public void setDefaultValue(boolean val)
E4InputField.setValue(String),
getDefaultValue(),
setDefaultValue(String)public java.lang.String getDefaultValue()
E4InputField.setValue(String),
setDefaultValue(String)public E4Label_Intf findOption(java.lang.String searchFor)
searchFor - the string to search for
public void addElement(int n)
public void removeAll()
public void collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
public void setSTYLE(CLASS_Name css_class)
public CLASS_Name getSTYLE()
public java.lang.String firstOptionValue()
#getFirstOptionLabel()public E4Label_Intf firstOptionLabel()
#getFirstOptionValue()public java.lang.String toString()
toString in class E4Objectpublic static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||