|
||||||||||
| 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<LinkConfig,Attachment>
com.xpn.xwiki.wysiwyg.client.plugin.link.ui.CurrentPageAttachmentSelectorWizardStep
public class CurrentPageAttachmentSelectorWizardStep
Wizard step to select a file attached to a page.
| Constructor Summary | |
|---|---|
CurrentPageAttachmentSelectorWizardStep(ResourceName editedResource)
Builds a selector from the attachments of the specified page. |
|
| 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 ListItem<Attachment> |
getListItem(Attachment data)
|
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. |
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 |
setWikiService(WikiServiceAsync wikiService)
Injects the wiki service. |
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractListSelectorWizardStep |
|---|
addNavigationListener, display, displayError, fillList, 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 CurrentPageAttachmentSelectorWizardStep(ResourceName editedResource)
editedResource - the currently edited resource (page for which editing is done)| Method Detail |
|---|
protected java.lang.String getSelectHelpLabel()
getSelectHelpLabel in class AbstractListSelectorWizardStep<LinkConfig,Attachment>protected java.lang.String getSelectErrorMessage()
getSelectErrorMessage in class AbstractListSelectorWizardStep<LinkConfig,Attachment>protected void fetchData(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Attachment>> callback)
fetchData in class AbstractListSelectorWizardStep<LinkConfig,Attachment>callback - the callback to notify when the fetching is done.protected java.lang.String getSelection()
getSelection in class AbstractListSelectorWizardStep<LinkConfig,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<LinkConfig,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()protected ListItem<Attachment> getListItem(Attachment data)
getListItem in class AbstractListSelectorWizardStep<LinkConfig,Attachment>data - the data to build a list item representation for.
protected ListItem<Attachment> getNewOptionListItem()
getNewOptionListItem in class AbstractListSelectorWizardStep<LinkConfig,Attachment>null if no such item
should be appended to the list.public java.lang.String getNextStep()
public java.lang.String getStepTitle()
protected void saveSelectedValue()
saveSelectedValue in class AbstractListSelectorWizardStep<LinkConfig,Attachment>AbstractListSelectorWizardStep.onSubmit(AsyncCallback)public void setWikiService(WikiServiceAsync wikiService)
wikiService - the service used to retrieve the current page attachments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||