Package org.opencms.ui.client
Class CmsPropertyDialogExtensionConnector.ContextMenuHandler
java.lang.Object
org.opencms.ui.client.CmsPropertyDialogExtensionConnector.ContextMenuHandler
- All Implemented Interfaces:
- I_CmsActionHandler,- I_CmsContextMenuHandler
- Enclosing class:
- CmsPropertyDialogExtensionConnector
public class CmsPropertyDialogExtensionConnector.ContextMenuHandler
extends Object
implements I_CmsContextMenuHandler
Context menu handler.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidensureLockOnResource(org.opencms.util.CmsUUID structureId, I_CmsSimpleCallback<Boolean> callback) Tries to lock the given resource and returnstrueon success.Returns the available context menu commands as a map by class name.Returns the context type.Returns the editor handler.voidLeaves the current page calling the target URI.voidonSiteOrProjectChange(String sitePath, String serverLink) Called when site and or project have been changed.voidrefreshResource(org.opencms.util.CmsUUID structureId) Reloads the resource edited.voidunlockResource(org.opencms.util.CmsUUID structureId) Unlocks the resource if appropriate.
- 
Constructor Details- 
ContextMenuHandlerpublic ContextMenuHandler()
 
- 
- 
Method Details- 
ensureLockOnResourcepublic void ensureLockOnResource(org.opencms.util.CmsUUID structureId, I_CmsSimpleCallback<Boolean> callback) Description copied from interface:I_CmsContextMenuHandlerTries to lock the given resource and returnstrueon success. If not successful a warning should be displayed.- Specified by:
- ensureLockOnResourcein interface- I_CmsContextMenuHandler
- Parameters:
- structureId- the structure id of the resource to lock
- callback- the callback to execute
- See Also:
 
- 
getContextMenuCommandsDescription copied from interface:I_CmsContextMenuHandlerReturns the available context menu commands as a map by class name.- Specified by:
- getContextMenuCommandsin interface- I_CmsContextMenuHandler
- Returns:
- the available context menu commands as a map by class name
- See Also:
 
- 
getContextTypeDescription copied from interface:I_CmsContextMenuHandlerReturns the context type.- Specified by:
- getContextTypein interface- I_CmsContextMenuHandler
- Returns:
- the context type
- See Also:
 
- 
getEditorHandlerDescription copied from interface:I_CmsContextMenuHandlerReturns the editor handler.- Specified by:
- getEditorHandlerin interface- I_CmsContextMenuHandler
- Returns:
- the editor handler
- See Also:
 
- 
leavePageDescription copied from interface:I_CmsActionHandlerLeaves the current page calling the target URI.- Specified by:
- leavePagein interface- I_CmsActionHandler
- Parameters:
- targetUri- the target URI
- See Also:
 
- 
onSiteOrProjectChangeDescription copied from interface:I_CmsActionHandlerCalled when site and or project have been changed.- Specified by:
- onSiteOrProjectChangein interface- I_CmsActionHandler
- Parameters:
- sitePath- the site path to the target resource
- serverLink- the server link to the resource
- See Also:
 
- 
refreshResourceDescription copied from interface:I_CmsActionHandlerReloads the resource edited.- Specified by:
- refreshResourcein interface- I_CmsActionHandler
- Parameters:
- structureId- the structure id of the resource to lock
- See Also:
 
- 
unlockResourceDescription copied from interface:I_CmsContextMenuHandlerUnlocks the resource if appropriate.- Specified by:
- unlockResourcein interface- I_CmsContextMenuHandler
- Parameters:
- structureId- the structure id of the resource to lock
- See Also:
 
 
-