Class CmsDirectEditJQueryProvider
java.lang.Object
org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider
org.opencms.workplace.editors.directedit.CmsDirectEditDefaultProvider
org.opencms.workplace.editors.directedit.CmsDirectEditJQueryProvider
- All Implemented Interfaces:
Cloneable
,I_CmsConfigurationParameterHandler
,I_CmsDirectEditProvider
Provider for the OpenCms graphical "direct edit" buttons.
Uses the JQuery library to create the buttons and place it to the correct position.
This provider DOES NOT support CmsDirectEditMode.MANUAL
mode.
- Since:
- 7.0.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Default direct edit include file URI for the jQuery direct edit provider.Fields inherited from class org.opencms.workplace.editors.directedit.CmsDirectEditDefaultProvider
m_lastPermissionMode
Fields inherited from class org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider
INCLUDE_FILE_DEFAULT, m_cms, m_configurationParameters, m_editButtonStyle, m_fileName, m_messages, m_mode, m_rnd
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
Fields inherited from interface org.opencms.workplace.editors.directedit.I_CmsDirectEditProvider
ATTRIBUTE_DIRECT_EDIT_PROVIDER, ATTRIBUTE_DIRECT_EDIT_PROVIDER_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the direct edit include HTML to insert in the page beginning.void
init
(CmsObject cms, CmsDirectEditMode mode, String fileName) Initialize method for a new instance of the direct edit provider.Creates a new instance of this direct edit provider with the same basic configuration.protected CmsMacroResolver
Prepares the macro resolver which is used to process the included text file.startDirectEditDisabled
(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo) Returns the start HTML for a disabled direct edit button.startDirectEditEnabled
(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo) Returns the start HTML for an enabled direct edit button.Methods inherited from class org.opencms.workplace.editors.directedit.CmsDirectEditDefaultProvider
endDirectEditDisabled, endDirectEditEnabled, getContentAsString, insertDirectEditEnd, insertDirectEditIncludes, insertDirectEditStart, isManual
Methods inherited from class org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider
addConfigurationParameter, getConfiguration, getLink, getNextDirectEditId, getResourceInfo, initConfiguration, insertDirectEditEmptyList, insertDirectEditListMetadata, print
-
Field Details
-
INCLUDE_FILE_JQUERY
Default direct edit include file URI for the jQuery direct edit provider.- See Also:
-
-
Constructor Details
-
CmsDirectEditJQueryProvider
public CmsDirectEditJQueryProvider()
-
-
Method Details
-
getDirectEditIncludes
Description copied from class:CmsDirectEditDefaultProvider
Returns the direct edit include HTML to insert in the page beginning.t
- Overrides:
getDirectEditIncludes
in classCmsDirectEditDefaultProvider
- Parameters:
params
- the parameters for the direct edit includes- Returns:
- the direct edit include HTML to insert in the page beginning
- See Also:
-
init
Description copied from interface:I_CmsDirectEditProvider
Initialize method for a new instance of the direct edit provider.- Specified by:
init
in interfaceI_CmsDirectEditProvider
- Overrides:
init
in classCmsDirectEditDefaultProvider
- Parameters:
cms
- the current users OpenCms contextmode
- the direct edit mode to usefileName
- link to a file that contains the direct edit HTML elements (optional)- See Also:
-
newInstance
Description copied from interface:I_CmsDirectEditProvider
Creates a new instance of this direct edit provider with the same basic configuration.- Specified by:
newInstance
in interfaceI_CmsDirectEditProvider
- Overrides:
newInstance
in classCmsDirectEditDefaultProvider
- Returns:
- a new instance of this direct edit provider with the same basic configuration
- See Also:
-
startDirectEditDisabled
public String startDirectEditDisabled(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo) Description copied from class:CmsDirectEditDefaultProvider
Returns the start HTML for a disabled direct edit button.- Overrides:
startDirectEditDisabled
in classCmsDirectEditDefaultProvider
- Parameters:
params
- the direct edit parametersresourceInfo
- contains information about the resource to edit- Returns:
- the start HTML for a disabled direct edit button
- See Also:
-
startDirectEditEnabled
public String startDirectEditEnabled(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo) Description copied from class:CmsDirectEditDefaultProvider
Returns the start HTML for an enabled direct edit button.- Overrides:
startDirectEditEnabled
in classCmsDirectEditDefaultProvider
- Parameters:
params
- the direct edit parametersresourceInfo
- contains information about the resource to edit- Returns:
- the start HTML for an enabled direct edit button
- See Also:
-
prepareMacroResolverForIncludes
Description copied from class:CmsDirectEditDefaultProvider
Prepares the macro resolver which is used to process the included text file.- Overrides:
prepareMacroResolverForIncludes
in classCmsDirectEditDefaultProvider
- Parameters:
params
- the direct edit parameters- Returns:
- the macro resolver
- See Also:
-