to.etc.domui.component.input
Class DateInput
java.lang.Object
to.etc.domui.dom.css.CssBase
to.etc.domui.dom.html.NodeBase
to.etc.domui.dom.html.Input
to.etc.domui.component.input.Text<java.util.Date>
to.etc.domui.component.input.DateInput
- All Implemented Interfaces:
- IModelBinding, IBindable, IConvertable<java.util.Date>, INodeErrorDelegate, IActionControl, IControl<java.util.Date>, IDisplayControl<java.util.Date>, IHasChangeListener, IHasModifiedIndication, IInputNode<java.util.Date>
public class DateInput
- extends Text<java.util.Date>
Date input component: this is an INPUT component with a button attached; pressing
the button shows a calendar which can be used to enter a date. The date input must
follow the converter rules for the locale. This version allows only a date.
- Author:
- Frits Jalvingh
Created on Jul 3, 2008
Nested classes/interfaces inherited from class to.etc.domui.component.input.Text |
Text.NumberMode |
Constructor Summary |
DateInput()
Default constructor creates a date-only input. |
DateInput(boolean withtime)
Create a date or dateTime input. |
Methods inherited from class to.etc.domui.component.input.Text |
acceptRequestParameter, addValidator, addValidator, addValidator, addValidator, bind, clearMessage, getConverter, getInputClass, getNumberMode, getRegexpUserString, getValidationRegexp, getValue, getValueSafe, hasError, isBound, isMandatory, isModified, isUntrimmed, setConverter, setMandatory, setModified, setNumberMode, setRegexpUserString, setUntrimmed, setValidationRegexp, setValue, validate |
Methods inherited from class to.etc.domui.dom.html.Input |
componentHandleWebAction, getInputType, getMaxLength, getOnKeyPressJS, getOnLookupTyping, getOnValueChanged, getRawValue, getSize, isDisabled, isReadOnly, setMaxLength, setOnKeyPressJS, setOnLookupTyping, setOnValueChanged, setRawValue, setSize, visit |
Methods inherited from class to.etc.domui.dom.html.NodeBase |
$, addCssClass, addGlobalMessage, afterCreateContent, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, build, changed, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, findComponentBundle, forceRebuild, getActualID, getAllocationTracepoint, getClicked, getComponentBundle, getCreateJS, getCssClass, getErrorDelegate, getErrorLocation, getMessage, getOnClickJS, getOnMouseDownJS, getPage, getParent, getParent, getParent, getSharedContext, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTitle, getUserObject, handleDrop, hasCssClass, internalClearDelta, internalClearDeltaFully, internalGetOldParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalOnValueChanged, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, internalShelve, internalUnshelve, isBuilt, isFocusRequested, isStretchHeight, moveControlToModel, moveModelToControl, onBeforeFullRender, onForceRebuild, onRefresh, onShelve, onUnshelve, refresh, remove, removeCssClass, renderJavascriptState, replaceWith, setClicked, setComponentBundle, setControlsEnabled, setCssClass, setErrorDelegate, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setSpecialAttribute, setStretchHeight, setTestID, setTitle, setUserObject, toString |
Methods inherited from class to.etc.domui.dom.css.CssBase |
getBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DateInput
public DateInput()
- Default constructor creates a date-only input.
DateInput
public DateInput(boolean withtime)
- Create a date or dateTime input.
- Parameters:
withtime
-
createContent
public void createContent()
throws java.lang.Exception
- Overrides:
createContent
in class NodeBase
- Throws:
java.lang.Exception
onAddedToPage
public void onAddedToPage(Page p)
- Overrides:
onAddedToPage
in class NodeBase
onRemoveFromPage
public void onRemoveFromPage(Page p)
- Overrides:
onRemoveFromPage
in class NodeBase
onHeaderContributors
public void onHeaderContributors(Page page)
- The calendar thingy requires calendar files.
FIXME See the comment in
Body#onHeaderContributors(Page)
- Overrides:
onHeaderContributors
in class NodeBase
- See Also:
NodeBase.onHeaderContributors(to.etc.domui.dom.html.Page)
setReadOnly
public void setReadOnly(boolean readOnly)
- Description copied from interface:
IControl
- Sets the input to readonly-mode. Components that do not implement readonly mode (comboboxes)
will usually set themselves to disabled which works much the same.
- Specified by:
setReadOnly
in interface IControl<java.util.Date>
- Overrides:
setReadOnly
in class Input
setDisabled
public void setDisabled(boolean disabled)
- Description copied from interface:
IActionControl
- Set the input to disabled mode.
- Specified by:
setDisabled
in interface IActionControl
- Overrides:
setDisabled
in class Input
isWithTime
public boolean isWithTime()
setWithTime
public void setWithTime(boolean withTime)
isWithSeconds
public boolean isWithSeconds()
setWithSeconds
public void setWithSeconds(boolean withSeconds)
isHideTodayButton
public boolean isHideTodayButton()
setHideTodayButton
public void setHideTodayButton(boolean hideTodayButton)