com.xpn.xwiki.wysiwyg.client.plugin.link.ui
Class CreateNewPageWizardStep

java.lang.Object
  extended by com.xpn.xwiki.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 25062 2009-11-14 12:26:11Z mflorea $

Field Summary
protected static java.lang.String FIELD_ERROR_STYLE
          The style of the fields under error.
 
Constructor Summary
CreateNewPageWizardStep(ResourceName editedResource)
          Creates a new wizard step for the passed edited resource.
 
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> async)
          
 void removeNavigationListener(NavigationListener listener)
          
 void setWikiService(WikiServiceAsync wikiService)
          Injects the wiki service.
 
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(ResourceName editedResource)
Creates a new wizard step for the passed edited resource.

Parameters:
editedResource - the resource being edited by this wizard step
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> async)

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.

setWikiService

public void setWikiService(WikiServiceAsync wikiService)
Injects the wiki service.

Parameters:
wikiService - the service used to create links to wiki pages


Copyright © 2004-2010 XWiki. All Rights Reserved.