org.jutil.text.html
Class InputDate
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable
org.jutil.util.AttributesImpl
org.jutil.text.html.Element
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
|
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)
|
| 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 |
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
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()
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