Package javaforce
Class HTML
java.lang.Object
javaforce.HTML
HTML.
Helper functions for generating HTML.
- Author:
- pquiring
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringinput_checkbox(String name, String id, boolean checked) Generate html.form.input[type=checkbox]static Stringinput_field(String name, String id, String value) Generate html.form.inputstatic StringGenerate html.form.select.static Stringselect(String name, String id, String[][] options, String selected_value, String selected_text, boolean show_default) Generate html.form.select.static StringGenerate HTML stack trace of exception.
-
Constructor Details
-
HTML
public HTML()
-
-
Method Details
-
input_field
Generate html.form.input- Parameters:
name- = element name (optional)id- = element id (optional)value- = default value (optional)
-
input_checkbox
Generate html.form.input[type=checkbox]- Parameters:
name- = element name (optional)id- = element id (optional)checked- = checkbox is initial checked
-
select
public static String select(String name, String id, String[][] options, String selected_value, String selected_text, boolean show_default) Generate html.form.select.- Parameters:
name- = element name (optional)id- = element id (optional)opts- = array[value, text]selected_value- = selected value (optional)selected_text- = selected text (optional)show_default- = include a null 'Select...' option
-
select
public static String select(String name, String id, String[][] options, String selected_value, String selected_text) Generate html.form.select. Invokes select() with show_default = true -
toString
Generate HTML stack trace of exception.
-