Package org.opencms.ui.sitemap
Class CmsSitemapExtension
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.server.AbstractExtension
-
- org.opencms.ui.sitemap.CmsSitemapExtension
-
- All Implemented Interfaces:
com.vaadin.event.MethodEventSource
,com.vaadin.server.ClientConnector
,com.vaadin.server.Extension
,com.vaadin.shared.communication.ServerRpc
,com.vaadin.shared.Connector
,java.io.Serializable
,I_CmsSitemapServerRpc
public class CmsSitemapExtension extends com.vaadin.server.AbstractExtension implements I_CmsSitemapServerRpc
Extension used for the Vaadin dialogs in the sitemap editor.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
-
-
Constructor Summary
Constructors Constructor Description CmsSitemapExtension(CmsSitemapUI ui)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleChangedProperties(java.lang.String id)
Handles changes made via the property dialog.void
openPageCopyDialog(java.lang.String callId, java.lang.String structureId)
Opens the page copy dialog for a resource.void
openPropertyDialog(CmsUUID sitemapEntryId, CmsUUID rootId)
Opens the property dialog for the locale comparison view.void
setSitemapTreeController(CmsSitemapTreeController controller)
Sets the currently active sitemap tree controller.void
showInfoHeader(java.lang.String title, java.lang.String description, java.lang.String path, java.lang.String locale, java.lang.String iconClass)
Shows an info header in the locale-header-container element.void
showLocaleComparison(java.lang.String id)
Displays the locale comparison view.-
Methods inherited from class com.vaadin.server.AbstractExtension
extend, getParent, getSupportedParentType, remove, setParent
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
-
-
-
Constructor Detail
-
CmsSitemapExtension
public CmsSitemapExtension(CmsSitemapUI ui)
Creates a new instance.- Parameters:
ui
- the component to attach to
-
-
Method Detail
-
handleChangedProperties
public void handleChangedProperties(java.lang.String id)
Description copied from interface:I_CmsSitemapServerRpc
Handles changes made via the property dialog.- Specified by:
handleChangedProperties
in interfaceI_CmsSitemapServerRpc
- Parameters:
id
- the structure id of the changed resource- See Also:
I_CmsSitemapServerRpc.handleChangedProperties(java.lang.String)
-
openPageCopyDialog
public void openPageCopyDialog(java.lang.String callId, java.lang.String structureId)
Description copied from interface:I_CmsSitemapServerRpc
Opens the page copy dialog for a resource.- Specified by:
openPageCopyDialog
in interfaceI_CmsSitemapServerRpc
- Parameters:
callId
- a unique (per client) id representing the RPC callstructureId
- the structure id of the resource for which to open the dialog- See Also:
I_CmsSitemapServerRpc.openPageCopyDialog(java.lang.String, java.lang.String)
-
openPropertyDialog
public void openPropertyDialog(CmsUUID sitemapEntryId, CmsUUID rootId)
Opens the property dialog for the locale comparison view.- Parameters:
sitemapEntryId
- the structure id for the sitemap entry to editrootId
- the structure id of the current tree's root
-
setSitemapTreeController
public void setSitemapTreeController(CmsSitemapTreeController controller)
Sets the currently active sitemap tree controller.- Parameters:
controller
- the controller to set
-
showInfoHeader
public void showInfoHeader(java.lang.String title, java.lang.String description, java.lang.String path, java.lang.String locale, java.lang.String iconClass)
Shows an info header in the locale-header-container element.- Parameters:
title
- the titledescription
- the descriptionpath
- the pathlocale
- the localeiconClass
- the icon class
-
showLocaleComparison
public void showLocaleComparison(java.lang.String id)
Description copied from interface:I_CmsSitemapServerRpc
Displays the locale comparison view.- Specified by:
showLocaleComparison
in interfaceI_CmsSitemapServerRpc
- Parameters:
id
- the locale comparison view- See Also:
I_CmsSitemapServerRpc.showLocaleComparison(java.lang.String)
-
-