org.xwiki.gwt.wysiwyg.client.plugin.importer.ui
Class ImportOfficePasteWizardStep

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.importer.ui.ImportOfficePasteWizardStep
All Implemented Interfaces:
com.google.gwt.event.dom.client.LoadHandler, com.google.gwt.event.shared.EventHandler, WizardStep

public class ImportOfficePasteWizardStep
extends java.lang.Object
implements WizardStep, com.google.gwt.event.dom.client.LoadHandler

Wizard step responsible for importing copy-pasted office content.

Since:
2.0.1
Version:
$Id: ImportOfficePasteWizardStep.java 29510 2010-06-17 08:06:00Z mflorea $

Constructor Summary
ImportOfficePasteWizardStep(ImportServiceAsync importService)
          Creates an instance of ImportOfficePasteWizardStep.
 
Method Summary
 com.google.gwt.user.client.ui.Widget display()
          
 java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)
          
protected  java.util.Map<java.lang.String,java.lang.String> getHTMLCleaningParams()
          Prepares the cleaning parameters map.
 java.lang.String getNextStep()
          
 java.lang.Object getResult()
          
 java.lang.String getStepTitle()
          
 java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()
          
 void init(java.lang.Object data, com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
          
 void onCancel()
          
 void onLoad(com.google.gwt.event.dom.client.LoadEvent event)
          
 void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportOfficePasteWizardStep

public ImportOfficePasteWizardStep(ImportServiceAsync importService)
Creates an instance of ImportOfficePasteWizardStep.

Parameters:
importService - the component used to clean content copy&pasted from office documents
Method Detail

display

public com.google.gwt.user.client.ui.Widget display()

Specified by:
display in interface WizardStep

init

public void init(java.lang.Object data,
                 com.google.gwt.user.client.rpc.AsyncCallback<?> cb)

Specified by:
init in interface WizardStep

getValidDirections

public java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()

Specified by:
getValidDirections in interface WizardStep

getDirectionName

public java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)

Specified by:
getDirectionName in interface WizardStep

getNextStep

public java.lang.String getNextStep()

Specified by:
getNextStep in interface WizardStep

getResult

public java.lang.Object getResult()

Specified by:
getResult in interface WizardStep

getStepTitle

public java.lang.String getStepTitle()

Specified by:
getStepTitle in interface WizardStep

onCancel

public void onCancel()

Specified by:
onCancel in interface WizardStep

onSubmit

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

Specified by:
onSubmit in interface WizardStep

getHTMLCleaningParams

protected java.util.Map<java.lang.String,java.lang.String> getHTMLCleaningParams()
Prepares the cleaning parameters map.

Returns:
a Map with cleaning parameters for office importer.

onLoad

public void onLoad(com.google.gwt.event.dom.client.LoadEvent event)

Specified by:
onLoad in interface com.google.gwt.event.dom.client.LoadHandler
See Also:
LoadHandler.onLoad(LoadEvent)


Copyright © 2004-2011 XWiki. All Rights Reserved.