Class WysiwygSettings
- java.lang.Object
-
- com.jalios.jcms.taglib.settings.BasicSettings<T>
-
- com.jalios.jcms.taglib.settings.AbstractAreaSettings<WysiwygSettings>
-
- com.jalios.jcms.taglib.settings.impl.WysiwygSettings
-
- All Implemented Interfaces:
ControlSettings<WysiwygSettings>,java.lang.Cloneable
public class WysiwygSettings extends AbstractAreaSettings<WysiwygSettings>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIGURATION_IDstatic java.lang.StringDEFAULT_CONFIGURATION_IDstatic java.lang.StringPOPUP_EDITIONstatic java.lang.StringWORKSPACE-
Fields inherited from class com.jalios.jcms.taglib.settings.AbstractAreaSettings
ROWS
-
Fields inherited from class com.jalios.jcms.taglib.settings.BasicSettings
APPEND, ARIA_ATTR_PREFIX, ARIA_ATTRIBUTES, AUTOFOCUS, CLEAR_BUTTON, CSS, DATA_ATTR_PREFIX, DATA_ATTRIBUTES, DISABLED, HIDE_CLEAR_BUTTON, HTML_ATTRIBUTES, ID, LANGUAGE_CHOOSER, MAX_LENGTH, NAME, PLACEHOLDER, PREPEND, READONLY, REQUIRED, TITLE, TRIGGER_ACTION, TRIGGER_EVENT, VALUE
-
-
Constructor Summary
Constructors Constructor Description WysiwygSettings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddFrontEndDependencies(JcmsJspContext jcmsContext, java.lang.String configId)WysiwygSettingsconfigurationId(java.lang.String configId)Specify the ID of WYSIWYG configuration to use on the current control.static java.util.Map<java.lang.String,java.lang.Object>getGlobalOptions()Return the map of the options that are common to all WYSIWYG editors.protected WysiwygSettingsgetThis()Returns the exact type of the this reference.
It's a way to recover the type of thethisobject in a class hierarchy (cf.ControlTypegetType()Returns theControlTyperelated to the currentControlSettingsimplementation.WysiwygSettingsinline()Request the wysiwyg editor to be in TinyMCE inline mode.WysiwygSettingspopupEdition()Specify whether the WYSIWYG is displayed in popup edition mode.static voidresetGlobalOptions()Remove all global WYSIWYG options.voidresolveOptions(TypeFieldEntry tfe)Set options from the specifiedTypeFieldEntry.static voidsetGlobalOptions(java.util.Map<java.lang.String,java.lang.Object> globalOptions)Set the options that are common to all WYSIWYG editors.WysiwygSettingsworkspace(Workspace workspace)Specify the Workspace to use in the editor.WysiwygSettingsworkspace(java.lang.String workspaceId)Specify the Workspace to use in the editor.-
Methods inherited from class com.jalios.jcms.taglib.settings.AbstractAreaSettings
onChange, rows
-
Methods inherited from class com.jalios.jcms.taglib.settings.BasicSettings
addOption, append, aria, aria, autofocus, clearOption, clone, css, dataAttribute, dataAttribute, dataAttributes, disable, getOption, getOptionNames, htmlAttributes, htmlAttributes, id, isChannelReady, maxLength, merge, name, onFocusOut, placeholder, prepend, readonly, removeOption, require, showLanguageChooser, sortSet, title, toStringArray, toStringArray, toStringArray, toStringArray, toStringArray, trigger, value
-
-
-
-
Field Detail
-
DEFAULT_CONFIGURATION_ID
public static final java.lang.String DEFAULT_CONFIGURATION_ID
- See Also:
- Constant Field Values
-
CONFIGURATION_ID
public static final java.lang.String CONFIGURATION_ID
- See Also:
- Constant Field Values
-
POPUP_EDITION
public static final java.lang.String POPUP_EDITION
- See Also:
- Constant Field Values
-
WORKSPACE
public static final java.lang.String WORKSPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public ControlType getType()
Description copied from interface:ControlSettingsReturns theControlTyperelated to the currentControlSettingsimplementation.- Returns:
ControlType
-
getThis
protected WysiwygSettings getThis()
Description copied from class:BasicSettingsReturns the exact type of the this reference.
It's a way to recover the type of thethisobject in a class hierarchy (cf. getThis "trick").- Specified by:
getThisin classBasicSettings<WysiwygSettings>- Returns:
- The exact type of the this reference
-
resolveOptions
public void resolveOptions(TypeFieldEntry tfe)
Description copied from interface:ControlSettingsSet options from the specifiedTypeFieldEntry.- Specified by:
resolveOptionsin interfaceControlSettings<WysiwygSettings>- Overrides:
resolveOptionsin classAbstractAreaSettings<WysiwygSettings>- Parameters:
tfe-TypeFieldEntry
-
configurationId
public WysiwygSettings configurationId(java.lang.String configId)
Specify the ID of WYSIWYG configuration to use on the current control.- Parameters:
configId- WYSIWYG Configuration ID- Returns:
- a reference to this object - used to chain calls
-
popupEdition
public WysiwygSettings popupEdition()
Specify whether the WYSIWYG is displayed in popup edition mode.- Returns:
- a reference to this object - used to chain calls
-
workspace
public WysiwygSettings workspace(java.lang.String workspaceId)
Specify the Workspace to use in the editor.- Parameters:
workspaceId- Workspace ID- Returns:
- a reference to this object - used to chain calls
-
workspace
public WysiwygSettings workspace(Workspace workspace)
Specify the Workspace to use in the editor.- Parameters:
workspace- Workspace- Returns:
- a reference to this object - used to chain calls
-
setGlobalOptions
public static void setGlobalOptions(java.util.Map<java.lang.String,java.lang.Object> globalOptions)
Set the options that are common to all WYSIWYG editors.- Parameters:
globalOptions- Map of WYSIWYG options
-
getGlobalOptions
public static java.util.Map<java.lang.String,java.lang.Object> getGlobalOptions()
Return the map of the options that are common to all WYSIWYG editors.- Returns:
- Map of global WYSIWYG options
-
resetGlobalOptions
public static void resetGlobalOptions()
Remove all global WYSIWYG options.
-
inline
public WysiwygSettings inline()
Request the wysiwyg editor to be in TinyMCE inline mode.- Returns:
- a reference to this object - used to chain calls
- Since:
- jcms-10.0.5 / JCMS-8615
-
addFrontEndDependencies
public static void addFrontEndDependencies(JcmsJspContext jcmsContext, java.lang.String configId)
-
-