org.xwiki.gwt.wysiwyg.client.plugin.link.ui
Class SearchSelectorWizardStep
java.lang.Object
org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep
org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep<D>
org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractListSelectorWizardStep<EntityLink<C>,E>
org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractEntityListSelectorWizardStep<LinkConfig,WikiPage>
org.xwiki.gwt.wysiwyg.client.plugin.link.ui.AbstractPageListSelectorWizardStep
org.xwiki.gwt.wysiwyg.client.plugin.link.ui.SearchSelectorWizardStep
- All Implemented Interfaces:
- com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.DoubleClickHandler, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.shared.EventHandler, SourcesNavigationEvents, WizardStep
public class SearchSelectorWizardStep
- extends AbstractPageListSelectorWizardStep
- implements com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.KeyPressHandler
Wizard step to select the wiki page to link to, from the page search results for a keyword.
- Version:
- $Id: 9e5c96a14632ec42cf4ed97789e96b276809b10b $
|
Method Summary |
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)
|
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractListSelectorWizardStep |
addNavigationListener, display, displayError, fillList, getErrorLabel, getList, getSelectedItem, hideError, init, onCancel, onDoubleClick, onKeyUp, onSubmit, refreshList, removeNavigationListener, setNewOptionOnTop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchSelectorWizardStep
public SearchSelectorWizardStep(WikiServiceAsync wikiService)
- Creates a new page selector from search results.
- Parameters:
wikiService - the service used to search wiki pages
onClick
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
-
- Specified by:
onClick in interface com.google.gwt.event.dom.client.ClickHandler
- See Also:
ClickHandler.onClick(ClickEvent)
fetchData
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.
- Specified by:
fetchData in class AbstractListSelectorWizardStep<EntityLink<LinkConfig>,WikiPage>
- Parameters:
callback - the callback to notify when the fetching is done.
getKeyword
public String getKeyword()
- Returns:
- the keyword
setKeyword
public void setKeyword(String keyword)
- Parameters:
keyword - the keyword to set
onKeyPress
public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
-
- Specified by:
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler
- See Also:
KeyPressHandler.onKeyPress(KeyPressEvent)
setActive
public void setActive()
- Notifies this wizard step that it has been activated, when part of an aggregator for example.
FIXME: 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.
- Overrides:
setActive in class AbstractListSelectorWizardStep<EntityLink<LinkConfig>,WikiPage>
Copyright © 2004–2015 XWiki. All rights reserved.