| |
|
| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlFormComponent com.salmonllc.html.HtmlSSNSingleComponent
HtmlSSNSingleComponent | public class HtmlSSNSingleComponent extends HtmlFormComponent (Code) | | This class creates a component for the editing of a social security number as a single edit field.
|
Method Summary | |
public static String | formatValue(String s) This method returns the SSN of a user with proper format (i.e. | public void | generateHTML(java.io.PrintWriter p, int row) This method generates the part of the HTML for the page used to render the SSN component. | public String | getAccessKey() | public HtmlComponent | getFocus() This method returns the sub-component to be used for setting focus. | public String | getFormattedValue() This method returns the SSN of a user with proper format (i.e. | public boolean | getReadOnly() | public String | getSeparator() This method returns the seperator character for the social security number. | public int | getTabIndex() | public String | getValue() This method gets the value of the SSN# and returns it in a string format. | public boolean | isValid() This method checks to see if the user-entered value for the SSN# is valid. | public boolean | processParms(Hashtable parms, int rowNo) This method compares the contents of the SSN component with that in the corresponding row and column in the datastore to determine if a change has occurred. | public void | reset() This method will clear all pending events from the event queue for this component. | public void | setAccessKey(String val) | public void | setClassName(String sClass) This method is used to associate a specific set of properties from the properties file with the SSN component to change its presentation from the default one. | 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 | setEnabled(boolean enabled) This method enables or disables the ability of this component to respond to user input. | public void | setParent(HtmlComponent parent) This method sets the parent of the SSN component, i.e. | public void | setReadOnly(boolean val) | public void | setSeparator(String newSeparator) | public void | setTabIndex(int val) Parameters: sets - the tab index html attribute. | public void | setTheme(String theme) This method is used to associate a specific set of properties from the properties file with the SSN component to change its presentation from the default one. |
HtmlSSNSingleComponent | public HtmlSSNSingleComponent(String name, HtmlPage p)(Code) | | This is the constructor of this class, and initializes the SSN Component.
Parameters: name - java.lang.String Name of component. Parameters: p - HtmlPage Page containing component. |
formatValue | public static String formatValue(String s)(Code) | | This method returns the SSN of a user with proper format (i.e. with dashes).
Parameters: s - java.lang.String A string of the SSN value to be formatted. java.lang.String |
generateHTML | public void generateHTML(java.io.PrintWriter p, int row) throws Exception(Code) | | This method generates the part of the HTML for the page used to render the SSN component.
Parameters: p - java.io.PrintWriter Parameters: row - int |
getFocus | public HtmlComponent getFocus()(Code) | | This method returns the sub-component to be used for setting focus.
com.salmonllc.html.HtmlComponent |
getFormattedValue | public String getFormattedValue()(Code) | | This method returns the SSN of a user with proper format (i.e. with dashes).
java.lang.String |
getReadOnly | public boolean getReadOnly()(Code) | | |
getSeparator | public String getSeparator()(Code) | | This method returns the seperator character for the social security number.
|
getTabIndex | public int getTabIndex()(Code) | | |
getValue | public String getValue()(Code) | | This method gets the value of the SSN# and returns it in a string format.
java.lang.String |
isValid | public boolean isValid()(Code) | | This method checks to see if the user-entered value for the SSN# is valid.
boolean if the SSN# is valid. |
processParms | public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code) | | This method compares the contents of the SSN component with that in the corresponding row and column in the datastore to determine if a change has occurred.
Parameters: parms - Hashtable Parameters: rowNo - int boolean |
reset | public void reset()(Code) | | This method will clear all pending events from the event queue for this component.
|
setAccessKey | public void setAccessKey(String val)(Code) | | Parameters: sets - the access key html attribute |
setClassName | public void setClassName(String sClass)(Code) | | This method is used to associate a specific set of properties from the properties file with the SSN component to change its presentation from the default one.
Parameters: theme - java.lang.String |
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 |
setEnabled | public void setEnabled(boolean enabled)(Code) | | This method enables or disables the ability of this component to respond to user input.
Parameters: editable - boolean |
setParent | public void setParent(HtmlComponent parent)(Code) | | This method sets the parent of the SSN component, i.e. the component containing the SSN component, so that the component can be named properly.
Parameters: parent - HtmlComponent |
setReadOnly | public void setReadOnly(boolean val)(Code) | | Parameters: sets - the read only html attribute |
setSeparator | public void setSeparator(String newSeparator)(Code) | | This method sets the seperator character for the ssn
|
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 is used to associate a specific set of properties from the properties file with the SSN component to change its presentation from the default one.
Parameters: theme - java.lang.String |
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)
|
|
|
|