org.jutil.text.html
Class InputDate

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.jutil.util.AttributesImpl
              extended by org.jutil.text.html.Element
                  extended by org.jutil.text.html.InputDate
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, java.util.Map, VersionedObject, Attributes

public class InputDate
extends Element

JSP usage: <% InputDate sdate = new InputDate(booking.getStartDate()); sdate.setAttribute("name", "juBkStartDate"); out.println(sdate.toString()); %> or <%=new InputDate(booking.getStartDate(), "juBkStartDate")%> request.getParameter("juBkStartDateDay"); request.getParameter("juBkStartDateMonth"); request.getParameter("juBkStartDateYear"); or request.getParameter("juDay"); request.getParameter("juMonth"); request.getParameter("juYear");

See Also:
Serialized Form

Field Summary
static java.lang.String DAY_SUFFIX
           
static java.lang.String MONTH_SUFFIX
           
static java.lang.String YEAR_SUFFIX
           
 
Constructor Summary
InputDate()
           
InputDate(java.util.Date date)
           
InputDate(java.util.Date date, java.lang.String name)
           
InputDate(java.util.Date date, java.lang.String name, java.util.Locale locale)
           
 
Method Summary
 void clearData()
           
 java.lang.Object getValue()
           
 Version getVersion()
          Overide the superclass getVersion() to return this sub classe's Version
 void readExternal(java.io.ObjectInput in)
           
 void removeAttribute(java.lang.String name)
           
 void setAttribute(java.lang.String name, java.lang.Object attr)
           
 void setValue(java.util.Date date, java.util.Locale locale)
           
 void setValue(java.lang.Object value)
           
 java.lang.String toString()
           
 java.lang.String toStringAttributes()
           
static java.sql.Date valueOf(java.lang.String juDay, java.lang.String juMonth, java.lang.String juYear)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.jutil.text.html.Element
setAttributes
 
Methods inherited from class org.jutil.util.AttributesImpl
clearAttributes, elements, getAttribute, getAttribute, keys, removeAttribute, setAttribute, size
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DAY_SUFFIX

public static final java.lang.String DAY_SUFFIX
See Also:
Constant Field Values

MONTH_SUFFIX

public static final java.lang.String MONTH_SUFFIX
See Also:
Constant Field Values

YEAR_SUFFIX

public static final java.lang.String YEAR_SUFFIX
See Also:
Constant Field Values
Constructor Detail

InputDate

public InputDate(java.util.Date date)

InputDate

public InputDate(java.util.Date date,
                 java.lang.String name)

InputDate

public InputDate(java.util.Date date,
                 java.lang.String name,
                 java.util.Locale locale)

InputDate

public InputDate()
Method Detail

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object attr)
Specified by:
setAttribute in interface Attributes
Overrides:
setAttribute in class AttributesImpl

removeAttribute

public void removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface Attributes
Overrides:
removeAttribute in class AttributesImpl

toStringAttributes

public java.lang.String toStringAttributes()
Overrides:
toStringAttributes in class Element

getValue

public java.lang.Object getValue()
Specified by:
getValue in class Element

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in class Element

setValue

public void setValue(java.util.Date date,
                     java.util.Locale locale)

clearData

public void clearData()
Specified by:
clearData in class Element

toString

public java.lang.String toString()
Specified by:
toString in class Element

valueOf

public static java.sql.Date valueOf(java.lang.String juDay,
                                    java.lang.String juMonth,
                                    java.lang.String juYear)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class Element
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class Element
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getVersion

public Version getVersion()
Overide the superclass getVersion() to return this sub classe's Version

Specified by:
getVersion in interface VersionedObject
Overrides:
getVersion in class Element