org.xwiki.gwt.wysiwyg.client.plugin.image.ui
Class ImageWizard

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.wizard.Wizard
      extended by org.xwiki.gwt.wysiwyg.client.plugin.image.ui.ImageWizard
All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<CompositeDialogBox>, com.google.gwt.event.shared.EventHandler, NavigationListener, WizardStepProvider

public class ImageWizard
extends Wizard
implements WizardStepProvider

The link wizard, used to configure image parameters in a ImageConfig object, in successive steps. This class extends the Wizard class by encapsulating WizardStepProvider behavior specific to images.

Version:
$Id: aac1dc726c6d79cdcf9dfe0324d5fd8a59908f7e $

Nested Class Summary
static class ImageWizard.ImageWizardStep
          Enumeration steps handled by this image wizard.
 
Nested classes/interfaces inherited from class org.xwiki.gwt.user.client.ui.wizard.Wizard
Wizard.AbstractAsyncCallbackAdaptor<T>
 
Nested classes/interfaces inherited from interface org.xwiki.gwt.user.client.ui.wizard.NavigationListener
NavigationListener.NavigationDirection
 
Field Summary
 
Fields inherited from class org.xwiki.gwt.user.client.ui.wizard.Wizard
currentStep, dialog, finishing, navigationStack, provider, wizardListeners
 
Constructor Summary
ImageWizard(Config config, WikiServiceAsync wikiService)
          Builds a ImageWizard from the passed Config.
 
Method Summary
protected  Object getResult()
          
 WizardStep getStep(String name)
          
 void start(String startStep, Object data)
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.Wizard
addWizardListener, getProvider, hideDialog, initAndDisplayCurrentStep, onCancel, onClose, onDirection, onFinish, onNext, onPrevious, removeWizardListener, setProvider, unloadCurrentStep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageWizard

public ImageWizard(Config config,
                   WikiServiceAsync wikiService)
Builds a ImageWizard from the passed Config. The configuration is used to get WYSIWYG editor specific information for this wizard, such as the current page, configuration parameters.

Parameters:
config - the context configuration for this ImageWizard
wikiService - the service used to access the image attachments
Method Detail

getStep

public WizardStep getStep(String name)

Specified by:
getStep in interface WizardStepProvider
See Also:
WizardStepProvider.getStep(String)

start

public void start(String startStep,
                  Object data)

Overrides:
start in class Wizard
See Also:
Wizard.start(String, Object)

getResult

protected Object getResult()

Overrides:
getResult in class Wizard
See Also:
Wizard.getResult()


Copyright © 2004–2015 XWiki. All rights reserved.