|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep<EntityLink<LinkConfig>>
org.xwiki.gwt.wysiwyg.client.plugin.link.ui.AbstractExplorerWizardStep
public abstract class AbstractExplorerWizardStep
Wizard step to provide an interface to selecting a wiki resource, using an XWikiExplorer.
| Field Summary | |
|---|---|
protected static java.lang.String |
FIELD_ERROR_STYLE
The style of the fields under error. |
| Constructor Summary | |
|---|---|
|
AbstractExplorerWizardStep(WikiServiceAsync wikiService,
boolean addPage,
boolean showAttachments,
boolean addAttachments)
Builds a AbstractExplorerWizardStep from the passed settings. |
protected |
AbstractExplorerWizardStep(WikiServiceAsync wikiService,
boolean addPage,
boolean showAttachments,
boolean addAttachments,
int width,
int height)
Builds a AbstractExplorerWizardStep from the passed settings, with parameters for size. |
| Method Summary | |
|---|---|
void |
addNavigationListener(NavigationListener listener)
|
com.google.gwt.user.client.ui.Widget |
display()
|
protected void |
displayError(java.lang.String errorMessage)
Displays the passed error message and markers in this wizard step. |
XWikiExplorer |
getExplorer()
|
java.lang.String |
getStepTitle()
|
protected WikiServiceAsync |
getWikiService()
|
protected void |
hideError()
Hides the error messages and markers in this wizard step. |
void |
init(java.lang.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(java.lang.String helpLabelText)
Sets the help message to be displayed on top of the explorer tree. |
void |
setStepTitle(java.lang.String stepTitle)
Sets the step title. |
protected void |
updateLinkConfig(EntityReference selectedEntityReference,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> callback)
Updates the link configuration object based on the selected entity. |
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep |
|---|
getData, getDirectionName, getResult, getValidDirections, setActive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xwiki.gwt.user.client.ui.wizard.WizardStep |
|---|
getNextStep, onSubmit |
| Field Detail |
|---|
protected static final java.lang.String FIELD_ERROR_STYLE
| Constructor Detail |
|---|
public AbstractExplorerWizardStep(WikiServiceAsync wikiService,
boolean addPage,
boolean showAttachments,
boolean addAttachments)
AbstractExplorerWizardStep from the passed settings.
wikiService - the service to be used to parse and serialize entity referencesaddPage - 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 attachment
protected AbstractExplorerWizardStep(WikiServiceAsync wikiService,
boolean addPage,
boolean showAttachments,
boolean addAttachments,
int width,
int height)
AbstractExplorerWizardStep from the passed settings, with parameters for size.
wikiService - the service to be used to parse and serialize entity referencesaddPage - 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 pixels| Method Detail |
|---|
public void setHelpLabelText(java.lang.String helpLabelText)
helpLabelText - the new help messageprotected void invalidateExplorerData()
public com.google.gwt.user.client.ui.Widget display()
display in interface WizardSteppublic XWikiExplorer getExplorer()
public void init(java.lang.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)
AbstractSelectorWizardStep.init(Object, AsyncCallback) time.
initializeSelection in class AbstractSelectorWizardStep<EntityLink<LinkConfig>>initCallback - the initialization callback, to handle asynchronous initialization.AbstractSelectorWizardStep.initializeSelection(AsyncCallback)protected void displayError(java.lang.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.KeyPressHandler
protected void updateLinkConfig(EntityReference selectedEntityReference,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> callback)
selectedEntityReference - a reference to the selected entitycallback - the object to be notified after the link configuration object has been updatedprotected WikiServiceAsync getWikiService()
public void onCancel()
onCancel in interface WizardStepWizardStep.onCancel()public java.lang.String getStepTitle()
getStepTitle in interface WizardStepWizardStep.getStepTitle()public void setStepTitle(java.lang.String stepTitle)
stepTitle - the new step title
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||