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

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep<T>
      extended by com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorAggregatorWizardStep<LinkConfig>
          extended by com.xpn.xwiki.wysiwyg.client.plugin.link.ui.PageSelectorWizardStep
All Implemented Interfaces:
com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer>, com.google.gwt.event.shared.EventHandler, NavigationListener, SourcesNavigationEvents, WizardStep

public class PageSelectorWizardStep
extends AbstractSelectorAggregatorWizardStep<LinkConfig>

Creates a page selector aggregator, to switch between the recent changed pages and all pages.

Version:
$Id: PageSelectorWizardStep.java 25062 2009-11-14 12:26:11Z mflorea $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.xwiki.gwt.user.client.ui.wizard.NavigationListener
NavigationListener.NavigationDirection
 
Constructor Summary
PageSelectorWizardStep(ResourceName editedResource)
          Builds a page selector step for the currently edited resource.
 
Method Summary
protected  java.lang.String getRequiredStep()
          
protected  WizardStep getStepInstance(java.lang.String name)
          
protected  java.util.List<java.lang.String> getStepNames()
          
 java.lang.String getStepTitle()
          
 void setWikiService(WikiServiceAsync wikiService)
          Injects the wiki service.
 
Methods inherited from class com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorAggregatorWizardStep
addNavigationListener, display, getDefaultStepName, getDirectionName, getEditedResource, getNextStep, getResult, getStep, init, onCancel, onDirection, onSelection, onSubmit, removeNavigationListener, selectTab
 
Methods inherited from class com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep
getData, getValidDirections, initializeSelection, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageSelectorWizardStep

public PageSelectorWizardStep(ResourceName editedResource)
Builds a page selector step for the currently edited resource.

Parameters:
editedResource - the resource edited by this aggregator step
Method Detail

getRequiredStep

protected java.lang.String getRequiredStep()

Overrides:
getRequiredStep in class AbstractSelectorAggregatorWizardStep<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(java.lang.String name)

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

getStepNames

protected java.util.List<java.lang.String> getStepNames()

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

getStepTitle

public java.lang.String getStepTitle()


setWikiService

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

Parameters:
wikiService - the service used to access the wiki


Copyright © 2004-2010 XWiki. All Rights Reserved.