com.xpn.xwiki.wysiwyg.client.plugin.link.ui
Class AttachmentSelectorWizardStep
java.lang.Object
com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep<T>
com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorAggregatorWizardStep<LinkConfig>
com.xpn.xwiki.wysiwyg.client.plugin.link.ui.AttachmentSelectorWizardStep
- All Implemented Interfaces:
- com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer>, com.google.gwt.event.shared.EventHandler, NavigationListener, SourcesNavigationEvents, WizardStep
public class AttachmentSelectorWizardStep
- extends AbstractSelectorAggregatorWizardStep<LinkConfig>
Wizard step to select the attachment to link to, by aggregating a page selector step and an explorer wizard step.
- Version:
- $Id: AttachmentSelectorWizardStep.java 25062 2009-11-14 12:26:11Z mflorea $
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentSelectorWizardStep
public AttachmentSelectorWizardStep(ResourceName editedResource)
- Builds an attachment selector step for the currently edited resource.
- Parameters:
editedResource - the resource edited by this aggregator step
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 attachments
Copyright © 2004-2010 XWiki. All Rights Reserved.