public class DateTimeEditorChip extends AbstractAttributeEditorChip implements EventCheckingChip
Date providing a layout for inputing the time and the date.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DIVIDER |
static java.lang.String |
SET_TIME_VALUE |
static java.lang.String |
SET_VALUE |
CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
DateTimeEditorChip(DisplayState displayState,
Chip parent) |
DateTimeEditorChip(DisplayState displayState,
Chip parent,
java.util.Date value) |
DateTimeEditorChip(DisplayState displayState,
Chip parent,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
convertValue(java.lang.Object object)
Override this method to convert the input value (e.g.
|
java.util.Set |
getAcceptedEvents() |
protected java.text.DateFormat |
getDateOnlyFormat() |
java.lang.String |
getDatePattern() |
protected java.text.DateFormat |
getDateTimeFormat() |
java.util.Date |
getDateValue() |
int |
getDateWidth()
Returns the width of the date editor.
|
static java.lang.String |
getEditorType() |
java.lang.String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
java.lang.String |
getScriptDateFormat() |
java.lang.String |
getScriptTimeFormat() |
java.lang.String |
getStringDateValue() |
java.lang.String |
getStringTimeValue() |
int |
getTimeWidth()
Returns the width of the time editor.
|
boolean |
isAjaxUpdatable()
Returns true if this editor chip is ajax updatable.
|
boolean |
isChanged()
Overrides
AbstractAttributeEditorChip.isChanged() to compensate for rounding errors. |
boolean |
isShowPattern() |
boolean |
isWrapValues()
Returns true if the date and time editors should appear below each other.
|
void |
processEvents(java.util.Map events)
Handles all incoming requests for this chip.
|
void |
setParameters(java.util.Map parameters)
Sets the parameters which where provided by the xml configuration.
|
void |
setShowPattern(boolean showPattern) |
void |
setWrapValues(boolean wrap)
Set to true if the date and time editors should appear below each other.
|
addAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getFieldID, getHeight, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getValue, getWidth, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setInitialValue, setMaxLength, setOptional, setValidValue, setValue, setWidth, valuesAreDifferentaddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, checkValid, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getMenuEntries, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final java.lang.String SET_VALUE
public static final java.lang.String SET_TIME_VALUE
public static final java.lang.String DIVIDER
public DateTimeEditorChip(DisplayState displayState, Chip parent)
public DateTimeEditorChip(DisplayState displayState, Chip parent, java.util.Date value)
public DateTimeEditorChip(DisplayState displayState, Chip parent, java.lang.Object value)
public java.util.Date getDateValue()
protected java.lang.Object convertValue(java.lang.Object object)
throws java.lang.Exception
AbstractAttributeEditorChipAs default this method just passes the given value unchecked.
convertValue in class AbstractAttributeEditorChipobject - the unconverted valuejava.lang.Exception - on any conversion errorAbstractAttributeEditorChip.getLastInvalidValue()protected java.text.DateFormat getDateTimeFormat()
protected java.text.DateFormat getDateOnlyFormat()
public java.lang.String getDatePattern()
public java.lang.String getStringTimeValue()
public java.lang.String getStringDateValue()
public java.util.Set getAcceptedEvents()
getAcceptedEvents in interface EventCheckingChippublic void processEvents(java.util.Map events)
ChipprocessEvents in interface Chippublic java.lang.String getJSPURI()
Chippublic java.lang.String getScriptDateFormat()
public java.lang.String getScriptTimeFormat()
public static java.lang.String getEditorType()
public boolean isChanged()
AbstractAttributeEditorChip.isChanged() to compensate for rounding errors.isChanged in class AbstractAttributeEditorChippublic boolean isWrapValues()
public void setWrapValues(boolean wrap)
wrap - true if the date and time editors should appear below each other.public int getTimeWidth()
public int getDateWidth()
public boolean isShowPattern()
public void setShowPattern(boolean showPattern)
public void setParameters(java.util.Map parameters)
AbstractAttributeEditorChipsetParameters in class AbstractAttributeEditorChipparameters - the parameters which where provided by the xml configuration.public boolean isAjaxUpdatable()
AbstractAttributeEditorChipLocalizableAttributeChip to indicate
that the editorchip's jsp only uses the usual form input elements and no other special functionality to update its
values (like the wysiwyg editor which uses the 'onsubmit' handler to update its value).isAjaxUpdatable in class AbstractAttributeEditorChipCopyright © 2017 SAP SE. All Rights Reserved.