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

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.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 AbstractInteractiveWizardStep
implements com.google.gwt.event.dom.client.KeyPressHandler, SourcesNavigationEvents

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

Version:
$Id: 38c223ff1230b90eab46dddbf382f21c4ebd2438 $

Field Summary
protected static String FIELD_ERROR_STYLE
          The style of the fields under error.
 
Constructor Summary
CreateNewPageWizardStep()
          Creates a new wizard step that allows the user to create a link to a new page.
 
Method Summary
 void addNavigationListener(NavigationListener listener)
          
 NavigationListener.NavigationDirection getDefaultDirection()
           
 Object getResult()
          
 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> callback)
          
 void removeNavigationListener(NavigationListener listener)
          
 
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
 

Field Detail

FIELD_ERROR_STYLE

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

See Also:
Constant Field Values
Constructor Detail

CreateNewPageWizardStep

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

Method Detail

getResult

public Object getResult()

Specified by:
getResult in interface WizardStep

init

public void init(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<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–2014 XWiki. All rights reserved.