public class SearchSelectorWizardStep extends AbstractPageListSelectorWizardStep implements com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.KeyPressHandler
| Constructor and Description |
|---|
SearchSelectorWizardStep(WikiServiceAsync wikiService)
Creates a new page selector from search results.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fetchData(com.google.gwt.user.client.rpc.AsyncCallback<List<WikiPage>> callback)
Fetches the list of items to be displayed in this list from the server.
|
String |
getKeyword() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event) |
void |
setActive()
Notifies this wizard step that it has been activated, when part of an aggregator for example.
|
void |
setKeyword(String keyword) |
getListItem, getNewOptionListItem, getNextStep, getSelectErrorMessage, getSelectHelpLabel, getWikiService, serializeDocumentReferenceisSelectedByDefault, saveSelectedValueaddNavigationListener, display, displayError, fillList, getErrorLabel, getList, getSelectedItem, hideError, init, onCancel, onDoubleClick, onKeyUp, onSubmit, refreshList, removeNavigationListener, setNewOptionOnTopgetData, getResult, initializeSelectiongetStepTitle, isAutoSubmit, setStepTitlegetDirectionName, getValidDirections, setDirectionName, setNextStep, setValidDirectionspublic SearchSelectorWizardStep(WikiServiceAsync wikiService)
wikiService - the service used to search wiki pagespublic void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerprotected void fetchData(com.google.gwt.user.client.rpc.AsyncCallback<List<WikiPage>> callback)
AbstractListSelectorWizardStepfetchData in class AbstractListSelectorWizardStep<EntityLink<LinkConfig>,WikiPage>callback - the callback to notify when the fetching is done.public String getKeyword()
public void setKeyword(String keyword)
keyword - the keyword to setpublic void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandlerpublic 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 AbstractListSelectorWizardStep<EntityLink<LinkConfig>,WikiPage>Copyright © 2004–2017 XWiki. All rights reserved.