| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlFormComponent
All known Subclasses: com.salmonllc.html.HtmlEMailComponent, com.salmonllc.html.HtmlFontChooser, com.salmonllc.html.HtmlStateComponent, com.salmonllc.html.HtmlTriStateCheckBox, com.salmonllc.html.HtmlSSNSingleComponent, com.salmonllc.html.HtmlRadioButton, com.salmonllc.html.HtmlHiddenField, com.salmonllc.jsp.JspRowSelector, com.salmonllc.html.HtmlCheckBox, com.salmonllc.html.HtmlDropDownList, com.salmonllc.html.HtmlRadioButtonGroup, com.salmonllc.html.HtmlSSNComponent, com.salmonllc.wml.WmlFormComponent, com.salmonllc.html.HtmlZipCodeComponent, com.salmonllc.html.HtmlTextEdit, com.salmonllc.html.HtmlFormattedEntryComponent, com.salmonllc.html.HtmlListBox, com.salmonllc.html.HtmlRowSelector, com.salmonllc.html.HtmlTelephoneComponent, com.salmonllc.html.HtmlMultiListBox, com.salmonllc.html.HtmlColorChooser, com.salmonllc.html.HtmlDecimalComponent, com.salmonllc.html.HtmlFractionComponent, com.salmonllc.html.HtmlDateComponent, com.salmonllc.html.HtmlPasswordEdit, com.salmonllc.html.HtmlMultiLineTextEdit, com.salmonllc.html.HtmlRowHighlighter,
HtmlFormComponent | abstract public class HtmlFormComponent extends HtmlComponent (Code) | | This type is the base class for all Html Form Controls
|
Method Summary | |
protected void | addEvent(ValueChangedEvent e) | public void | addValueChangedListener(ValueChangedListener l) This method adds a listener the will be notified when the value in this component changes. | protected void | convertValue() This method converts the text value according to case conversion if necessary. | public boolean | executeEvent(int eventType) | protected int | findEvent(int rowNo) | protected void | generateAutoTabJavaScript(PrintWriter pw) | abstract public void | generateHTML(java.io.PrintWriter p, int row) | public DataStoreBuffer | getBoundDataStore() | public int | getColumnNumber() This method returns the number of the column in the data store that this component is bound to. | protected String | getDataStoreValue(int rowNo) | public String | getDisabledFontEndTag() Returns the end font tag for disabled mode. | public String | getDisabledFontStartTag() Returns the font start tag for disabled mode. | public String | getDisplayFormat() | public String | getDisplayFormatLocaleKey() | public boolean | getEnabled() Returns true if the component is enabled to respond to user input. | protected ValueChangedEvent | getEventAt(int index) | protected int | getEventCount() | public String | getJavaScriptName() | public String | getTheme() This method returns the property theme for the component. | public String | getValue() This method gets the value of the data in the component. | public String | getValue(int rowNo) This method gets the value of the data in the component at the specified row number. | protected String | getValue(int rowNo, boolean remove) This method gets the value of the data in the component at the specified row number. | public boolean | isEnabled() | public boolean | isValid() | protected void | processLocaleInfo() | protected void | removeEvent(int index) | public void | removeValueChangedListener(ValueChangedListener l) This method removes a listener from the list that will be notified if the text in the component changes. | public void | reset() This method will clear all pending events from the event queue for this component. | public void | setColumn(DataStoreBuffer ds, int columnNo) Use this method to bind the component to a column in a DataStore. | public void | setColumn(DataStoreBuffer ds, String columnName) Use this method to bind the component to a column in a DataStore. | public void | setDisabledFontEndTag(String tag) Sets the font end tag for disabled mode. | public void | setDisabledFontStartTag(String tag) Sets the font tag for disabled mode. | public void | setDisplayFormat(String format) Sets the Display format used by this component. | public void | setDisplayFormatLocaleKey(String formatLocaleKey) | public void | setEnabled(boolean enabled) Enables or disables the ability of this component to respond to user input. | public void | setEnabled(boolean enabled, boolean useDisableAttribute) Enables or disables the ability of this component to respond to user input. | public void | setFocus() This method will set the edit focus to this component. | public void | setFocus(boolean select) This method will set the edit focus to this component. | public void | setFocus(int row, boolean select) This method will set the edit focus to this component for a particular row in a datastore. | public void | setFocus(int row) This method will set the edit focus to this component for a particular row in a datastore. | public void | setForceCase(int mode) This method sets case-conversion mode for incoming text. | protected boolean | setTempValue(String value, int rowNo, int eventNo) | public void | setTheme(String theme) This method sets the property theme for the component. | public void | setValue(String value) This method sets the value of the component. | public void | setValue(String value, int rowNo) This method sets the value of the component at the specified row number. | public String | toString() This method returns the name of the component. | public void | updateLocale() | protected boolean | valuesEqual(Object newValue, Object oldValue) | protected void | writeFocusScript(java.io.PrintWriter p, int row) |
FORCE_CASE_LOWER | final public static int FORCE_CASE_LOWER(Code) | | |
FORCE_CASE_NONE | final public static int FORCE_CASE_NONE(Code) | | |
FORCE_CASE_UPPER | final public static int FORCE_CASE_UPPER(Code) | | |
TAB_INDEX_DEFAULT | final public static int TAB_INDEX_DEFAULT(Code) | | |
TAB_INDEX_NONE | final public static int TAB_INDEX_NONE(Code) | | |
_disabledFontEndTag | protected String _disabledFontEndTag(Code) | | |
_disabledFontStartTag | protected String _disabledFontStartTag(Code) | | |
_dsColNo | protected int _dsColNo(Code) | | |
_enabled | protected boolean _enabled(Code) | | |
_forceCase | protected int _forceCase(Code) | | |
HtmlFormComponent | public HtmlFormComponent(String name, HtmlPage p)(Code) | | HtmlFormComponent constructor.
Parameters: name - java.lang.String Parameters: p - com.salmonllc.html.HtmlPage |
HtmlFormComponent | public HtmlFormComponent(String name, String theme, HtmlPage p)(Code) | | HtmlFormComponent constructor
Parameters: name - java.lang.String Parameters: theme - The theme to use for loading properties. Parameters: p - com.salmonllc.html.HtmlPage |
addValueChangedListener | public void addValueChangedListener(ValueChangedListener l)(Code) | | This method adds a listener the will be notified when the value in this component changes.
Parameters: l - The listener to add. |
convertValue | protected void convertValue()(Code) | | This method converts the text value according to case conversion if necessary.
|
executeEvent | public boolean executeEvent(int eventType) throws Exception(Code) | | |
findEvent | protected int findEvent(int rowNo)(Code) | | |
generateAutoTabJavaScript | protected void generateAutoTabJavaScript(PrintWriter pw)(Code) | | Generates a script for form components to automatically tab to the next field
Parameters: pw - |
getBoundDataStore | public DataStoreBuffer getBoundDataStore()(Code) | | This method returns the datastore that this component is bound to
|
getColumnNumber | public int getColumnNumber()(Code) | | This method returns the number of the column in the data store that this component is bound to.
|
getDataStoreValue | protected String getDataStoreValue(int rowNo)(Code) | | Gets the value in the datastore bound to this component
|
getDisabledFontEndTag | public String getDisabledFontEndTag()(Code) | | Returns the end font tag for disabled mode.
java.lang.String |
getDisabledFontStartTag | public String getDisabledFontStartTag()(Code) | | Returns the font start tag for disabled mode.
java.lang.String |
getDisplayFormat | public String getDisplayFormat()(Code) | | Returns the Display format used by this component
|
getDisplayFormatLocaleKey | public String getDisplayFormatLocaleKey()(Code) | | Returns the Locale key used for display format
|
getEnabled | public boolean getEnabled()(Code) | | Returns true if the component is enabled to respond to user input.
boolean |
getEventCount | protected int getEventCount()(Code) | | |
getJavaScriptName | public String getJavaScriptName()(Code) | | Returns the name of this component would be referenced by if used in javascript code
|
getTheme | public String getTheme()(Code) | | This method returns the property theme for the component.
|
getValue | public String getValue()(Code) | | This method gets the value of the data in the component.
|
getValue | public String getValue(int rowNo)(Code) | | This method gets the value of the data in the component at the specified row number.
|
getValue | protected String getValue(int rowNo, boolean remove)(Code) | | This method gets the value of the data in the component at the specified row number.
|
isEnabled | public boolean isEnabled()(Code) | | |
isValid | public boolean isValid()(Code) | | |
processLocaleInfo | protected void processLocaleInfo()(Code) | | |
removeEvent | protected void removeEvent(int index)(Code) | | |
removeValueChangedListener | public void removeValueChangedListener(ValueChangedListener l)(Code) | | This method removes a listener from the list that will be notified if the text in the component changes.
Parameters: l - The listener to remove. |
reset | public void reset()(Code) | | This method will clear all pending events from the event queue for this component.
|
setColumn | public void setColumn(DataStoreBuffer ds, int columnNo)(Code) | | Use this method to bind the component to a column in a DataStore.
Parameters: ds - The datastore to bind to. Parameters: columnNo - The index of the column to bind to. |
setColumn | public void setColumn(DataStoreBuffer ds, String columnName)(Code) | | Use this method to bind the component to a column in a DataStore.
Parameters: ds - The datastore to bind to. Parameters: columnName - The name of the column to bind to. |
setDisabledFontEndTag | public void setDisabledFontEndTag(String tag)(Code) | | Sets the font end tag for disabled mode.
Parameters: tag - java.lang.String |
setDisabledFontStartTag | public void setDisabledFontStartTag(String tag)(Code) | | Sets the font tag for disabled mode.
Parameters: tag - java.lang.String |
setDisplayFormat | public void setDisplayFormat(String format)(Code) | | Sets the Display format used by this component. This only works if the component is bound to a Datastore column.
|
setDisplayFormatLocaleKey | public void setDisplayFormatLocaleKey(String formatLocaleKey)(Code) | | Sets the Locale key used for display format
|
setEnabled | public void setEnabled(boolean enabled)(Code) | | Enables or disables the ability of this component to respond to user input.
Parameters: enabled - boolean |
setEnabled | public void setEnabled(boolean enabled, boolean useDisableAttribute)(Code) | | Enables or disables the ability of this component to respond to user input.
Parameters: enabled - boolean Parameters: useDisableAttribute - whether to use the HTML disable attribute or not |
setFocus | public void setFocus()(Code) | | This method will set the edit focus to this component.
|
setFocus | public void setFocus(boolean select)(Code) | | This method will set the edit focus to this component.
If select is true it additionally highlights the input area of the component.
|
setFocus | public void setFocus(int row, boolean select)(Code) | | This method will set the edit focus to this component for a particular row in a datastore.
If select is true it additionally highlights the input area of the component.
|
setFocus | public void setFocus(int row)(Code) | | This method will set the edit focus to this component for a particular row in a datastore.
|
setForceCase | public void setForceCase(int mode)(Code) | | This method sets case-conversion mode for incoming text.
Parameters: mode - int One of FORCE_CASE_NONE, FORCE_CASE_UPPER, FORCE_CASE_LOWER. |
setTempValue | protected boolean setTempValue(String value, int rowNo, int eventNo)(Code) | | |
setTheme | public void setTheme(String theme)(Code) | | This method sets the property theme for the component.
Parameters: theme - The theme to use. |
setValue | public void setValue(String value)(Code) | | This method sets the value of the component.
|
setValue | public void setValue(String value, int rowNo)(Code) | | This method sets the value of the component at the specified row number.
|
toString | public String toString()(Code) | | This method returns the name of the component.
|
updateLocale | public void updateLocale()(Code) | | Updates the text and format for the current local
|
|
|