public abstract class AbstractExplorerWizardStep extends AbstractSelectorWizardStep<EntityLink<LinkConfig>> implements SourcesNavigationEvents, com.smartgwt.client.widgets.grid.events.RecordDoubleClickHandler, com.smartgwt.client.widgets.events.KeyPressHandler
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(boolean addPage,
boolean showAttachments,
boolean addAttachments)
Builds a
AbstractExplorerWizardStep from the passed settings. |
protected |
AbstractExplorerWizardStep(boolean addPage,
boolean showAttachments,
boolean addAttachments,
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. |
protected void |
invalidateExplorerData()
Invalidates the cache on the explorer, so that it will be reloaded on next display.
|
void |
onCancel() |
void |
onKeyPress(com.smartgwt.client.widgets.events.KeyPressEvent event) |
void |
onRecordDoubleClick(com.smartgwt.client.widgets.grid.events.RecordDoubleClickEvent event) |
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(boolean addPage,
boolean showAttachments,
boolean addAttachments)
AbstractExplorerWizardStep from the passed settings.addPage - specifies whether the wiki explorer should show the option to add a pageshowAttachments - specifies whether the wiki explorer should show the attached files for pagesaddAttachments - specifies whether the wiki explorer should show the option to add an attachmentprotected AbstractExplorerWizardStep(boolean addPage,
boolean showAttachments,
boolean addAttachments,
int width,
int height)
AbstractExplorerWizardStep from the passed settings, with parameters for size. addPage - specifies whether the wiki explorer should show the option to add a pageshowAttachments - specifies whether the wiki explorer should show the attached files for pagesaddAttachments - specifies whether the wiki explorer should show the option to add an attachmentwidth - explorer width in pixelsheight - explorer height in pixelspublic void setHelpLabelText(String helpLabelText)
helpLabelText - the new help messageprotected void invalidateExplorerData()
public 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>>WizardStep.init(Object, AsyncCallback)protected void initializeSelection(com.google.gwt.user.client.rpc.AsyncCallback<?> initCallback)
AbstractSelectorWizardStep.init(Object, AsyncCallback) time.initializeSelection in class AbstractSelectorWizardStep<EntityLink<LinkConfig>>initCallback - the initialization callback, to handle asynchronous initializationAbstractSelectorWizardStep.initializeSelection(AsyncCallback)protected 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 onRecordDoubleClick(com.smartgwt.client.widgets.grid.events.RecordDoubleClickEvent event)
onRecordDoubleClick in interface com.smartgwt.client.widgets.grid.events.RecordDoubleClickHandlerpublic void onKeyPress(com.smartgwt.client.widgets.events.KeyPressEvent event)
onKeyPress in interface com.smartgwt.client.widgets.events.KeyPressHandlerprotected void updateLinkConfig(EntityReference selectedEntityReference)
selectedEntityReference - a reference to the selected entitypublic void onCancel()
onCancel in interface WizardStepWizardStep.onCancel()Copyright © 2004–2014 XWiki. All rights reserved.