Class ListFormatter
java.lang.Object
de.uplanet.lucy.server.auxiliaries.ListFormatter
Provides list-formatting functionality for generating client output.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOptionList
(de.uplanet.util.PairArray<String, String> p_list) Create an option list from a pair-array with the0
th option selected.getOptionList
(de.uplanet.util.PairArray<String, String> p_list, int p_iSelectedIndex) Create an option list from a pair-array with the0
th option selected.getOptionListT
(de.uplanet.util.PairArray<String, String> p_list, String p_strSelectedText) Create an option list from a pair-array with specified option selected.getOptionListV
(de.uplanet.util.PairArray<String, String> p_list, String p_strSelectedValue) Create an option list from a pair-array with specified option selected.Get the currently selected output type.
-
Constructor Details
-
ListFormatter
public ListFormatter()Construct aListFormatter
.
-
-
Method Details
-
getOutputType
Get the currently selected output type.- Returns:
- The output type.
-
getOptionList
Create an option list from a pair-array with the0
th option selected.- Parameters:
p_list
- An array containing the value-text-pairs.- Returns:
- The option list.
-
getOptionList
Create an option list from a pair-array with the0
th option selected.- Parameters:
p_list
- An array containing the value-text-pairs.p_iSelectedIndex
- The index of the option that should be selected.- Returns:
- The option list.
-
getOptionListV
public String getOptionListV(de.uplanet.util.PairArray<String, String> p_list, String p_strSelectedValue) Create an option list from a pair-array with specified option selected.- Parameters:
p_list
- An array containing the value-text-pairs.p_strSelectedValue
- The value of the option that should be selected.- Returns:
- The option list.
-
getOptionListT
public String getOptionListT(de.uplanet.util.PairArray<String, String> p_list, String p_strSelectedText) Create an option list from a pair-array with specified option selected.- Parameters:
p_list
- An array containing the value-text-pairs.p_strSelectedText
- The text of the option that should be selected.- Returns:
- The option list.
-