| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlFormComponent com.salmonllc.html.HtmlFormattedEntryComponent
HtmlFormattedEntryComponent | public class HtmlFormattedEntryComponent extends HtmlFormComponent (Code) | | This object creates text edit boxes to accept formated input like invoice number, Tax id etc...
In order to create a series of text boxes to accept "###-####-####-##" format, enter an array of
integers, {3,4,3,2}, in the contstructor, "lengthsOfFields".
This will create 4 text edit boxes with each size 3,4,4 and 2 characters.
|
HtmlFormattedEntryComponent | public HtmlFormattedEntryComponent(String name, int[] lengthsOfFields, HtmlPage p, String separator, boolean bEnableFlag)(Code) | | TaxIdComponent constructor comment.
Parameters: name - Name of component. Parameters: lengthsOfFields - An array of integers for the length of fields. Parameters: p - Page containing component. Parameters: separator - Character to display between the parts of the component Parameters: bEnableFlag - Flag to set the component to editable (true) or read only (false) |
getFocusComponent | public HtmlComponent getFocusComponent()(Code) | | Returns the sub-component to be used for setting focus.
com.salmonllc.html.HtmlComponent |
getFocusPart | public HtmlComponent getFocusPart(int iPartNo)(Code) | | Returns the sub-component to be used for setting focus.
com.salmonllc.html.HtmlComponent |
getFont | public String getFont()(Code) | | This method will return the font type used by this control.See the Constants at the top of the class for valid font types.
|
getFormattedValue | public String getFormattedValue()(Code) | | This method returns the formatted string provided that the component
contains a valid value otherwise it returns an empty string
|
getReadOnly | public boolean getReadOnly()(Code) | | |
getTabIndex | public int getTabIndex()(Code) | | |
getValue | public String getValue()(Code) | | This method returns the string provided that the component
contains a valid value otherwise it returns an empty string
|
getVisible | public boolean getVisible()(Code) | | This method sets the property theme for the component.
Parameters: theme - The theme to use. |
isValid | public boolean isValid()(Code) | | This methot checks if all rewuired fields entered. If not, sets the focus component to the component which generated the error.
|
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 |
setEnabled | public void setEnabled(boolean enabled)(Code) | | Enables or disables the ability of this component to respond to user input.
Parameters: editable - boolean |
setFont | public void setFont(String font)(Code) | | This method will load the font start and end tags from the page properties object.See the Constants at the top of the class for valid values to pass to this method.
|
setReadOnly | public void setReadOnly(boolean val)(Code) | | Parameters: sets - the read only html attribute |
setSeparator | public void setSeparator(java.lang.String newSeparator)(Code) | | Replaces the separator between the ssn numbers
Parameters: newSeparator - java.lang.String |
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. |
setVisible | public void setVisible(boolean visible)(Code) | | This method sets the property theme for the component.
Parameters: theme - The theme to use. |
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)
|
|
|