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 String |
DIVIDER |
static String |
SET_TIME_VALUE |
static 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,
Date value) |
DateTimeEditorChip(DisplayState displayState,
Chip parent,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertValue(Object object)
Override this method to convert the input value (e.g.
|
Set |
getAcceptedEvents() |
protected DateFormat |
getDateOnlyFormat() |
String |
getDatePattern() |
protected DateFormat |
getDateTimeFormat() |
Date |
getDateValue() |
int |
getDateWidth()
Returns the width of the date editor.
|
static String |
getEditorType() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getScriptDateFormat() |
String |
getScriptTimeFormat() |
String |
getStringDateValue() |
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(Map events)
Handles all incoming requests for this chip.
|
void |
setParameters(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 String SET_VALUE
public static final String SET_TIME_VALUE
public static final String DIVIDER
public DateTimeEditorChip(DisplayState displayState, Chip parent)
public DateTimeEditorChip(DisplayState displayState, Chip parent, Date value)
public DateTimeEditorChip(DisplayState displayState, Chip parent, Object value)
public Date getDateValue()
protected Object convertValue(Object object) throws Exception
AbstractAttributeEditorChipAs default this method just passes the given value unchecked.
convertValue in class AbstractAttributeEditorChipobject - the unconverted valueException - on any conversion errorAbstractAttributeEditorChip.getLastInvalidValue()protected DateFormat getDateTimeFormat()
protected DateFormat getDateOnlyFormat()
public String getDatePattern()
public String getStringTimeValue()
public String getStringDateValue()
public Set getAcceptedEvents()
getAcceptedEvents in interface EventCheckingChippublic void processEvents(Map events)
ChipprocessEvents in interface Chippublic String getJSPURI()
Chippublic String getScriptDateFormat()
public String getScriptTimeFormat()
public static 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(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.