org.xwiki.gwt.wysiwyg.client.plugin.image.ui
Class ExternalImageSelectorWizardStep

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.xwiki.gwt.user.client.ui.wizard.AbstractCompositeWizardStep
                  extended by org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
                      extended by org.xwiki.gwt.wysiwyg.client.plugin.image.ui.ExternalImageSelectorWizardStep
All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, SourcesNavigationEvents, WizardStep

public class ExternalImageSelectorWizardStep
extends AbstractNavigationAwareWizardStep
implements SourcesNavigationEvents, com.google.gwt.event.dom.client.KeyUpHandler

Allows the user to select an external image by specifying its URL.

Version:
$Id: ExternalImageSelectorWizardStep.java 31743 2010-10-13 01:20:32Z mflorea $

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ExternalImageSelectorWizardStep(WikiServiceAsync wikiService)
          Creates a new wizard step that allows the user to select an external image by specifying its URL.
 
Method Summary
 void addNavigationListener(NavigationListener listener)
          
 java.lang.Object getResult()
          
 java.lang.String getStepTitle()
          
 void init(java.lang.Object data, com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
          
 void onCancel()
          
 void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
          
 void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
          
 void removeNavigationListener(NavigationListener listener)
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
getDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirections
 
Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractCompositeWizardStep
display, getPanel
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalImageSelectorWizardStep

public ExternalImageSelectorWizardStep(WikiServiceAsync wikiService)
Creates a new wizard step that allows the user to select an external image by specifying its URL.

Parameters:
wikiService - the service used to serialize external image references
Method Detail

getResult

public java.lang.Object getResult()

Specified by:
getResult in interface WizardStep
See Also:
WizardStep.getResult()

getStepTitle

public java.lang.String getStepTitle()

Specified by:
getStepTitle in interface WizardStep
See Also:
WizardStep.getStepTitle()

init

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

Specified by:
init in interface WizardStep
See Also:
WizardStep.init(Object, AsyncCallback)

onCancel

public void onCancel()

Specified by:
onCancel in interface WizardStep
See Also:
WizardStep.onCancel()

onSubmit

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

Specified by:
onSubmit in interface WizardStep
See Also:
WizardStep.onSubmit(AsyncCallback)

addNavigationListener

public void addNavigationListener(NavigationListener listener)

Specified by:
addNavigationListener in interface SourcesNavigationEvents
See Also:
SourcesNavigationEvents.addNavigationListener(NavigationListener)

removeNavigationListener

public void removeNavigationListener(NavigationListener listener)

Specified by:
removeNavigationListener in interface SourcesNavigationEvents
See Also:
SourcesNavigationEvents.removeNavigationListener(NavigationListener)

onKeyUp

public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)

Specified by:
onKeyUp in interface com.google.gwt.event.dom.client.KeyUpHandler
See Also:
KeyUpHandler.onKeyUp(KeyUpEvent)


Copyright © 2004-2011 XWiki. All Rights Reserved.