public class MediaEditorPresenterImpl extends Object implements MediaEditorPresenter, ActionbarPresenter.Listener, MediaEditorInternalEvent.Handler, EditHistoryTrackingProperty.Listener
MediaEditorPresenter
.Constructor and Description |
---|
MediaEditorPresenterImpl(MediaEditorDefinition definition,
info.magnolia.event.EventBus eventBus,
MediaEditorView view,
ActionbarPresenter actionbarPresenter,
DialogPresenter dialogPresenter,
AppContext appContext,
info.magnolia.i18nsystem.SimpleTranslator i18n)
Deprecated.
|
MediaEditorPresenterImpl(MediaEditorDefinition definition,
info.magnolia.event.EventBus eventBus,
MediaEditorView view,
ActionbarPresenter actionbarPresenter,
DialogPresenter dialogPresenter,
AppContext appContext,
info.magnolia.i18nsystem.SimpleTranslator i18n,
MediaEditorAvailabilityChecker mediaEditorAvailabilityChecker) |
Modifier and Type | Method and Description |
---|---|
info.magnolia.event.HandlerRegistration |
addCompletionHandler(MediaEditorCompletedEvent.Handler handler) |
void |
errorOccurred(String message,
Throwable e) |
MediaEditorDefinition |
getDefinition() |
View |
getView() |
void |
onActionbarItemClicked(String actionName) |
void |
onCancelAll(MediaEditorInternalEvent event) |
void |
onLastActionApplied(MediaEditorInternalEvent e) |
void |
onLastActionCancelled(MediaEditorInternalEvent e) |
void |
onSubmit(MediaEditorInternalEvent event) |
void |
setActionExecutor(ActionExecutor actionExecutor) |
View |
start(InputStream stream) |
protected void |
updateActionbar() |
public MediaEditorPresenterImpl(MediaEditorDefinition definition, info.magnolia.event.EventBus eventBus, MediaEditorView view, ActionbarPresenter actionbarPresenter, DialogPresenter dialogPresenter, AppContext appContext, info.magnolia.i18nsystem.SimpleTranslator i18n, MediaEditorAvailabilityChecker mediaEditorAvailabilityChecker)
@Deprecated public MediaEditorPresenterImpl(MediaEditorDefinition definition, info.magnolia.event.EventBus eventBus, MediaEditorView view, ActionbarPresenter actionbarPresenter, DialogPresenter dialogPresenter, AppContext appContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
MediaEditorPresenterImpl(info.magnolia.ui.mediaeditor.definition.MediaEditorDefinition, info.magnolia.event.EventBus, info.magnolia.ui.mediaeditor.MediaEditorView, info.magnolia.ui.actionbar.ActionbarPresenter, info.magnolia.ui.dialog.DialogPresenter, info.magnolia.ui.api.app.AppContext, info.magnolia.i18nsystem.SimpleTranslator)
instead.public void setActionExecutor(ActionExecutor actionExecutor)
setActionExecutor
in interface MediaEditorPresenter
public View start(InputStream stream)
start
in interface MediaEditorPresenter
public View getView()
getView
in interface MediaEditorPresenter
public void onSubmit(MediaEditorInternalEvent event)
onSubmit
in interface MediaEditorInternalEvent.Handler
public void onCancelAll(MediaEditorInternalEvent event)
onCancelAll
in interface MediaEditorInternalEvent.Handler
public void onLastActionCancelled(MediaEditorInternalEvent e)
onLastActionCancelled
in interface MediaEditorInternalEvent.Handler
public void onLastActionApplied(MediaEditorInternalEvent e)
onLastActionApplied
in interface MediaEditorInternalEvent.Handler
public info.magnolia.event.HandlerRegistration addCompletionHandler(MediaEditorCompletedEvent.Handler handler)
addCompletionHandler
in interface MediaEditorPresenter
public void onActionbarItemClicked(String actionName)
onActionbarItemClicked
in interface ActionbarPresenter.Listener
public MediaEditorDefinition getDefinition()
getDefinition
in interface MediaEditorPresenter
public void errorOccurred(String message, Throwable e)
errorOccurred
in interface EditHistoryTrackingProperty.Listener
protected void updateActionbar()
Copyright © 2018 Magnolia International Ltd.. All rights reserved.