public class TimePeriodEditorChip extends AbstractAttributeEditorChip implements EventCheckingChip
Date providing a layout for inputting the time only.| Modifier and Type | Field and Description |
|---|---|
static String |
SET_TIME_VALUE |
CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
TimePeriodEditorChip(DisplayState displayState,
Chip parent) |
TimePeriodEditorChip(DisplayState displayState,
Chip parent,
Date value) |
TimePeriodEditorChip(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() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getScriptTimeFormat() |
String |
getStringValue() |
protected DateFormat |
getTimeOnlyFormat() |
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() |
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) |
addAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getEditorType, 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_TIME_VALUE
public TimePeriodEditorChip(DisplayState displayState, Chip parent)
public TimePeriodEditorChip(DisplayState displayState, Chip parent, Date value)
public TimePeriodEditorChip(DisplayState displayState, Chip parent, Object value)
public String getStringValue()
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 getTimeOnlyFormat()
public Set getAcceptedEvents()
getAcceptedEvents in interface EventCheckingChippublic void processEvents(Map events)
ChipprocessEvents in interface Chippublic String getJSPURI()
Chippublic String getScriptTimeFormat()
public boolean isChanged()
AbstractAttributeEditorChip.isChanged() to compensate for rounding errors.isChanged in class AbstractAttributeEditorChippublic int getTimeWidth()
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.