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

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.link.ui.CreateNewPageWizardStep
All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.shared.EventHandler, SourcesNavigationEvents, WizardStep

public class CreateNewPageWizardStep
extends java.lang.Object
implements WizardStep, com.google.gwt.event.dom.client.KeyPressHandler, SourcesNavigationEvents

Wizard step to get the name of a new page from the user.

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

Field Summary
protected static java.lang.String FIELD_ERROR_STYLE
          The style of the fields under error.
 
Constructor Summary
CreateNewPageWizardStep(WikiServiceAsync wikiService)
          Creates a new wizard step that allows the user to create a link to a new page.
 
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()
          
 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> callback)
          
 void removeNavigationListener(NavigationListener listener)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_ERROR_STYLE

protected static final java.lang.String FIELD_ERROR_STYLE
The style of the fields under error.

See Also:
Constant Field Values
Constructor Detail

CreateNewPageWizardStep

public CreateNewPageWizardStep(WikiServiceAsync wikiService)
Creates a new wizard step that allows the user to create a link to a new page.

Parameters:
wikiService - the service to be used for creating a link to a wiki page
Method Detail

display

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

Specified by:
display in interface WizardStep

getDirectionName

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

Specified by:
getDirectionName in interface WizardStep

getNextStep

public java.lang.String getNextStep()

Specified by:
getNextStep in interface WizardStep

getResult

public java.lang.Object getResult()

Specified by:
getResult in interface WizardStep

getStepTitle

public java.lang.String getStepTitle()

Specified by:
getStepTitle in interface WizardStep

getValidDirections

public java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()

Specified by:
getValidDirections in interface WizardStep

init

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

Specified by:
init in interface WizardStep

onCancel

public void onCancel()

Specified by:
onCancel in interface WizardStep

onSubmit

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

Specified by:
onSubmit in interface WizardStep

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)

addNavigationListener

public void addNavigationListener(NavigationListener listener)

Specified by:
addNavigationListener in interface SourcesNavigationEvents

removeNavigationListener

public void removeNavigationListener(NavigationListener listener)

Specified by:
removeNavigationListener in interface SourcesNavigationEvents

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.


Copyright © 2004-2010 XWiki. All Rights Reserved.