| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlFormComponent com.salmonllc.html.HtmlRadioButtonGroup
HtmlRadioButtonGroup | public class HtmlRadioButtonGroup extends HtmlFormComponent (Code) | | This class is used to create a group of radio buttons that act like a single entity.
|
Method Summary | |
public void | addOption(String key, String disp) Use this method to add new choices to the list. | public void | addOption(String key, String disp, String javaScript) Use this method to add new choices to the list. | public int | findOptionIndexOf(String key) This method returns the index of the option with the specified key. | public void | generateHTML(java.io.PrintWriter p, int rowNo) | public void | generateHTMLDisabled(java.io.PrintWriter p, int rowNo) | public int | getCaptionLayout() Returns the caption layout of the component. | public String | getFontEndTag() This method gets the end font tag for the component. | public String | getFontStartTag() This method gets the start font tag for the component. | public String | getOnClick() This method gets the javascript to be executed when the component gets clicked. | public String | getOptionKey(int index) Use this method get the value of the key at index. | public String | getOptionValue(int index) Use this method get the value of the option at index. | public int | getOrientation() Returns the orientation of the component. | public int | getSelectedIndex() Returns the index of the selected option. | public int | getSelectedIndex(int rowNo) Returns the index of the selected option. | public boolean | getUseProportions() | public void | initialize(String table, String keyColumn, String dispColumn, String criteria) | public void | initialize(String table, String keyColumn, String dispColumn, String criteria, boolean trimResults) | public void | initialize(String table, String keyColumn, String dispColumn, String criteria, boolean trimResults, boolean toUpper) | public boolean | processParms(Hashtable parms, int rowNo) | public void | removeOption(int index) Use this method to remove an option from the list. | public void | resetOptions() This method removes all options from the component. | public void | setCaptionLayout(int layout) Sets the caption layout of the component. | public void | setCaptionLayout(String layout) | public void | setFontEndTag(String value) This method sets the end font tag for the component. | public void | setFontStartTag(String value) This method sets the start font tag for the component. | public void | setOnClick(String value) This method sets the javascript to be executed when the component is checked. | public void | setOrientation(int orientation) Sets the orientation of the component. | public void | setOrientation(String orientation) | public void | setTabIndex(int val) Parameters: sets - the tab index html attribute. | public void | setTheme(String theme) This method sets the property theme for the component. | public void | setUseProportions(boolean use) |
CAPTIONS_ON_LEFT | final public static int CAPTIONS_ON_LEFT(Code) | | |
CAPTIONS_ON_RIGHT | final public static int CAPTIONS_ON_RIGHT(Code) | | |
CAPTIONS_ON_TOP | final public static int CAPTIONS_ON_TOP(Code) | | |
ORIENTATION_HORIZONTAL | final public static int ORIENTATION_HORIZONTAL(Code) | | |
ORIENTATION_VERTICAL | final public static int ORIENTATION_VERTICAL(Code) | | |
HtmlRadioButtonGroup | public HtmlRadioButtonGroup(String name, HtmlPage p)(Code) | | Constructs a new HtmlRadioButtonGroup component.
Parameters: name - The name of the component Parameters: p - The page the component will be placed in. |
HtmlRadioButtonGroup | public HtmlRadioButtonGroup(String name, String theme, HtmlPage p)(Code) | | Constructs a new HtmlRadioButtonGroup component.
Parameters: name - The name of the component Parameters: theme - The theme to use for loading properties. Parameters: p - The page the component will be placed in. |
HtmlRadioButtonGroup | public HtmlRadioButtonGroup(String name, String theme, HtmlPage page, String table, String keyColumn, String dispColumn)(Code) | | Creates a radio button group plus an associated datastore column based on a simple table with an
integer primary key column and a string column. Typically the integer is a type value
and the string is a description. A simplifying assumption is that each of the following
is the same:
- name of column in the main table which refers to the simple table
- name of integer column in simple table
Parameters: page - com.salmonllc.html.HtmlPage The page hold the new component Parameters: table - - name of table to look up keys and displays from Parameters: keyColumn - - column to get key values from Parameters: dispColumn - - column to get display values from |
addOption | public void addOption(String key, String disp)(Code) | | Use this method to add new choices to the list.
Parameters: key - The internal name of the item (must be unique) Parameters: disp - The value to be displayed on the list. |
addOption | public void addOption(String key, String disp, String javaScript)(Code) | | Use this method to add new choices to the list.
Parameters: key - The internal name of the item (must be unique) Parameters: disp - The value to be displayed on the list. Parameters: javaScript - The javaScript to be executed when the radio button is clicked. |
findOptionIndexOf | public int findOptionIndexOf(String key)(Code) | | This method returns the index of the option with the specified key.
The index of the key or -1 if not found. |
getCaptionLayout | public int getCaptionLayout()(Code) | | Returns the caption layout of the component. Valid Values are CAPTIONS_ON_LEFT, CAPTIONS_ON_RIGHT and CAPTIONS_ON_TOP.
|
getFontEndTag | public String getFontEndTag()(Code) | | This method gets the end font tag for the component.
|
getFontStartTag | public String getFontStartTag()(Code) | | This method gets the start font tag for the component.
|
getOnClick | public String getOnClick()(Code) | | This method gets the javascript to be executed when the component gets clicked.
|
getOptionKey | public String getOptionKey(int index)(Code) | | Use this method get the value of the key at index.
|
getOptionValue | public String getOptionValue(int index)(Code) | | Use this method get the value of the option at index.
|
getOrientation | public int getOrientation()(Code) | | Returns the orientation of the component. Valid Values are ORIENTATION_VERTICAL and ORIENTATION_HORIZONTAL.
|
getSelectedIndex | public int getSelectedIndex()(Code) | | Returns the index of the selected option.
|
getSelectedIndex | public int getSelectedIndex(int rowNo)(Code) | | Returns the index of the selected option.
|
getUseProportions | public boolean getUseProportions()(Code) | | Returns whether or not to use a fixed percent of available space for each button in the radio button group (Horizontal Orientation only)
|
initialize | public void initialize(String table, String keyColumn, String dispColumn, String criteria)(Code) | | Creates a radio button group based on a table with an
integer primary key column (typically an id) and a string column.
A simplifying assumption is that each of the following
is the same:
- name of column in the main table which refers to the simple table
- name of integer column in simple table
Parameters: table - - name of table to look up keys and displays from Parameters: keyColumn - - column to get key values from Parameters: dispColumn - - column to get display values from Parameters: criteria - - optional selection criteria |
initialize | public void initialize(String table, String keyColumn, String dispColumn, String criteria, boolean trimResults)(Code) | | Creates a radio button group based on a table with an
integer primary key column (typically an id) and a string column.
A simplifying assumption is that each of the following
is the same:
- name of column in the main table which refers to the simple table
- name of integer column in simple table
Parameters: table - - name of table to look up keys and displays from Parameters: keyColumn - - column to get key values from Parameters: dispColumn - - column to get display values from Parameters: criteria - - optional selection criteria Parameters: trimResults - - optional value that trims the rtesults before adding the options |
initialize | public void initialize(String table, String keyColumn, String dispColumn, String criteria, boolean trimResults, boolean toUpper)(Code) | | Creates a radio button group based on a table with an
integer primary key column (typically an id) and a string column.
A simplifying assumption is that each of the following
is the same:
- name of column in the main table which refers to the simple table
- name of integer column in simple table
Parameters: table - - name of table to look up keys and displays from Parameters: keyColumn - - column to get key values from Parameters: dispColumn - - column to get display values from Parameters: criteria - - optional selection criteria Parameters: trimResults - - optional value that trims the rtesults before adding the options Parameters: toUpper - - optional value that makes the option's kays and display values all upper case |
removeOption | public void removeOption(int index)(Code) | | Use this method to remove an option from the list.
Parameters: index - The index of the option to remove. |
resetOptions | public void resetOptions()(Code) | | This method removes all options from the component.
|
setCaptionLayout | public void setCaptionLayout(int layout)(Code) | | Sets the caption layout of the component. Valid Values are CAPTIONS_ON_LEFT, CAPTIONS_ON_RIGHT and CAPTIONS_ON_TOP.
|
setCaptionLayout | public void setCaptionLayout(String layout)(Code) | | This method sets the layout property for the component
|
setFontEndTag | public void setFontEndTag(String value)(Code) | | This method sets the end font tag for the component.
|
setFontStartTag | public void setFontStartTag(String value)(Code) | | This method sets the start font tag for the component.
|
setOnClick | public void setOnClick(String value)(Code) | | This method sets the javascript to be executed when the component is checked.
|
setOrientation | public void setOrientation(int orientation)(Code) | | Sets the orientation of the component. Valid Values are ORIENTATION_VERTICAL and ORIENTATION_HORIZONTAL.
|
setOrientation | public void setOrientation(String orientation)(Code) | | This method sets the orientation property for the component
|
setTabIndex | public void setTabIndex(int val)(Code) | | Parameters: sets - the tab index html attribute. You can also pass TAB_INDEX_DEFAULT to use the default tab index for the component or TAB_INDEX_NONE to keep this component from being tabbed to |
setTheme | public void setTheme(String theme)(Code) | | This method sets the property theme for the component.
Parameters: theme - The theme to use. |
setUseProportions | public void setUseProportions(boolean use)(Code) | | This method is used to set whether the each button in the group will occupy a fixed percent available space (Horizontal Orientation only)
|
Methods inherited from com.salmonllc.html.HtmlFormComponent | protected void addEvent(ValueChangedEvent e)(Code)(Java Doc) public void addValueChangedListener(ValueChangedListener l)(Code)(Java Doc) protected void convertValue()(Code)(Java Doc) public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc) protected int findEvent(int rowNo)(Code)(Java Doc) protected void generateAutoTabJavaScript(PrintWriter pw)(Code)(Java Doc) abstract public void generateHTML(java.io.PrintWriter p, int row) throws Exception(Code)(Java Doc) public DataStoreBuffer getBoundDataStore()(Code)(Java Doc) public int getColumnNumber()(Code)(Java Doc) protected String getDataStoreValue(int rowNo)(Code)(Java Doc) public String getDisabledFontEndTag()(Code)(Java Doc) public String getDisabledFontStartTag()(Code)(Java Doc) public String getDisplayFormat()(Code)(Java Doc) public String getDisplayFormatLocaleKey()(Code)(Java Doc) public boolean getEnabled()(Code)(Java Doc) protected ValueChangedEvent getEventAt(int index)(Code)(Java Doc) protected int getEventCount()(Code)(Java Doc) public String getJavaScriptName()(Code)(Java Doc) public String getTheme()(Code)(Java Doc) public String getValue()(Code)(Java Doc) public String getValue(int rowNo)(Code)(Java Doc) protected String getValue(int rowNo, boolean remove)(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isValid()(Code)(Java Doc) protected void processLocaleInfo()(Code)(Java Doc) protected void removeEvent(int index)(Code)(Java Doc) public void removeValueChangedListener(ValueChangedListener l)(Code)(Java Doc) public void reset()(Code)(Java Doc) public void setColumn(DataStoreBuffer ds, int columnNo)(Code)(Java Doc) public void setColumn(DataStoreBuffer ds, String columnName)(Code)(Java Doc) public void setDisabledFontEndTag(String tag)(Code)(Java Doc) public void setDisabledFontStartTag(String tag)(Code)(Java Doc) public void setDisplayFormat(String format)(Code)(Java Doc) public void setDisplayFormatLocaleKey(String formatLocaleKey)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setEnabled(boolean enabled, boolean useDisableAttribute)(Code)(Java Doc) public void setFocus()(Code)(Java Doc) public void setFocus(boolean select)(Code)(Java Doc) public void setFocus(int row, boolean select)(Code)(Java Doc) public void setFocus(int row)(Code)(Java Doc) public void setForceCase(int mode)(Code)(Java Doc) protected boolean setTempValue(String value, int rowNo, int eventNo)(Code)(Java Doc) public void setTheme(String theme)(Code)(Java Doc) public void setValue(String value)(Code)(Java Doc) public void setValue(String value, int rowNo)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void updateLocale()(Code)(Java Doc) protected boolean valuesEqual(Object newValue, Object oldValue)(Code)(Java Doc) protected void writeFocusScript(java.io.PrintWriter p, int row)(Code)(Java Doc)
|
|
|