info.magnolia.ui.mediaeditor
Class MediaEditorPresenterImpl

java.lang.Object
  extended by info.magnolia.ui.mediaeditor.MediaEditorPresenterImpl
All Implemented Interfaces:
info.magnolia.event.EventHandler, ActionbarPresenter.Listener, EditHistoryTrackingProperty.Listener, MediaEditorInternalEvent.Handler, MediaEditorPresenter

public class MediaEditorPresenterImpl
extends Object
implements MediaEditorPresenter, ActionbarPresenter.Listener, MediaEditorInternalEvent.Handler, EditHistoryTrackingProperty.Listener

Implementation of MediaEditorPresenter.


Constructor Summary
MediaEditorPresenterImpl(MediaEditorDefinition definition, info.magnolia.event.EventBus eventBus, MediaEditorView view, ActionbarPresenter actionbarPresenter, DialogPresenter dialogPresenter, AppContext appContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
           
 
Method Summary
 info.magnolia.event.HandlerRegistration addCompletionHandler(MediaEditorCompletedEvent.Handler handler)
           
 void errorOccurred(String message, Throwable e)
           
 MediaEditorDefinition getDefinition()
           
 String getIcon(String actionName)
           
 String getLabel(String actionName)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaEditorPresenterImpl

public MediaEditorPresenterImpl(MediaEditorDefinition definition,
                                info.magnolia.event.EventBus eventBus,
                                MediaEditorView view,
                                ActionbarPresenter actionbarPresenter,
                                DialogPresenter dialogPresenter,
                                AppContext appContext,
                                info.magnolia.i18nsystem.SimpleTranslator i18n)
Method Detail

setActionExecutor

public void setActionExecutor(ActionExecutor actionExecutor)
Specified by:
setActionExecutor in interface MediaEditorPresenter

start

public View start(InputStream stream)
Specified by:
start in interface MediaEditorPresenter

getView

public View getView()
Specified by:
getView in interface MediaEditorPresenter

onSubmit

public void onSubmit(MediaEditorInternalEvent event)
Specified by:
onSubmit in interface MediaEditorInternalEvent.Handler

onCancelAll

public void onCancelAll(MediaEditorInternalEvent event)
Specified by:
onCancelAll in interface MediaEditorInternalEvent.Handler

onLastActionCancelled

public void onLastActionCancelled(MediaEditorInternalEvent e)
Specified by:
onLastActionCancelled in interface MediaEditorInternalEvent.Handler

onLastActionApplied

public void onLastActionApplied(MediaEditorInternalEvent e)
Specified by:
onLastActionApplied in interface MediaEditorInternalEvent.Handler

addCompletionHandler

public info.magnolia.event.HandlerRegistration addCompletionHandler(MediaEditorCompletedEvent.Handler handler)
Specified by:
addCompletionHandler in interface MediaEditorPresenter

onActionbarItemClicked

public void onActionbarItemClicked(String actionName)
Specified by:
onActionbarItemClicked in interface ActionbarPresenter.Listener

getLabel

public String getLabel(String actionName)
Specified by:
getLabel in interface ActionbarPresenter.Listener

getIcon

public String getIcon(String actionName)
Specified by:
getIcon in interface ActionbarPresenter.Listener

getDefinition

public MediaEditorDefinition getDefinition()
Specified by:
getDefinition in interface MediaEditorPresenter

errorOccurred

public void errorOccurred(String message,
                          Throwable e)
Specified by:
errorOccurred in interface EditHistoryTrackingProperty.Listener


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.