Class CmsDirectEditTextButtonProvider
java.lang.Object
org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider
org.opencms.workplace.editors.directedit.CmsDirectEditDefaultProvider
org.opencms.workplace.editors.directedit.CmsDirectEditTextButtonProvider
- All Implemented Interfaces:
Cloneable
,I_CmsConfigurationParameterHandler
,I_CmsDirectEditProvider
Creates HTML for simple text based direct edit buttons.
This provider support CmsDirectEditMode.MANUAL
mode.
- Since:
- 6.2.3
-
Field Summary
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 end HTML for a disabled direct edit button.Returns the end HTML for an enabled direct edit button.boolean
isManual
(CmsDirectEditMode mode) Returnsfalse
because the default provider does not support manual button placement.Creates a new instance of this direct edit provider with the same basic configuration.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
getContentAsString, getDirectEditIncludes, init, insertDirectEditEnd, insertDirectEditIncludes, insertDirectEditStart, prepareMacroResolverForIncludes
Methods inherited from class org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider
addConfigurationParameter, getConfiguration, getLink, getNextDirectEditId, getResourceInfo, initConfiguration, insertDirectEditEmptyList, insertDirectEditListMetadata, print
-
Constructor Details
-
CmsDirectEditTextButtonProvider
public CmsDirectEditTextButtonProvider()
-
-
Method Details
-
endDirectEditDisabled
Description copied from class:CmsDirectEditDefaultProvider
Returns the end HTML for a disabled direct edit button.- Overrides:
endDirectEditDisabled
in classCmsDirectEditDefaultProvider
- Returns:
- the end HTML for a disabled direct edit button
- See Also:
-
endDirectEditEnabled
Description copied from class:CmsDirectEditDefaultProvider
Returns the end HTML for an enabled direct edit button.- Overrides:
endDirectEditEnabled
in classCmsDirectEditDefaultProvider
- Returns:
- the end HTML for an enabled direct edit button
- See Also:
-
isManual
Description copied from class:CmsDirectEditDefaultProvider
Returnsfalse
because the default provider does not support manual button placement.- Specified by:
isManual
in interfaceI_CmsDirectEditProvider
- Overrides:
isManual
in classCmsDirectEditDefaultProvider
- Parameters:
mode
- the mode of the current direct edit element- Returns:
true
if this provider (currently) operates in manual mode- 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:
-