Java Doc for HtmlDateComponent.java in  » J2EE » Sofia » com » salmonllc » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Sofia » com.salmonllc.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.


Field Summary
final public static  StringDMY_DISPLAY_FORMAT
    
final public static  StringMDY_DISPLAY_FORMAT
    
final public static  intMONTH_NAME_DIGIT
    
final public static  intMONTH_NAME_FULL
    
final public static  intMONTH_NAME_PARTIAL
    
final public static  StringYMD_DISPLAY_FORMAT
    
protected  GregorianCalendar_calendar
    
protected  HtmlContainer_cont
    
protected  String_displayFormat
    
protected  int_dsDataType
    
protected  DataStore_dsTemp
    
protected  DecimalFormat_formatMinutes
    
protected  int_iIndexOffset
    
protected  int_minuteInterval
    
protected  HtmlDropDownList_month_day_year_hour
    
protected  boolean_showHour
    
protected  int_startYear_endYear
    

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.

Method Summary
protected  StringbuildValueString(String month, String day, String year, String hour)
     generates the date.
public  voidclearDisplay()
     Clears fields within this control.
protected  StringformatTime(int minutes)
     Returns a formatted time for the specified minutes.
public  voidgenerateHTML(java.io.PrintWriter p, int row)
    
public  DategetDate()
     This method returns a Date value from the component.
public  TimestampgetDateTime()
     This method returns a Timestamp value from the component.
public  StringgetDay()
     This method returns the string value of the day subcomponent.
public  HtmlComponentgetFocus()
     Returns the sub-component to be used for setting focus.
public  StringgetHour()
     This method returns the string value of the hour subcomponent.
public  StringgetMonth()
     This method returns the string value of the month subcomponent.
protected  StringgetParmValue(Hashtable parms, HtmlComponent comp, int rowNo)
     Gets the value of the component from the parms hashtable based upon the component name & row no.
public  intgetTabIndex()
    
public  StringgetYear()
     This method returns the string value of the year subcomponent.
public  voidprocessLocaleInfo()
    
public  booleanprocessParms(Hashtable parms, int rowNo)
    
public  voidreset()
     This method will clear all pending events from the event queue for this component.
public  voidsetClassName(String sClass)
     Specifies the Style Class to be used for the Date Component.
public  voidsetColumn(DataStoreBuffer ds, int columnNo)
     Use this method to bind the component to a column in a DataStore.
public  voidsetDate(Date d)
     Sets the value of the component to the given date and display it.
public  voidsetDateTime(Timestamp t)
     Sets the value of the component to the given timestamp and display it.
public  voidsetDisabledFontEndTag(String tag)
     Sets the font end tag for disabled mode.
public  voidsetDisabledFontStartTag(String tag)
     Sets the font tag for disabled mode.
public  voidsetEnabled(boolean enabled)
     Enables or disables the ability of this component to respond to user input.
public  voidsetFocus()
     This method will set the edit focus to this component.
public  voidsetFocus(int row)
     This method will set the edit focus to this component for a particular row in a datastore.
public  voidsetOnChange(String onChange)
    
public  voidsetParent(HtmlComponent parent)
     Specifies the parent component for this Date Component.
public  voidsetTabIndex(int val)
    
Parameters:
  sets - the tab index html attribute.
public  voidsetTheme(String sTheme)
     This method sets the property theme for the component.
public  voidsetYearRange(int startYear, int endYear)
     Changes the drop-down for the year to encompass the given range.
protected  voidupdateDisplay()
    
public  voidupdateLocale()
    
protected  voidupdatePartialDisplay(String value)
    

Field Detail
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)



_calendar
protected GregorianCalendar _calendar(Code)



_cont
protected HtmlContainer _cont(Code)



_displayFormat
protected String _displayFormat(Code)



_dsDataType
protected int _dsDataType(Code)



_dsTemp
protected DataStore _dsTemp(Code)



_formatMinutes
protected DecimalFormat _formatMinutes(Code)



_iIndexOffset
protected int _iIndexOffset(Code)



_minuteInterval
protected int _minuteInterval(Code)



_month_day_year_hour
protected HtmlDropDownList _month_day_year_hour(Code)



_showHour
protected boolean _showHour(Code)



_startYear_endYear
protected int _startYear_endYear(Code)




Constructor Detail
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




Method Detail
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



generateHTML
public void generateHTML(java.io.PrintWriter p, int row) throws Exception(Code)



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)



processParms
public boolean processParms(Hashtable parms, int rowNo) throws Exception(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)



Fields inherited from com.salmonllc.html.HtmlFormComponent
final public static int FORCE_CASE_LOWER(Code)(Java Doc)
final public static int FORCE_CASE_NONE(Code)(Java Doc)
final public static int FORCE_CASE_UPPER(Code)(Java Doc)
final public static int TAB_INDEX_DEFAULT(Code)(Java Doc)
final public static int TAB_INDEX_NONE(Code)(Java Doc)
protected String _disabledFontEndTag(Code)(Java Doc)
protected String _disabledFontStartTag(Code)(Java Doc)
protected DataStoreBuffer _dsBuff(Code)(Java Doc)
protected int _dsColNo(Code)(Java Doc)
protected boolean _enabled(Code)(Java Doc)
protected Vector _events(Code)(Java Doc)
protected int _forceCase(Code)(Java Doc)
protected Vector _listeners(Code)(Java Doc)
protected String _value(Code)(Java Doc)

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)

Fields inherited from com.salmonllc.html.HtmlComponent
final public static int DISABLED_ATTRIBUTE_USE_NEVER(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_ON_SUPPORTED_BROWSERS(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_SYSTEM_DEFAULT(Code)(Java Doc)
final public static int EVENT_NONE(Code)(Java Doc)
final public static int EVENT_OTHER(Code)(Java Doc)
final public static int EVENT_SUBMIT(Code)(Java Doc)
protected String _class(Code)(Java Doc)
String _fullName(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
String _name(Code)(Java Doc)
protected HtmlComponent _parent(Code)(Java Doc)
protected boolean _visible(Code)(Java Doc)
final protected static boolean debug(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlComponent
public void doBinding() throws Exception(Code)(Java Doc)
public String encodeURL(String url)(Code)(Java Doc)
public StringBuffer encodeURL(StringBuffer url)(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public static String fixSpecialHTMLCharacters(String input)(Code)(Java Doc)
abstract public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
protected String generateImageURL()(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDataSource()(Code)(Java Doc)
public int getFormIndex()(Code)(Java Doc)
public String getFormString()(Code)(Java Doc)
public String getFullName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HtmlPage getPage()(Code)(Java Doc)
public HtmlComponent getParent()(Code)(Java Doc)
protected String getPortletNameSpace()(Code)(Java Doc)
protected String getSiteMapEntryName(String url)(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public int getUseDisabledAttribute()(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public boolean getVisible(boolean checkParents)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setClassName(String sClass)(Code)(Java Doc)
public void setDataSource(String dataSource)(Code)(Java Doc)
public void setFormIndex(int formIndex)(Code)(Java Doc)
public void setGenerateNewline(boolean enable)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPage(HtmlPage p)(Code)(Java Doc)
public void setParent(HtmlComponent parent)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setUseDisabledAttribute(int i)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String translateSiteMapURL(String url)(Code)(Java Doc)
protected boolean useDisabledAttribute()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.