public abstract class StringLayoutChip extends AbstractAttributeEditorChip implements EventCheckingChip
| Modifier and Type | Field and Description |
|---|---|
static 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,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertValue(Object vbject)
Parses the given string value by calling
parse(String) and checks missing values for mandatory
attributes. |
Set |
getAcceptedEvents() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getQuotedStringValue() |
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 Object |
parse(String value)
Parses the given String into an Object.
|
void |
processEvents(Map events)
Converts and sets the given string value by calling
AbstractAttributeEditorChip.convertAndSetValue(Object)
. |
void |
setAlignRight(boolean alignRight) |
void |
setEncoded(boolean encoded) |
void |
setParameters(Map parameters)
Sets the parameters which where provided by the xml configuration.
|
protected abstract String |
toString(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 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, Object value)
public void setEncoded(boolean encoded)
public boolean isEncoded()
FALSE.public String getJSPURI()
Chippublic String getStringValue()
public boolean isDBEncrypted()
protected abstract Object parse(String value) throws ParseException
ParseExceptionprotected abstract String toString(Object value)
protected Object convertValue(Object vbject) throws Exception
parse(String) and checks missing values for mandatory
attributes.convertValue in class AbstractAttributeEditorChipvbject - the unconverted valueException - on any conversion errorAbstractAttributeEditorChip.getLastInvalidValue()public Set getAcceptedEvents()
getAcceptedEvents in interface EventCheckingChippublic void processEvents(Map events)
AbstractAttributeEditorChip.convertAndSetValue(Object)
.processEvents in interface Chippublic String getQuotedStringValue()
public boolean isAlignRight()
public void setAlignRight(boolean alignRight)
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.