| |
|
| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlFormComponent com.salmonllc.html.HtmlTelephoneComponent
HtmlTelephoneComponent | public class HtmlTelephoneComponent extends HtmlFormComponent (Code) | | Creates a component for editing a telephone number
|
Constructor Summary | |
public | HtmlTelephoneComponent(String name, HtmlPage p) HtmlTelephoneComponent constructor comment. | public | HtmlTelephoneComponent(String name, HtmlPage p, String phoneSeparator, String areaCodeStart, String areaCodeEnd, boolean bApplyStyle) HtmlTelephoneComponent constructor comment.
Parameters: name - Name of component. Parameters: p - Page containing component. Parameters: phoneSeparator - character to display between the 3rd & 4th digit of the phone. Parameters: areaCodeStart - character to display before an area code Parameters: areaCodeEnd - character to display after an area code Parameters: bApplyStyle - boolean to elect to apply the style to the static elements of the phone component, i.e. |
_editAreaCode_editPhoneStart_editPhoneEnd | protected HtmlTextEdit _editAreaCode_editPhoneStart_editPhoneEnd(Code) | | |
HtmlTelephoneComponent | public HtmlTelephoneComponent(String name, HtmlPage p)(Code) | | HtmlTelephoneComponent constructor comment.
Parameters: name - Name of component. Parameters: p - Page containing component. |
HtmlTelephoneComponent | public HtmlTelephoneComponent(String name, HtmlPage p, String phoneSeparator, String areaCodeStart, String areaCodeEnd, boolean bApplyStyle)(Code) | | HtmlTelephoneComponent constructor comment.
Parameters: name - Name of component. Parameters: p - Page containing component. Parameters: phoneSeparator - character to display between the 3rd & 4th digit of the phone. Parameters: areaCodeStart - character to display before an area code Parameters: areaCodeEnd - character to display after an area code Parameters: bApplyStyle - boolean to elect to apply the style to the static elements of the phone component, i.e. ()- |
getApplyStyle | public boolean getApplyStyle()(Code) | | 10/01/03 - BYD - Added the option to not apply a style to the static elements of a telephone #
such as () and -
The main reason is to avoid unsightly border when border is added to style
Gets the Apply Style boolean
boolean |
getAreaCode | public String getAreaCode()(Code) | | Gets the Area code.
java.lang.String |
getAreaCodeStart | public java.lang.String getAreaCodeStart()(Code) | | Gets the Area code starting char.
java.lang.String |
getFocus | public HtmlComponent getFocus()(Code) | | Returns the sub-component to be used for setting focus.
com.salmonllc.html.HtmlComponent |
getFormattedValue | public String getFormattedValue()(Code) | | This method returns the formatted phone number provided that the component
contains a valid value otherwise it returns an empty string
java.lang.String |
getJavaScriptName | public String getJavaScriptName()(Code) | | Returns the name of this component would be referenced by if used in javascript code
|
getLastFour | public String getLastFour()(Code) | | Gets the last four digits.
java.lang.String |
getMiddleThree | public String getMiddleThree()(Code) | | Gets the middle three digits.
java.lang.String |
getPhone | public String getPhone()(Code) | | Gets the Phone Number.
java.lang.String |
getReadOnly | public boolean getReadOnly()(Code) | | |
getTabIndex | public int getTabIndex()(Code) | | |
getValue | public String getValue()(Code) | | Gets the current value of the control.
java.lang.String |
getVisible | public boolean getVisible()(Code) | | Returns whether component is visible or not.
Creation date: (7/19/01 8:41:20 AM)
boolean Indicates if component is visible or not. |
isAutoTab | public boolean isAutoTab()(Code) | | true if the component is set to automatically tab to next field |
isValid | public boolean isValid()(Code) | | Returns whether the Telephone Number entered is valid or not.
boolean Indicates whether Telephone Number is valid or not. |
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 |
setApplyStyle | public void setApplyStyle(boolean bApplyStyle)(Code) | | 10/01/03 - BYD - Added the option to not apply a style to the static elements of a telephone #
such as () and -
The main reason is to avoid unsightly border when border is added to style
Sets the Apply Style boolean for static elements of the phone component
Parameters: bApplyStyle - boolean |
setAreaCodeEnd | public void setAreaCodeEnd(java.lang.String newAreaCodeEnd)(Code) | | Replaces the area code end component
Parameters: newAreaCodeEnd - java.lang.String |
setAreaCodeStart | public void setAreaCodeStart(java.lang.String newAreaCodeStart)(Code) | | Replaces the area code start component
Parameters: newAreaCodeStart - java.lang.String |
setAutoTab | public void setAutoTab(boolean b)(Code) | | true if the component is set to automatically tab to next field |
setClassName | public void setClassName(String sClass)(Code) | | Specifies the Style Class to be used for the Telephone Component.
Creation date: (7/19/01 8:41:20 AM)
Parameters: sClass - java.lang.String A name of a class in Html to be used by this component |
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) | | Enables or disables the ability of this component to respond to user input.
|
setFocus | public void setFocus()(Code) | | This method will set the edit focus to this 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.
|
setParent | public void setParent(HtmlComponent parent)(Code) | | Specifies the parent component for this Telephone Component.
Creation date: (7/19/01 8:41:20 AM)
|
setPhoneSeparator | public void setPhoneSeparator(java.lang.String newPhoneSeparator)(Code) | | Replaces the separator between the phone numbers
Parameters: newPhoneSeparator - java.lang.String |
setReadOnly | public void setReadOnly(boolean val)(Code) | | Parameters: sets - the read only html attribute |
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) | | Sets the theme of the Telephone Component.
Creation date: (7/19/01 8:41:20 AM)
Parameters: theme - java.lang.String The theme of the component |
setVisible | public void setVisible(boolean visible)(Code) | | Sets the visibility of the component.
Creation date: (7/19/01 8:41:20 AM)
Parameters: visible - boolean Indicates the visibility of the component |
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)
|
|
|
|