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

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep<LinkConfig>
      extended by com.xpn.xwiki.wysiwyg.client.plugin.link.ui.AbstractExplorerWizardStep
          extended by com.xpn.xwiki.wysiwyg.client.plugin.link.ui.AttachmentExplorerWizardStep
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.smartgwt.client.widgets.events.KeyPressHandler, com.smartgwt.client.widgets.grid.events.RecordDoubleClickHandler, SourcesNavigationEvents, WizardStep

public class AttachmentExplorerWizardStep
extends AbstractExplorerWizardStep

Specialized AbstractExplorerWizardStep to select an attachment to a wiki page.

Version:
$Id: AttachmentExplorerWizardStep.java 25780 2009-12-14 09:41:47Z mflorea $

Field Summary
 
Fields inherited from class com.xpn.xwiki.wysiwyg.client.plugin.link.ui.AbstractExplorerWizardStep
FIELD_ERROR_STYLE
 
Constructor Summary
AttachmentExplorerWizardStep(ResourceName editedResource)
          Creates an attachment selection wizard step for the specified resource to be edited.
 
Method Summary
protected  java.lang.String getDefaultErrorText()
          
protected  java.lang.String getHelpLabelText()
          
 java.lang.String getNextStep()
          
 java.lang.String getStepTitle()
          
protected  void initializeSelection(com.google.gwt.user.client.rpc.AsyncCallback<?> initCallback)
          Initializes the selection on AbstractSelectorWizardStep.init(Object, AsyncCallback) time.
 void onCancel()
          
 void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
          
 void setWikiService(WikiServiceAsync wikiService)
          Injects the wiki service.
 
Methods inherited from class com.xpn.xwiki.wysiwyg.client.plugin.link.ui.AbstractExplorerWizardStep
addNavigationListener, display, displayError, getErrorLabel, getExplorer, hideError, init, invalidateExplorerData, onKeyPress, onRecordDoubleClick, removeNavigationListener
 
Methods inherited from class com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep
getData, getDirectionName, getResult, getValidDirections, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentExplorerWizardStep

public AttachmentExplorerWizardStep(ResourceName editedResource)
Creates an attachment selection wizard step for the specified resource to be edited.

Parameters:
editedResource - the currently edited resource
Method Detail

initializeSelection

protected void initializeSelection(com.google.gwt.user.client.rpc.AsyncCallback<?> initCallback)
Initializes the selection on AbstractSelectorWizardStep.init(Object, AsyncCallback) time.

Overrides:
initializeSelection in class AbstractSelectorWizardStep<LinkConfig>
Parameters:
initCallback - the initialization callback, to handle asynchronous initialization.

getNextStep

public java.lang.String getNextStep()


getStepTitle

public java.lang.String getStepTitle()


onCancel

public void onCancel()


onSubmit

public void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)


getHelpLabelText

protected java.lang.String getHelpLabelText()

Specified by:
getHelpLabelText in class AbstractExplorerWizardStep
Returns:
the help message for this explorer step, to be displayed on top of the explorer tree

getDefaultErrorText

protected java.lang.String getDefaultErrorText()

Specified by:
getDefaultErrorText in class AbstractExplorerWizardStep
Returns:
the default error message for this wizard step form

setWikiService

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

Parameters:
wikiService - the service used to retrieve the attachments


Copyright © 2004-2010 XWiki. All Rights Reserved.