public abstract class AbstractExplorerWizardStep extends AbstractSelectorWizardStep<EntityLink<LinkConfig>> implements SourcesNavigationEvents, DoubleClickNodeHandler
XWikiExplorer.| Modifier and Type | Field and Description |
|---|---|
protected static String |
FIELD_ERROR_STYLE
The style of the fields under error.
|
| Modifier | Constructor and Description |
|---|---|
|
AbstractExplorerWizardStep(String treeURL)
Builds a
AbstractExplorerWizardStep from the passed settings. |
protected |
AbstractExplorerWizardStep(String treeURL,
int width,
int height)
Builds a
AbstractExplorerWizardStep from the passed settings, with parameters for size. |
| Modifier and Type | Method and Description |
|---|---|
void |
addNavigationListener(NavigationListener listener) |
VerticalResizePanel |
display() |
protected void |
displayError(String errorMessage)
Displays the passed error message and markers in this wizard step.
|
XWikiExplorer |
getExplorer() |
protected void |
hideError()
Hides the error messages and markers in this wizard step.
|
void |
init(Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb) |
protected void |
initializeSelection(com.google.gwt.user.client.rpc.AsyncCallback<?> initCallback)
Initializes the selection on
AbstractSelectorWizardStep.init(Object, AsyncCallback) time. |
void |
onCancel() |
void |
onDoubleClickNode(DoubleClickNodeEvent event)
Called when a node in the tree is double clicked.
|
void |
removeNavigationListener(NavigationListener listener) |
void |
setHelpLabelText(String helpLabelText)
Sets the help message to be displayed on top of the explorer tree.
|
protected void |
updateLinkConfig(EntityReference selectedEntityReference)
Updates the link configuration object based on the selected entity.
|
getData, getResult, setActivegetStepTitle, isAutoSubmit, setStepTitlegetDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirectionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonSubmitprotected static final String FIELD_ERROR_STYLE
public AbstractExplorerWizardStep(String treeURL)
AbstractExplorerWizardStep from the passed settings.treeURL - the URL of the resource that represents the treeprotected AbstractExplorerWizardStep(String treeURL, int width, int height)
AbstractExplorerWizardStep from the passed settings, with parameters for size.
FIXME: remove the size parameters when the explorer will be correctly sizable from CSS.
treeURL - the URL of the resource that represents the treewidth - explorer width in pixelsheight - explorer height in pixelspublic void setHelpLabelText(String helpLabelText)
helpLabelText - the new help messagepublic VerticalResizePanel display()
display in interface WizardStepdisplay in class AbstractInteractiveWizardSteppublic XWikiExplorer getExplorer()
public void init(Object data, com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
init in interface WizardStepinit in class AbstractSelectorWizardStep<EntityLink<LinkConfig>>protected void initializeSelection(com.google.gwt.user.client.rpc.AsyncCallback<?> initCallback)
AbstractSelectorWizardStepAbstractSelectorWizardStep.init(Object, AsyncCallback) time.initializeSelection in class AbstractSelectorWizardStep<EntityLink<LinkConfig>>initCallback - the initialization callback, to handle asynchronous initializationprotected void displayError(String errorMessage)
errorMessage - the error message to printprotected void hideError()
public void addNavigationListener(NavigationListener listener)
addNavigationListener in interface SourcesNavigationEventspublic void removeNavigationListener(NavigationListener listener)
removeNavigationListener in interface SourcesNavigationEventspublic void onDoubleClickNode(DoubleClickNodeEvent event)
DoubleClickNodeHandleronDoubleClickNode in interface DoubleClickNodeHandlerevent - the event that has been firedprotected void updateLinkConfig(EntityReference selectedEntityReference)
selectedEntityReference - a reference to the selected entitypublic void onCancel()
onCancel in interface WizardStepCopyright © 2004–2016 XWiki. All rights reserved.