public class CurrentPageImageSelectorWizardStep extends AbstractEntityListSelectorWizardStep<ImageConfig,Attachment> implements com.google.gwt.event.logical.shared.SelectionHandler<ListItem<Attachment>>
| Constructor and Description |
|---|
CurrentPageImageSelectorWizardStep(WikiServiceAsync wikiService,
boolean useLinkDestination)
Creates a new image selector that displays the images attached to the link destination page.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fetchData(com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> callback)
Fetches the list of items to be displayed in this list from the server.
|
protected ListItem<Attachment> |
fillList(List<Attachment> attachments,
Attachment selectedAttachment)
Fills the list with the given data and returns the item that matches the specified item.
|
protected ListItem<Attachment> |
getListItem(Attachment image) |
protected ListItem<Attachment> |
getNewOptionListItem() |
String |
getNextStep() |
protected String |
getSelectErrorMessage() |
protected String |
getSelectHelpLabel() |
void |
onSelection(com.google.gwt.event.logical.shared.SelectionEvent<ListItem<Attachment>> event) |
protected void |
saveSelectedValue(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
Saves the current selection in this panel in the data managed by this wizard step, if all validation goes well on
the submit time.
|
isSelectedByDefaultaddNavigationListener, display, displayError, getErrorLabel, getList, getSelectedItem, hideError, init, onCancel, onDoubleClick, onKeyUp, onSubmit, refreshList, removeNavigationListener, setActive, setNewOptionOnTopgetData, getResult, initializeSelectiongetStepTitle, isAutoSubmit, setStepTitlegetDirectionName, getValidDirections, setDirectionName, setNextStep, setValidDirectionspublic CurrentPageImageSelectorWizardStep(WikiServiceAsync wikiService, boolean useLinkDestination)
wikiService - the service used to retrieve the list of image attachmentsuseLinkDestination - true to consider that the link destination is the current page, false
to consider that the link origin is the current pageprotected String getSelectHelpLabel()
getSelectHelpLabel in class AbstractListSelectorWizardStep<EntityLink<ImageConfig>,Attachment>protected String getSelectErrorMessage()
getSelectErrorMessage in class AbstractListSelectorWizardStep<EntityLink<ImageConfig>,Attachment>protected void fetchData(com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> callback)
AbstractListSelectorWizardStepfetchData in class AbstractListSelectorWizardStep<EntityLink<ImageConfig>,Attachment>callback - the callback to notify when the fetching is done.protected ListItem<Attachment> fillList(List<Attachment> attachments, Attachment selectedAttachment)
AbstractListSelectorWizardStepfillList in class AbstractListSelectorWizardStep<EntityLink<ImageConfig>,Attachment>attachments - the list of data to fill the listselectedAttachment - the data to be matchedpublic String getNextStep()
getNextStep in interface WizardStepgetNextStep in class AbstractNavigationAwareWizardStepprotected ListItem<Attachment> getListItem(Attachment image)
getListItem in class AbstractListSelectorWizardStep<EntityLink<ImageConfig>,Attachment>image - the data to build a list item representation for.protected ListItem<Attachment> getNewOptionListItem()
getNewOptionListItem in class AbstractListSelectorWizardStep<EntityLink<ImageConfig>,Attachment>null if no such item
should be appended to the list.public void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<ListItem<Attachment>> event)
onSelection in interface com.google.gwt.event.logical.shared.SelectionHandler<ListItem<Attachment>>protected void saveSelectedValue(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
AbstractListSelectorWizardStepsaveSelectedValue in class AbstractEntityListSelectorWizardStep<ImageConfig,Attachment>async - the object to be notified after the selected value is savedAbstractListSelectorWizardStep.onSubmit(AsyncCallback)Copyright © 2004–2016 XWiki. All rights reserved.