|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep<D>
com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractListSelectorWizardStep<ImageConfig,Attachment>
com.xpn.xwiki.wysiwyg.client.plugin.image.ui.CurrentPageImageSelectorWizardStep
public class CurrentPageImageSelectorWizardStep
Wizard step to select an image from the list of images attached to a page.
| Constructor Summary | |
|---|---|
CurrentPageImageSelectorWizardStep(ResourceName currentPage)
Builds a selector from the images of the specified current page. |
|
CurrentPageImageSelectorWizardStep(ResourceName currentPage,
ResourceName editedResource)
Builds a selector from the images of the specified current page to edit the specified resource. |
|
| Method Summary | |
|---|---|
protected void |
fetchData(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Attachment>> callback)
Fetches the list of items to be displayed in this list from the server. |
protected void |
fillList(java.util.List<Attachment> itemsList)
Fills the preview list with image preview widgets. |
protected ListItem<Attachment> |
getListItem(Attachment image)
|
protected ListItem<Attachment> |
getNewOptionListItem()
|
java.lang.String |
getNextStep()
|
protected java.lang.String |
getSelectErrorMessage()
|
protected java.lang.String |
getSelectHelpLabel()
|
protected java.lang.String |
getSelection()
|
java.lang.String |
getStepTitle()
|
protected boolean |
matchesSelection(Attachment item,
java.lang.String selection)
Compares the current item with the passed string representation of the wizard step's selection. |
void |
onSelection(com.google.gwt.event.logical.shared.SelectionEvent<ListItem<Attachment>> event)
|
protected void |
saveSelectedValue()
Saves the current selection in this panel in the data managed by this wizard step, if all validation goes well on the sumbit time. |
void |
setCurrentPage(ResourceName currentPage)
Updates the current page for which this wizard step provides selection interface. |
void |
setWikiService(WikiServiceAsync wikiService)
Injects the wiki service. |
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractListSelectorWizardStep |
|---|
addNavigationListener, display, displayError, getErrorLabel, getList, getMainPanel, getSelectedItem, hideError, init, onCancel, onDoubleClick, onKeyUp, onSubmit, refreshList, removeNavigationListener, setActive, setNewOptionOnTop |
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep |
|---|
getData, getDirectionName, getResult, getValidDirections, initializeSelection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CurrentPageImageSelectorWizardStep(ResourceName currentPage,
ResourceName editedResource)
currentPage - the page to currently show images foreditedResource - the currently edited resource (currentPage for which editing is done)public CurrentPageImageSelectorWizardStep(ResourceName currentPage)
currentPage - the currently edited page| Method Detail |
|---|
protected java.lang.String getSelectHelpLabel()
getSelectHelpLabel in class AbstractListSelectorWizardStep<ImageConfig,Attachment>protected java.lang.String getSelectErrorMessage()
getSelectErrorMessage in class AbstractListSelectorWizardStep<ImageConfig,Attachment>protected void fetchData(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Attachment>> callback)
fetchData in class AbstractListSelectorWizardStep<ImageConfig,Attachment>callback - the callback to notify when the fetching is done.protected void fillList(java.util.List<Attachment> itemsList)
fillList in class AbstractListSelectorWizardStep<ImageConfig,Attachment>itemsList - the list of items to select frompublic java.lang.String getNextStep()
getNextStep in interface WizardSteppublic java.lang.String getStepTitle()
getStepTitle in interface WizardStepprotected void saveSelectedValue()
saveSelectedValue in class AbstractListSelectorWizardStep<ImageConfig,Attachment>AbstractListSelectorWizardStep.onSubmit(AsyncCallback)protected ListItem<Attachment> getListItem(Attachment image)
getListItem in class AbstractListSelectorWizardStep<ImageConfig,Attachment>image - the data to build a list item representation for.
protected ListItem<Attachment> getNewOptionListItem()
getNewOptionListItem in class AbstractListSelectorWizardStep<ImageConfig,Attachment>null if no such item
should be appended to the list.protected java.lang.String getSelection()
getSelection in class AbstractListSelectorWizardStep<ImageConfig,Attachment>#matchesSelection(AbstractSelectorWizardStep, String) to handle selection preserving upon update
in this step's list.#matchesSelection(AbstractSelectorWizardStep, String)
protected boolean matchesSelection(Attachment item,
java.lang.String selection)
matchesSelection in class AbstractListSelectorWizardStep<ImageConfig,Attachment>item - the item to compare with the selectionselection - the unique representation of the step's selection
true if the item matches the selection, false otherwise.AbstractListSelectorWizardStep.getSelection()public void setCurrentPage(ResourceName currentPage)
AbstractListSelectorWizardStep.refreshList(AsyncCallback).
currentPage - the currentPage to setpublic void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<ListItem<Attachment>> event)
onSelection in interface com.google.gwt.event.logical.shared.SelectionHandler<ListItem<Attachment>>public void setWikiService(WikiServiceAsync wikiService)
wikiService - the service used to retrieve the list of image attachments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||