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
FieldsModifier and TypeFieldDescriptionprotected static final StringDefault direct edit include file URI for the jQuery direct edit provider.Fields inherited from class org.opencms.workplace.editors.directedit.CmsDirectEditDefaultProvider
m_lastPermissionModeFields 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_rndFields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHODFields inherited from interface org.opencms.workplace.editors.directedit.I_CmsDirectEditProvider
ATTRIBUTE_DIRECT_EDIT_PROVIDER, ATTRIBUTE_DIRECT_EDIT_PROVIDER_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the direct edit include HTML to insert in the page beginning.voidinit(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 CmsMacroResolverPrepares 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, isManualMethods 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:CmsDirectEditDefaultProviderReturns the direct edit include HTML to insert in the page beginning.t
- Overrides:
getDirectEditIncludesin 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_CmsDirectEditProviderInitialize method for a new instance of the direct edit provider.- Specified by:
initin interfaceI_CmsDirectEditProvider- Overrides:
initin 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_CmsDirectEditProviderCreates a new instance of this direct edit provider with the same basic configuration.- Specified by:
newInstancein interfaceI_CmsDirectEditProvider- Overrides:
newInstancein 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:CmsDirectEditDefaultProviderReturns the start HTML for a disabled direct edit button.- Overrides:
startDirectEditDisabledin 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:CmsDirectEditDefaultProviderReturns the start HTML for an enabled direct edit button.- Overrides:
startDirectEditEnabledin 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:CmsDirectEditDefaultProviderPrepares the macro resolver which is used to process the included text file.- Overrides:
prepareMacroResolverForIncludesin classCmsDirectEditDefaultProvider- Parameters:
params- the direct edit parameters- Returns:
- the macro resolver
- See Also:
-