public class PageEditorPresenter extends Object implements PageEditorListener
PageEditorView
.
Serves multiple methods for actions triggered from the page editor.ACTION_ADD_AREA, ACTION_ADD_COMPONENT, ACTION_CANCEL_MOVE_COMPONENT, ACTION_COPY_COMPONENT, ACTION_DELETE_COMPONENT, ACTION_EDIT_COMPONENT, ACTION_EDIT_ELEMENT, ACTION_PASTE_COMPONENT, ACTION_REDO, ACTION_SORT_COMPONENT, ACTION_START_MOVE_COMPONENT, ACTION_STOP_MOVE_COMPONENT, ACTION_UNDO, ACTION_VIEW_EDIT, ACTION_VIEW_PREVIEW
Constructor and Description |
---|
PageEditorPresenter(ActionExecutor actionExecutor,
PageEditorView view,
info.magnolia.event.EventBus subAppEventBus,
SubAppContext subAppContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
AbstractElement |
getSelectedElement() |
boolean |
isMoving() |
void |
loadPageEditor(PageEditorParameters parameters) |
void |
onAction(String actionName,
Object... args) |
void |
onElementSelect(AbstractElement selectedElement) |
PageEditorView |
start() |
void |
updateParameters(PageEditorParameters parameters) |
@Inject public PageEditorPresenter(ActionExecutor actionExecutor, PageEditorView view, @Named(value="subapp") info.magnolia.event.EventBus subAppEventBus, SubAppContext subAppContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public PageEditorView start()
public void onElementSelect(AbstractElement selectedElement)
onElementSelect
in interface PageEditorListener
public void onAction(String actionName, Object... args)
onAction
in interface PageEditorListener
public AbstractElement getSelectedElement()
public void loadPageEditor(PageEditorParameters parameters)
public void updateParameters(PageEditorParameters parameters)
public boolean isMoving()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.