info.magnolia.pages.app.editor
Class PageEditorPresenter

java.lang.Object
  extended by 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.


Field Summary
 
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
 
Constructor Summary
PageEditorPresenter(ActionExecutor actionExecutor, PageEditorView view, info.magnolia.event.EventBus subAppEventBus, SubAppContext subAppContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
           
 
Method Summary
 AbstractElement getSelectedElement()
           
 boolean isMoving()
           
 void loadPageEditor(PageEditorParameters parameters)
           
 void onAction(String actionName, Object... args)
           
 void onElementSelect(AbstractElement selectedElement)
           
 PageEditorView start()
           
 void updateParameters(PageEditorParameters parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageEditorPresenter

@Inject
public PageEditorPresenter(ActionExecutor actionExecutor,
                                  PageEditorView view,
                                  @Named(value="subapp")
                                  info.magnolia.event.EventBus subAppEventBus,
                                  SubAppContext subAppContext,
                                  info.magnolia.i18nsystem.SimpleTranslator i18n)
Method Detail

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.