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

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.image.ui.ImageConfigWizardStep
All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.shared.EventHandler, SourcesNavigationEvents, WizardStep

public class ImageConfigWizardStep
extends AbstractInteractiveWizardStep
implements com.google.gwt.event.dom.client.KeyPressHandler, SourcesNavigationEvents

Wizard step to configure the image parameters.

Version:
$Id$

Constructor Summary
ImageConfigWizardStep()
          Default constructor.
 
Method Summary
 void addNavigationListener(NavigationListener listener)
          
 NavigationListener.NavigationDirection getDefaultDirection()
           
 Object getResult()
          
 ImageConfig.ImageAlignment getSelectedAlignment()
           
 void init(Object data, com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
          
 void onCancel()
          
 void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
          
 void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
          
 void removeNavigationListener(NavigationListener listener)
          
protected  void setImageAlignment(ImageConfig.ImageAlignment alignment)
          Sets the passed alignment in the image alignment radio set.
 
Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep
display, getStepTitle, 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

ImageConfigWizardStep

public ImageConfigWizardStep()
Default constructor.

Method Detail

getSelectedAlignment

public ImageConfig.ImageAlignment getSelectedAlignment()
Returns:
the selected image alignment

setImageAlignment

protected void setImageAlignment(ImageConfig.ImageAlignment alignment)
Sets the passed alignment in the image alignment radio set.

Parameters:
alignment - the alignment to set

init

public void init(Object data,
                 com.google.gwt.user.client.rpc.AsyncCallback<?> cb)

Specified by:
init in interface WizardStep

onSubmit

public void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)

Specified by:
onSubmit in interface WizardStep

onCancel

public void onCancel()

Specified by:
onCancel in interface WizardStep

getResult

public Object getResult()

Specified by:
getResult in interface WizardStep

getDefaultDirection

public NavigationListener.NavigationDirection getDefaultDirection()
Returns:
the default navigation direction, to be fired automatically when enter is hit in an input in the form of this configuration wizard step. To be overridden by subclasses to provide the specific direction to be followed.

addNavigationListener

public void addNavigationListener(NavigationListener listener)

Specified by:
addNavigationListener in interface SourcesNavigationEvents

removeNavigationListener

public void removeNavigationListener(NavigationListener listener)

Specified by:
removeNavigationListener in interface SourcesNavigationEvents

onKeyPress

public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)

Specified by:
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler
See Also:
KeyPressHandler.onKeyPress(KeyPressEvent)


Copyright © 2004-2012 XWiki. All Rights Reserved.