public class DiffTextDisplayChip extends AbstractAttributeEditorChip implements DiffDisplayChip
markDiffs() method with own html representative
result.CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
DiffTextDisplayChip(DisplayState arg0,
Chip arg1) |
DiffTextDisplayChip(DisplayState arg0,
Chip arg1,
Object arg2) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDiff()
Returns the value to make a diff to.
|
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getOldValueEditorType() |
String |
getStringWithMarks() |
Object |
getValue()
If
isMarkDiff() returns true a diff value will returned. |
boolean |
isAjaxUpdatable()
Returns true if this editor chip is ajax updatable.
|
boolean |
isMarkDiff()
|
boolean |
isStringEditor()
Is the old value displayed by a textarea editor.
|
boolean |
isTextAreaEditor()
Is the old value displayed by a textarea editor.
|
boolean |
isWysiwygEditor()
Is the old value displayed by a wysiwyg editor.
|
protected String |
markDiffs()
In order to provide a richer difference between old and new value.
|
void |
processEvents(Map arg0)
Handles all incoming requests for this chip.
|
void |
setDiff(Object diff)
Set the value to make a diff to.
|
void |
setOldValueEditorType(String oldValueEditorType) |
addAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getEditorType, getFieldID, getHeight, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getWidth, isChanged, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setInitialValue, setMaxLength, setOptional, setParameters, 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, translateFormFieldToEventValuepublic DiffTextDisplayChip(DisplayState arg0, Chip arg1)
public DiffTextDisplayChip(DisplayState arg0, Chip arg1, Object arg2)
public boolean isMarkDiff()
public void processEvents(Map arg0)
ChipprocessEvents in interface ChipChip.processEvents(java.util.Map)public void setDiff(Object diff)
setDiff in interface DiffDisplayChippublic Object getDiff()
getDiff in interface DiffDisplayChippublic Object getValue()
isMarkDiff() returns true a diff value will returned. Otherwise the value as it
is.getValue in class AbstractAttributeEditorChipAbstractAttributeEditorChip.getValue()public String getStringWithMarks()
protected String markDiffs() throws IOException
IOExceptionpublic String getJSPURI()
ChipgetJSPURI in interface ChipChip.getJSPURI()public void setOldValueEditorType(String oldValueEditorType)
setOldValueEditorType in interface DiffDisplayChipDiffDisplayChip.setOldValueEditorType(java.lang.String)public String getOldValueEditorType()
getOldValueEditorType in interface DiffDisplayChipDiffDisplayChip.getOldValueEditorType()public boolean isWysiwygEditor()
public boolean isTextAreaEditor()
public boolean isStringEditor()
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.