info.magnolia.pages.app.editor
Class PageEditorPresenter
java.lang.Object
info.magnolia.pages.app.editor.PageEditorPresenter
- All Implemented Interfaces:
- PageEditorListener
public class PageEditorPresenter
- extends Object
- implements PageEditorListener
Presenter for the server side PageEditorView
.
Serves multiple methods for actions triggered from the page editor.
Fields inherited from interface info.magnolia.ui.vaadin.editor.PageEditorListener |
ACTION_ADD_AREA, ACTION_ADD_COMPONENT, ACTION_CANCEL_MOVE_COMPONENT, ACTION_DELETE_COMPONENT, ACTION_EDIT_COMPONENT, ACTION_EDIT_ELEMENT, ACTION_SORT_COMPONENT, ACTION_START_MOVE_COMPONENT, ACTION_STOP_MOVE_COMPONENT, ACTION_VIEW_EDIT, ACTION_VIEW_PREVIEW |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageEditorPresenter
@Inject
public PageEditorPresenter(ActionExecutor actionExecutor,
PageEditorView view,
@Named(value="subapp")
info.magnolia.event.EventBus subAppEventBus,
SubAppContext subAppContext,
info.magnolia.i18nsystem.SimpleTranslator i18n)
start
public PageEditorView start()
onElementSelect
public void onElementSelect(AbstractElement selectedElement)
- Specified by:
onElementSelect
in interface PageEditorListener
onAction
public void onAction(String actionName,
Object... args)
- Specified by:
onAction
in interface PageEditorListener
getSelectedElement
public AbstractElement getSelectedElement()
loadPageEditor
public void loadPageEditor(PageEditorParameters parameters)
updateParameters
public void updateParameters(PageEditorParameters parameters)
isMoving
public boolean isMoving()
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.