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

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.widget.wizard.util.AbstractSelectorWizardStep<T>
              extended by org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractSelectorAggregatorWizardStep<EntityLink<LinkConfig>>
                  extended by org.xwiki.gwt.wysiwyg.client.plugin.link.ui.PageSelectorWizardStep
All Implemented Interfaces:
com.google.gwt.event.logical.shared.SelectionHandler<Integer>, com.google.gwt.event.shared.EventHandler, NavigationListener, SourcesNavigationEvents, WizardStep

public class PageSelectorWizardStep
extends AbstractSelectorAggregatorWizardStep<EntityLink<LinkConfig>>

A page selector that aggregates different views for selecting a page: recently modified pages, all pages or page search.

Version:
$Id: 192f1b5d4589193a0381219126e0ffa3733c7049 $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.xwiki.gwt.user.client.ui.wizard.NavigationListener
NavigationListener.NavigationDirection
 
Constructor Summary
PageSelectorWizardStep(WikiServiceAsync wikiService)
          Creates a new page selector, that aggregates different views for selecting a page: recently modified pages, all pages or page search.
 
Method Summary
protected  String getRequiredStep()
          
protected  WizardStep getStepInstance(String name)
          
protected  List<String> getStepNames()
          
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractSelectorAggregatorWizardStep
addNavigationListener, getDefaultStepName, getDirectionName, getNextStep, getResult, getStep, init, onCancel, onDirection, onSelection, onSubmit, removeNavigationListener, selectTab
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep
getData, initializeSelection, setActive
 
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
getValidDirections, setDirectionName, setNextStep, setValidDirections
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageSelectorWizardStep

public PageSelectorWizardStep(WikiServiceAsync wikiService)
Creates a new page selector, that aggregates different views for selecting a page: recently modified pages, all pages or page search.

Parameters:
wikiService - the service to be used for creating links to wiki pages
Method Detail

getRequiredStep

protected String getRequiredStep()

Overrides:
getRequiredStep in class AbstractSelectorAggregatorWizardStep<EntityLink<LinkConfig>>
Returns:
the name of the step required to be loaded by the current created or edited element, if any, or null otherwise (if previous selection should be preserved). To be overwritten by subclasses to detect whether the data being handled requires the "all pages" step to be loaded or not.

getStepInstance

protected WizardStep getStepInstance(String name)

Specified by:
getStepInstance in class AbstractSelectorAggregatorWizardStep<EntityLink<LinkConfig>>
Parameters:
name - the name of the step to initialize
Returns:
an instance of the step recognized by the passed name

getStepNames

protected List<String> getStepNames()

Specified by:
getStepNames in class AbstractSelectorAggregatorWizardStep<EntityLink<LinkConfig>>
Returns:
the list of all step names


Copyright © 2004-2012 XWiki. All Rights Reserved.