info.magnolia.ui.app.pages.editor
Class PageEditorPresenter
java.lang.Object
info.magnolia.ui.app.pages.editor.PageEditorPresenter
- All Implemented Interfaces:
- info.magnolia.ui.vaadin.editor.PageEditorView.Listener
public class PageEditorPresenter
- extends Object
- implements info.magnolia.ui.vaadin.editor.PageEditorView.Listener
Presenter for the server side PageEditorView
.
Serves multiple methods for actions triggered from the page editor.
Constructor Summary |
PageEditorPresenter(info.magnolia.ui.vaadin.editor.PageEditorView view,
info.magnolia.ui.framework.event.EventBus eventBus,
info.magnolia.ui.admincentral.dialog.FormDialogPresenterFactory dialogPresenterFactory,
info.magnolia.rendering.template.registry.TemplateDefinitionRegistry templateDefinitionRegistry)
|
Method Summary |
void |
deleteComponent(String workspace,
String path)
|
void |
editComponent(String workspace,
String path,
String dialog)
|
info.magnolia.ui.vaadin.editor.PageEditor.AbstractElement |
getSelectedElement()
|
void |
loadPageEditor(info.magnolia.ui.vaadin.editor.PageEditorParameters parameters)
|
void |
newArea(String workspace,
String nodeType,
String path)
|
void |
newComponent(String workspace,
String path,
String availableComponents)
Creates a chain of dialogs for creating new components. |
void |
selectElement(info.magnolia.ui.vaadin.editor.PageEditor.AbstractElement selectedElement)
|
void |
sortComponent(String workspace,
String parentPath,
String source,
String target,
String order)
|
info.magnolia.ui.vaadin.editor.PageEditorView |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageEditorPresenter
@Inject
public PageEditorPresenter(info.magnolia.ui.vaadin.editor.PageEditorView view,
@Named(value="subapp")
info.magnolia.ui.framework.event.EventBus eventBus,
info.magnolia.ui.admincentral.dialog.FormDialogPresenterFactory dialogPresenterFactory,
info.magnolia.rendering.template.registry.TemplateDefinitionRegistry templateDefinitionRegistry)
editComponent
public void editComponent(String workspace,
String path,
String dialog)
- Specified by:
editComponent
in interface info.magnolia.ui.vaadin.editor.PageEditorView.Listener
newComponent
public void newComponent(String workspace,
String path,
String availableComponents)
- Creates a chain of dialogs for creating new components.
The first dialog is built on the fly based on the available components passed from the client.
Based on the selection made in the first dialog the second dialog will be created, providing fields for the actual component.
- Specified by:
newComponent
in interface info.magnolia.ui.vaadin.editor.PageEditorView.Listener
- Parameters:
workspace
- the workspace of the parent nodepath
- the parent node pathavailableComponents
- available components for the parent area
deleteComponent
public void deleteComponent(String workspace,
String path)
- Specified by:
deleteComponent
in interface info.magnolia.ui.vaadin.editor.PageEditorView.Listener
newArea
public void newArea(String workspace,
String nodeType,
String path)
- Specified by:
newArea
in interface info.magnolia.ui.vaadin.editor.PageEditorView.Listener
sortComponent
public void sortComponent(String workspace,
String parentPath,
String source,
String target,
String order)
- Specified by:
sortComponent
in interface info.magnolia.ui.vaadin.editor.PageEditorView.Listener
selectElement
public void selectElement(info.magnolia.ui.vaadin.editor.PageEditor.AbstractElement selectedElement)
- Specified by:
selectElement
in interface info.magnolia.ui.vaadin.editor.PageEditorView.Listener
start
public info.magnolia.ui.vaadin.editor.PageEditorView start()
getSelectedElement
public info.magnolia.ui.vaadin.editor.PageEditor.AbstractElement getSelectedElement()
loadPageEditor
public void loadPageEditor(info.magnolia.ui.vaadin.editor.PageEditorParameters parameters)
Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.