| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlFormComponent com.salmonllc.html.HtmlDateComponent
HtmlDateComponent | public class HtmlDateComponent extends HtmlFormComponent (Code) | | Use this class to represent an SQL DATE or TIMESTAMP value as a series of drop-down
lists to support selection of year, month, day, and hour.
|
Constructor Summary | |
public | HtmlDateComponent(String name, HtmlPage p) HtmlDateComponent constructor. | public | HtmlDateComponent(String name, HtmlPage p, int nbrIntervals) HtmlDateComponent constructor.
Parameters: name - Component name. Parameters: p - Page containing the component. Parameters: nbrIntervals - For the hour component, break up the day into this many intervals.For example, 48 = half-hour intervals. | public | HtmlDateComponent(String name, HtmlPage p, int nbrIntervals, int iFromTime, int iToTime) HtmlDateComponent constructor.
Parameters: name - Component name. Parameters: p - Page containing the component. Parameters: nbrIntervals - For the hour component, break up the day into this many intervals.For example, 48 = half-hour intervals. | public | HtmlDateComponent(String name, HtmlPage p, int nbrIntervals, int iFromTime, int iToTime, int iFlag) HtmlDateComponent constructor.
Parameters: name - Component name. Parameters: p - Page containing the component. Parameters: nbrIntervals - For the hour component, break up the day into this many intervals.For example, 48 = half-hour intervals. |
DMY_DISPLAY_FORMAT | final public static String DMY_DISPLAY_FORMAT(Code) | | |
MDY_DISPLAY_FORMAT | final public static String MDY_DISPLAY_FORMAT(Code) | | |
MONTH_NAME_DIGIT | final public static int MONTH_NAME_DIGIT(Code) | | |
MONTH_NAME_FULL | final public static int MONTH_NAME_FULL(Code) | | |
MONTH_NAME_PARTIAL | final public static int MONTH_NAME_PARTIAL(Code) | | |
YMD_DISPLAY_FORMAT | final public static String YMD_DISPLAY_FORMAT(Code) | | |
_dsDataType | protected int _dsDataType(Code) | | |
_iIndexOffset | protected int _iIndexOffset(Code) | | |
_minuteInterval | protected int _minuteInterval(Code) | | |
_showHour | protected boolean _showHour(Code) | | |
_startYear_endYear | protected int _startYear_endYear(Code) | | |
HtmlDateComponent | public HtmlDateComponent(String name, HtmlPage p)(Code) | | HtmlDateComponent constructor. Hour component is divided into half-hour intervals.
Parameters: name - Component name. Parameters: p - Page containing the component. |
HtmlDateComponent | public HtmlDateComponent(String name, HtmlPage p, int nbrIntervals)(Code) | | HtmlDateComponent constructor.
Parameters: name - Component name. Parameters: p - Page containing the component. Parameters: nbrIntervals - For the hour component, break up the day into this many intervals.For example, 48 = half-hour intervals. 0 means do not display the hour component. |
HtmlDateComponent | public HtmlDateComponent(String name, HtmlPage p, int nbrIntervals, int iFromTime, int iToTime)(Code) | | HtmlDateComponent constructor.
Parameters: name - Component name. Parameters: p - Page containing the component. Parameters: nbrIntervals - For the hour component, break up the day into this many intervals.For example, 48 = half-hour intervals. 0 means do not display the hour component. Parameters: iFromTime - For the hour component, skip the hours before this time. Parameters: iToTime - For the hour component, skip the hours after this time.For example iFromTime = 7 and iToTime = 19 => display times only between 7AM to 7PM |
HtmlDateComponent | public HtmlDateComponent(String name, HtmlPage p, int nbrIntervals, int iFromTime, int iToTime, int iFlag)(Code) | | HtmlDateComponent constructor.
Parameters: name - Component name. Parameters: p - Page containing the component. Parameters: nbrIntervals - For the hour component, break up the day into this many intervals.For example, 48 = half-hour intervals. 0 means do not display the hour component. Parameters: iFromTime - For the hour component, skip the hours before this time. Parameters: iToTime - For the hour component, skip the hours after this time.For example iFromTime = 7 and iToTime = 19 => display times only between 7AM to 7PM |
buildValueString | protected String buildValueString(String month, String day, String year, String hour) throws DataStoreException(Code) | | generates the date.
java.lang.String Parameters: month - java.lang.String Parameters: day - java.lang.String Parameters: year - java.lang.String Parameters: hour - java.lang.String |
clearDisplay | public void clearDisplay()(Code) | | Clears fields within this control.
|
formatTime | protected String formatTime(int minutes)(Code) | | Returns a formatted time for the specified minutes.
java.lang.String Parameters: minutes - int |
getDate | public Date getDate()(Code) | | This method returns a Date value from the component.
java.sql.Date |
getDateTime | public Timestamp getDateTime()(Code) | | This method returns a Timestamp value from the component.
java.sql.Timestamp |
getDay | public String getDay()(Code) | | This method returns the string value of the day subcomponent.
String |
getFocus | public HtmlComponent getFocus()(Code) | | Returns the sub-component to be used for setting focus.
com.salmonllc.html.HtmlComponent |
getHour | public String getHour()(Code) | | This method returns the string value of the hour subcomponent.
String |
getMonth | public String getMonth()(Code) | | This method returns the string value of the month subcomponent.
January = 1, etc.
String |
getParmValue | protected String getParmValue(Hashtable parms, HtmlComponent comp, int rowNo)(Code) | | Gets the value of the component from the parms hashtable based upon the component name & row no.
|
getTabIndex | public int getTabIndex()(Code) | | |
getYear | public String getYear()(Code) | | This method returns the string value of the year subcomponent.
String |
processLocaleInfo | public void processLocaleInfo()(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 Date 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 |
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. |
setDate | public void setDate(Date d)(Code) | | Sets the value of the component to the given date and display it.
Parameters: d - New date value. |
setDateTime | public void setDateTime(Timestamp t)(Code) | | Sets the value of the component to the given timestamp and display it.
Parameters: t - New timestamp value. |
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: enabled - boolean |
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.
|
setOnChange | public void setOnChange(String onChange)(Code) | | Sets javascript that will fire when the user changes a value in the component
Parameters: onChange - |
setParent | public void setParent(HtmlComponent parent)(Code) | | Specifies the parent component for this Date Component.
Creation date: (7/19/01 8:41:20 AM)
|
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: sTheme - The theme to use. |
setYearRange | public void setYearRange(int startYear, int endYear)(Code) | | Changes the drop-down for the year to encompass the given range.
Parameters: startYear - Parameters: endYear - |
updateDisplay | protected void updateDisplay()(Code) | | |
updateLocale | public void updateLocale()(Code) | | Updates the month name for the current language
The language property file must have the following key structure
HtmlCalendar.month.short.0 to HtmlCalendar.month.short.11 represents the month short names from jan to dec
HtmlCalendar.month.long.0 to HtmlCalendar.month.long.11 represents the month long names from January to December
Author: Claudio Pi Gamba
Company: http://www.grupo-quanam.com
Email: claudio.pi@quanam.com.uy
|
updatePartialDisplay | protected void updatePartialDisplay(String value)(Code) | | |
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)
|
|
|