public class MediaEditorPresenterImpl extends Object implements MediaEditorPresenter, MediaEditorInternalEvent.Handler, MediaState.Listener
MediaEditorPresenter
.Constructor and Description |
---|
MediaEditorPresenterImpl(MediaEditorDefinition definition,
info.magnolia.event.EventBus eventBus,
MediaEditorView view,
AppContext appContext,
info.magnolia.i18nsystem.SimpleTranslator i18n,
AvailabilityChecker availabilityChecker) |
Modifier and Type | Method and Description |
---|---|
info.magnolia.event.HandlerRegistration |
addCompletionHandler(MediaEditorCompletedEvent.Handler handler) |
void |
errorOccurred(String message,
Throwable e) |
byte[] |
getData() |
MediaEditorDefinition |
getDefinition() |
View |
getView() |
void |
onCancelAll(MediaEditorInternalEvent event) |
void |
onLastActionApplied(MediaEditorInternalEvent e) |
void |
onLastActionCancelled(MediaEditorInternalEvent e) |
void |
onSubmit(MediaEditorInternalEvent event) |
void |
setActionExecutor(ActionExecutor actionExecutor) |
UIComponent |
start(InputStream stream) |
public MediaEditorPresenterImpl(MediaEditorDefinition definition, info.magnolia.event.EventBus eventBus, MediaEditorView view, AppContext appContext, info.magnolia.i18nsystem.SimpleTranslator i18n, AvailabilityChecker availabilityChecker)
public void setActionExecutor(ActionExecutor actionExecutor)
setActionExecutor
in interface MediaEditorPresenter
public UIComponent 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 MediaEditorDefinition getDefinition()
getDefinition
in interface MediaEditorPresenter
public void errorOccurred(String message, Throwable e)
errorOccurred
in interface MediaState.Listener
public byte[] getData()
getData
in interface MediaEditorPresenter
Copyright © 2021 Magnolia International Ltd.. All rights reserved.