| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlFormComponent com.salmonllc.html.HtmlStateComponent
HtmlStateComponent | public class HtmlStateComponent extends HtmlFormComponent (Code) | | Implements a drop down list that allows the user to select US states, Canadian Provinces or countries.
The name "state" is historical; it oringally only supported US states.
|
COUNTRIES | protected static String[][] COUNTRIES(Code) | | The countries, with their 2-letter ISO country codes, which are lower case
|
DEFAULT_LIST_TYPE | final public static String DEFAULT_LIST_TYPE(Code) | | |
LIST_STATESLIST_PROVINCESLIST_STATEPROVLIST_PROVSTATELIST_CANUSALIST_COUNTRIES | final protected static int LIST_STATESLIST_PROVINCESLIST_STATEPROVLIST_PROVSTATELIST_CANUSALIST_COUNTRIES(Code) | | |
PROVINCES | protected static String[][] PROVINCES(Code) | | The Canadian Provinces.
REFERENCE: gov't-run post office site http://www.canadapost.ca/tools/pcl/bin/default-e.asp,
|
STATES | protected static String[][] STATES(Code) | | The US States
|
listComparator | final static Comparator listComparator(Code) | | Compare entry names in one of the countries list, for sorting. Sorts by name, which is [1], not codes
which would be [0], on each row of the list.
|
listType | protected int listType(Code) | | |
HtmlStateComponent | public HtmlStateComponent(String name, HtmlPage page, boolean codesOnly)(Code) | | StateComponent constructor, using default list type.
Parameters: name - Name of component. Parameters: p - Page containing component. Parameters: codesonly - indicates whether to display codesonly on full state names. |
HtmlStateComponent | public HtmlStateComponent(String name, HtmlPage p, String listTypeName, boolean codesonly)(Code) | | StateComponent constructor specifying list type.
Parameters: name - Name of component. Parameters: p - Page containing component. Parameters: codesonly - indicates whether to display codesonly on full state names. |
getFocus | public HtmlComponent getFocus()(Code) | | Returns the sub-component to be used for setting focus.
com.salmonllc.html.HtmlComponent |
getTabIndex | public int getTabIndex()(Code) | | |
reset | public void reset()(Code) | | This method will clear all pending events from the event queue for this component.
|
setClassName | public void setClassName(String sClass)(Code) | | Specifies the Style Class to be used for the State 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.
Parameters: editable - boolean |
setParent | public void setParent(HtmlComponent parent)(Code) | | Specifies the parent component for this State 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 |
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 sTheme)(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)
|
|
|