org.xwiki.gwt.wysiwyg.client.plugin.link.ui
Class LinkWizard

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

public class LinkWizard
extends Wizard
implements WizardStepProvider

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

Version:
$Id: LinkWizard.java 31743 2010-10-13 01:20:32Z mflorea $

Nested Class Summary
static class LinkWizard.LinkWizardStep
          Enumeration steps handled by this link wizard.
 
Nested classes/interfaces inherited from class org.xwiki.gwt.user.client.ui.wizard.Wizard
Wizard.AbstractDefaultAsyncCallback<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, navigationStack, provider, wizardListeners
 
Constructor Summary
LinkWizard(Config config, WikiServiceAsync wikiService)
          Builds a LinkWizard from the passed Config.
 
Method Summary
protected  java.lang.Object getResult()
          
 WizardStep getStep(java.lang.String name)
          
 void start(java.lang.String startStep, java.lang.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

LinkWizard

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

Parameters:
config - the context configuration for this LinkWizard
wikiService - the service used to access the wiki
Method Detail

getStep

public WizardStep getStep(java.lang.String name)

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

start

public void start(java.lang.String startStep,
                  java.lang.Object data)

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

getResult

protected java.lang.Object getResult()

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


Copyright © 2004-2010 XWiki. All Rights Reserved.