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

java.lang.Object
  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 java.lang.Object
implements WizardStep, com.google.gwt.event.dom.client.KeyPressHandler, SourcesNavigationEvents

Wizard step to configure the image parameters.

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

Constructor Summary
ImageConfigWizardStep()
          Default constructor.
 
Method Summary
 void addNavigationListener(NavigationListener listener)
          
 com.google.gwt.user.client.ui.Widget display()
          
 NavigationListener.NavigationDirection getDefaultDirection()
           
 java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)
          
 java.lang.String getNextStep()
          
 java.lang.Object getResult()
          
 ImageConfig.ImageAlignment getSelectedAlignment()
           
 java.lang.String getStepTitle()
          
 java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()
          .
 void init(java.lang.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<java.lang.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 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(java.lang.Object data,
                 com.google.gwt.user.client.rpc.AsyncCallback<?> cb)

Specified by:
init in interface WizardStep

display

public com.google.gwt.user.client.ui.Widget display()

Specified by:
display in interface WizardStep

onSubmit

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

Specified by:
onSubmit in interface WizardStep

onCancel

public void onCancel()

Specified by:
onCancel in interface WizardStep

getResult

public java.lang.Object getResult()

Specified by:
getResult in interface WizardStep

getNextStep

public java.lang.String getNextStep()

Specified by:
getNextStep in interface WizardStep

getStepTitle

public java.lang.String getStepTitle()

Specified by:
getStepTitle in interface WizardStep

getValidDirections

public java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()
. Configure this as the last wizard step, by default, allowing to finish, cancel or go to previous step if the navigation stack is not empty at this point.

Specified by:
getValidDirections in interface WizardStep

getDirectionName

public java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)

Specified by:
getDirectionName 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-2011 XWiki. All Rights Reserved.