org.xwiki.gwt.wysiwyg.client.gadget
Class SelectGadgetWizardStep

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
      extended by org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep
          extended by org.xwiki.gwt.wysiwyg.client.plugin.macro.ui.AbstractMacroWizardStep
              extended by org.xwiki.gwt.wysiwyg.client.plugin.macro.ui.SelectMacroWizardStep
                  extended by org.xwiki.gwt.wysiwyg.client.gadget.SelectGadgetWizardStep
All Implemented Interfaces:
com.google.gwt.event.dom.client.DoubleClickHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.shared.EventHandler, SourcesNavigationEvents, WizardStep, Updatable

public class SelectGadgetWizardStep
extends SelectMacroWizardStep

The wizard step to select a gadget, extending the macro selecting step.
FIXME: remove some macros from the list, the ones that don't make sense as gadgets such as "dashboard", or that are not part of the gadgets category. Add multiple categories to macros.

Since:
3.0M3
Version:
$Id$

Constructor Summary
SelectGadgetWizardStep(Config config, MacroServiceAsync macroService)
          Creates a gadget select wizard step.
 
Method Summary
 Object getResult()
          
Overridden here to send a GadgetInstance to the edit gadget step, which will also contain the title of the gadget, not only the content.
 String getStepTitle()
          
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.macro.ui.SelectMacroWizardStep
addNavigationListener, canUpdate, getValidationMessage, init, onCancel, onDoubleClick, onKeyUp, onSubmit, removeNavigationListener, update
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.macro.ui.AbstractMacroWizardStep
getConfig, getMacroService
 
Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep
display, isAutoSubmit, setStepTitle
 
Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
getDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirections
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectGadgetWizardStep

public SelectGadgetWizardStep(Config config,
                              MacroServiceAsync macroService)
Creates a gadget select wizard step.

Parameters:
config - the configuration of the wysiwyg
macroService - the macro service to get information about the macros from the server side
Method Detail

getStepTitle

public String getStepTitle()

Specified by:
getStepTitle in interface WizardStep
Overrides:
getStepTitle in class SelectMacroWizardStep
See Also:
SelectMacroWizardStep.getStepTitle()

getResult

public Object getResult()

Overridden here to send a GadgetInstance to the edit gadget step, which will also contain the title of the gadget, not only the content.

Specified by:
getResult in interface WizardStep
Overrides:
getResult in class SelectMacroWizardStep
See Also:
SelectMacroWizardStep.getResult()


Copyright © 2004-2012 XWiki. All Rights Reserved.