public abstract class StringLayoutChip extends AbstractAttributeEditorChip implements EventCheckingChip
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SET_VALUE
Event string for transfering the value.
|
CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
StringLayoutChip(DisplayState displayState,
Chip parent)
Constructor for creating a new string attribute chip for input of not inheritable values.
|
StringLayoutChip(DisplayState displayState,
Chip parent,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
convertValue(java.lang.Object vbject)
Parses the given string value by calling
parse(String) and checks missing values for mandatory
attributes. |
java.util.Set |
getAcceptedEvents() |
java.lang.String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
java.lang.String |
getQuotedStringValue() |
java.lang.String |
getStringValue()
Get the value of this chip as a string.
|
boolean |
isAjaxUpdatable()
Returns true if this editor chip is ajax updatable.
|
boolean |
isAlignRight() |
boolean |
isDBEncrypted() |
boolean |
isEncoded() |
protected abstract java.lang.Object |
parse(java.lang.String value)
Parses the given String into an Object.
|
void |
processEvents(java.util.Map events)
Converts and sets the given string value by calling
AbstractAttributeEditorChip.convertAndSetValue(Object)
. |
void |
setAlignRight(boolean alignRight) |
void |
setEncoded(boolean encoded) |
void |
setParameters(java.util.Map parameters)
Sets the parameters which where provided by the xml configuration.
|
protected abstract java.lang.String |
toString(java.lang.Object value)
Returns the given value as String.
|
addAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getEditorType, getFieldID, getHeight, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getValue, getWidth, isChanged, 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 StringLayoutChip(DisplayState displayState, Chip parent)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.public StringLayoutChip(DisplayState displayState, Chip parent, java.lang.Object value)
public void setEncoded(boolean encoded)
public boolean isEncoded()
FALSE.public java.lang.String getJSPURI()
Chippublic java.lang.String getStringValue()
public boolean isDBEncrypted()
protected abstract java.lang.Object parse(java.lang.String value)
throws java.text.ParseException
java.text.ParseExceptionprotected abstract java.lang.String toString(java.lang.Object value)
protected java.lang.Object convertValue(java.lang.Object vbject)
throws java.lang.Exception
parse(String) and checks missing values for mandatory
attributes.convertValue in class AbstractAttributeEditorChipvbject - the unconverted valuejava.lang.Exception - on any conversion errorAbstractAttributeEditorChip.getLastInvalidValue()public java.util.Set getAcceptedEvents()
getAcceptedEvents in interface EventCheckingChippublic void processEvents(java.util.Map events)
AbstractAttributeEditorChip.convertAndSetValue(Object)
.processEvents in interface Chippublic java.lang.String getQuotedStringValue()
public boolean isAlignRight()
public void setAlignRight(boolean alignRight)
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.