public class ImagesExplorerWizardStep extends AbstractSelectorWizardStep<EntityLink<ImageConfig>> implements com.google.gwt.event.dom.client.ChangeHandler, SourcesNavigationEvents
| Constructor and Description |
|---|
ImagesExplorerWizardStep(boolean displayWikiSelector,
WikiServiceAsync wikiService)
Builds an image explorer with the default selection on the passed resource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNavigationListener(NavigationListener listener) |
VerticalResizePanel |
display() |
String |
getNextStep() |
Object |
getResult() |
protected void |
initCurrentPage(AttachmentReference imageReference,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
Initializes and displays list of images attached to the same page as the specified image, and selects the
specified image.
|
protected void |
initializeSelection(com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
Initializes the selection on
AbstractSelectorWizardStep.init(Object, AsyncCallback) time. |
void |
onCancel() |
void |
onChange(com.google.gwt.event.dom.client.ChangeEvent event) |
void |
onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async) |
void |
removeNavigationListener(NavigationListener listener) |
void |
setActive()
Notifies this wizard step that it has been activated, when part of an aggregator for example.
|
void |
setSelection(AttachmentReference imageReference,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
Refreshes the list of images with the images attached to the same page as the specified image, and then selects
the specified image.
|
getData, initgetStepTitle, isAutoSubmit, setStepTitlegetDirectionName, getValidDirections, setDirectionName, setNextStep, setValidDirectionspublic ImagesExplorerWizardStep(boolean displayWikiSelector,
WikiServiceAsync wikiService)
displayWikiSelector - whether this explorer should show the selector to choose an image from a different
wiki or notwikiService - the service used to access the wikipublic void setSelection(AttachmentReference imageReference, com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
imageReference - a reference to the image to be selectedcb - the object to be notified after the specified image is selectedpublic void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
onChange in interface com.google.gwt.event.dom.client.ChangeHandlerChangeHandler.onChange(ChangeEvent)protected void initCurrentPage(AttachmentReference imageReference, com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
imageReference - a reference to the image to be selected after the list of images is updatedcb - the object to be notified after the list of images is updatedpublic VerticalResizePanel display()
display in interface WizardStepdisplay in class AbstractInteractiveWizardSteppublic String getNextStep()
getNextStep in interface WizardStepgetNextStep in class AbstractNavigationAwareWizardStepprotected void initializeSelection(com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
AbstractSelectorWizardStep.init(Object, AsyncCallback) time.initializeSelection in class AbstractSelectorWizardStep<EntityLink<ImageConfig>>cb - the initialization callback, to handle asynchronous initializationpublic void onCancel()
onCancel in interface WizardSteppublic void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
onSubmit in interface WizardSteppublic void addNavigationListener(NavigationListener listener)
addNavigationListener in interface SourcesNavigationEventspublic void removeNavigationListener(NavigationListener listener)
removeNavigationListener in interface SourcesNavigationEventspublic void setActive()
setActive in class AbstractSelectorWizardStep<EntityLink<ImageConfig>>public Object getResult()
getResult in interface WizardStepgetResult in class AbstractSelectorWizardStep<EntityLink<ImageConfig>>AbstractSelectorWizardStep.getResult()Copyright © 2004–2014 XWiki. All rights reserved.