public class WysiwygEditorChip extends TextAreaLayoutChip
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONF |
static String |
DEFAULT_CSS |
static String |
DEFAULT_XML |
static String |
IS_CHANGED |
static String |
SCHEMA_URL |
SET_BASE64, SET_TEXTAREASET_VALUECUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
WysiwygEditorChip(DisplayState displayState,
Chip parent)
Creates a new instance of WysiwygEditorChip
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
clipboardContainsItem() |
boolean |
clipboardContainsMedia() |
String |
createLink()
Creates a link text that links/references to the given item.
|
Set |
getAcceptedEvents() |
Item |
getClipboardItem() |
String |
getClipboardMediaUrl() |
String |
getConfig() |
String |
getDefaultConfig() |
String |
getDefaultStyleSheet() |
String |
getDisplayContent() |
static String |
getEditorType() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getStyleSheet() |
String |
getToolbarConfig() |
String |
getXmlFile() |
boolean |
isAjaxUpdatable()
Returns true if this editor chip is ajax updatable.
|
protected 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 |
setConfig(String config) |
void |
setParameters(Map parameters)
sets parameters from hmc.xml
|
void |
setStyleSheet(String styleSheet)
Sets the stylesheet URL which is used in the wysiwyg editor
|
void |
setXmlFile(String xmlFile) |
protected boolean |
showButton(String buttonName)
Overwrite this method to make some checks whether a button is shown or not.
|
protected String |
toString(Object value)
Returns the given value as String.
|
getCols, getRows, isBase64, isExpanded, isMultiLine, isWrapping, setBase64, setCols, setExpanded, setRows, setWrappingconvertValue, getQuotedStringValue, getStringValue, isAlignRight, isDBEncrypted, isEncoded, setAlignRight, setEncodedaddAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, 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 SCHEMA_URL
public static final String DEFAULT_CSS
public static final String DEFAULT_XML
public static final String DEFAULT_CONF
public static final String IS_CHANGED
public WysiwygEditorChip(DisplayState displayState, Chip parent)
public static String getEditorType()
public void processEvents(Map events)
StringLayoutChipAbstractAttributeEditorChip.convertAndSetValue(Object)
.processEvents in interface ChipprocessEvents in class TextAreaLayoutChippublic Set getAcceptedEvents()
getAcceptedEvents in interface EventCheckingChipgetAcceptedEvents in class TextAreaLayoutChippublic void setParameters(Map parameters)
setParameters in class TextAreaLayoutChipparameters - the parameters which where provided by the xml configuration.public String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class TextAreaLayoutChipprotected boolean showButton(String buttonName)
buttonName - the name of the button to showtrue if the button should be displayed, false otherwise.public String getStyleSheet()
public void setStyleSheet(String styleSheet)
public String getXmlFile()
public void setXmlFile(String xmlFile)
public String getConfig()
public void setConfig(String config)
protected Object parse(String value) throws ParseException
StringLayoutChipparse in class StringLayoutChipParseExceptionprotected String toString(Object value)
StringLayoutChiptoString in class StringLayoutChippublic Item getClipboardItem()
public boolean clipboardContainsMedia()
public String getClipboardMediaUrl()
protected boolean clipboardContainsItem()
public String getDefaultConfig()
public String getDefaultStyleSheet()
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 StringLayoutChippublic String getDisplayContent()
public String createLink()
Utilities.createLink(de.hybris.platform.jalo.SessionContext, Item)public String getToolbarConfig()
Copyright © 2017 SAP SE. All Rights Reserved.