com.oktiva.mogno.additional
Class DateInput

java.lang.Object
  extended bycom.oktiva.mogno.Component
      extended bycom.oktiva.mogno.Visual
          extended bycom.oktiva.mogno.html.Input
              extended bycom.oktiva.mogno.additional.DateInput
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
DateInputView

public class DateInput
extends Input


Field Summary
 java.lang.String format
          The format of the date.
 
Fields inherited from class com.oktiva.mogno.html.Input
accept, accesskey, alt, checked, dir, disabled, evOnChange, evOnClick, ismap, label, lang, maxlength, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, radiogroup, readonly, required, size, src, tabindex, type, uploadContentType, uploadInputStream, usemap, value, x, y
 
Fields inherited from class com.oktiva.mogno.Visual
evOnShow, evOnSyntaxError, gridHeight, gridWeightX, gridWeightY, gridWidth, id, lastError, left, parent, problematic, style, styleClass, title, top
 
Fields inherited from class com.oktiva.mogno.Component
bag, componentFiler, componentFilerParams, designing, eventQueue, evOnCreate, name, owned, ownedClasses, owner, tag, xmlFileName
 
Constructor Summary
DateInput()
          Creates a new instance of DateInput
 
Method Summary
 void checkSyntax()
          Check the syntax for this component.
 java.util.Date getDateValue()
          Return the value as an Date object.
 java.lang.String getFormat()
           
 java.util.GregorianCalendar getGregorianCalendarValue()
          Return the value as an GregorianCalendar object.
 java.util.Vector nonAttributeGetters()
          Method used to define what methods started with "get" or "is" are not component attributes getter methods.
 void receiveRequest(javax.servlet.http.HttpServletRequest request)
          Receive the request and rebuild the properties using the data that the user has filled in.
 void setDateValue(java.util.Date value)
          Set the value of the input passing a Date object
 void setFormat(java.lang.String format)
           
 void setValue(java.util.Date value)
           
 
Methods inherited from class com.oktiva.mogno.html.Input
getAccept, getAccesskey, getAlt, getChecked, getDir, getDisabled, getEvOnChange, getEvOnClick, getId, getIsmap, getLabel, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRadiogroup, getReadonly, getRequired, getSize, getSrc, getTabindex, getType, getUploadContentType, getUploadInputStream, getUsemap, getValue, getX, getY, htmlAttributes, setAccept, setAccesskey, setAlt, setChecked, setDir, setDisabled, setEvOnChange, setEvOnClick, setIsmap, setLabel, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRadiogroup, setReadonly, setRequired, setSize, setSrc, setTabindex, setType, setUploadContentType, setUploadInputStream, setUsemap, setValue, setX, setY, show
 
Methods inherited from class com.oktiva.mogno.Visual
buildHtmlAttributes, cellhalignHtmlAttributes, cellvalignHtmlAttributes, coreHtmlAttributes, descendentOf, eventsHtmlAttributes, getEvOnShow, getEvOnSyntaxError, getGridHeight, getGridWeightX, getGridWeightY, getGridWidth, getLastError, getLeft, getParent, getStyle, getStyleClass, getTitle, getTop, i18nHtmlAttributes, localizableAttributes, setEvOnShow, setEvOnSyntaxError, setGridHeight, setGridWeightX, setGridWeightY, setGridWidth, setId, setLastError, setLeft, setParent, setStyle, setStyleClass, setTitle, setTop, showHtmlAttributes
 
Methods inherited from class com.oktiva.mogno.Component
attribsHash, createOwnedComponents, dispatch, dispatchAll, dispatchFunction, eventParamTypes, eventParamValues, freeChild, getApplication, getAttrsTypes, getBag, getChild, getChildClass, getClone, getEvOnCreate, getFromBag, getName, getOrderedChildNames, getOwner, initialize, initialize, initialize, initialize, isDesigning, listChilds, putInBag, queue, registerChild, removeFromBag, serializedBag, setBag, setComponentFiler, setComponentFilerParams, setDesigning, setEvOnCreate, setName, setOwner, setProperties, store, unserializeBag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

public java.lang.String format
The format of the date.
Valid values are "dmy" and "ymd".

Constructor Detail

DateInput

public DateInput()
Creates a new instance of DateInput

Method Detail

getFormat

public java.lang.String getFormat()

setFormat

public void setFormat(java.lang.String format)

receiveRequest

public void receiveRequest(javax.servlet.http.HttpServletRequest request)
Description copied from class: Visual
Receive the request and rebuild the properties using the data that the user has filled in. This is a stub method

Overrides:
receiveRequest in class Input

checkSyntax

public void checkSyntax()
                 throws SyntaxErrorException
Description copied from class: Visual
Check the syntax for this component. This is a stub method.

Overrides:
checkSyntax in class Input
Throws:
SyntaxErrorException

getGregorianCalendarValue

public java.util.GregorianCalendar getGregorianCalendarValue()
                                                      throws SyntaxErrorException
Return the value as an GregorianCalendar object.

Throws:
SyntaxErrorException - If the content of the value attribute don't represent an valid GregorianCalendar.

getDateValue

public java.util.Date getDateValue()
                            throws SyntaxErrorException
Return the value as an Date object.
Convenience method that uses getGregorianCalendarValue().getTime()

Throws:
SyntaxErrorException - If the content of the value attribute don't represent an valid GregorianCalendar and Date.

setDateValue

public void setDateValue(java.util.Date value)
Set the value of the input passing a Date object


setValue

public void setValue(java.util.Date value)

nonAttributeGetters

public java.util.Vector nonAttributeGetters()
Description copied from class: Component
Method used to define what methods started with "get" or "is" are not component attributes getter methods.
This method in all subclasses of Component must start with the following line:
Vector v = super.nonAttributeGetters();
and end with the following:
return v;

Overrides:
nonAttributeGetters in class Input