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.ChangeHandlerprotected 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)
AbstractSelectorWizardStepAbstractSelectorWizardStep.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()
AbstractSelectorWizardStepFIXME: this function should not be here but in it's own decorating interface for aggregated wizard steps or, cleaner, all wizard steps who need to be notified when they're activated should implement Focusable interface and all wizard step handlers (the dialog, the aggregator) should call setFocus(). This is a quick solution to handle tab change in the selector aggregator.
setActive in class AbstractSelectorWizardStep<EntityLink<ImageConfig>>public Object getResult()
getResult in interface WizardStepgetResult in class AbstractSelectorWizardStep<EntityLink<ImageConfig>>Copyright © 2004–2017 XWiki. All rights reserved.