public abstract class AbstractExternalLinkWizardStep extends LinkConfigWizardStep
DEFAULT_STYLE_NAME, ERROR_LABEL_STYLE, FIELD_ERROR_STYLE, HELP_LABEL_STYLE, INFO_LABEL_STYLE| Constructor and Description |
|---|
AbstractExternalLinkWizardStep(WikiServiceAsync wikiService)
Creates a new wizard step for configuring links to external entities.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
displayURLError(String errorMessage)
Displays the URL error message and markers.
|
protected String |
getURL()
Subclasses can overwrite this method to adjust the URL the user has set.
|
protected abstract String |
getURLErrorMessage() |
protected abstract String |
getURLHelpLabel() |
protected abstract String |
getURLLabel() |
com.google.gwt.user.client.ui.TextBox |
getUrlTextBox() |
protected String |
getURLTextBoxTooltip() |
protected void |
hideErrors()
Hides the error message and markers for this dialog.
|
void |
init(Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb) |
protected void |
saveForm(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Saves the form values in this step's data, to be called only when
LinkConfigWizardStep.validateForm() returns true. |
protected void |
setFocus()
Sets the default focus in this wizard step.
|
protected void |
setURL(String url)
Fills the URL text box with the given URL.
|
protected boolean |
validateForm()
Validates this step's form and displays errors if needed.
|
addNavigationListener, displayLabelError, getData, getDefaultDirection, getLabelErrorLabel, getLabelTextBox, getLabelTextBoxTooltip, getNewWindowCheckBox, getResult, getTooltipTextBox, getTooltipTextBoxTooltip, getWikiService, onCancel, onKeyPress, onSubmit, removeNavigationListenerdisplay, getStepTitle, isAutoSubmit, setStepTitlegetDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirectionspublic AbstractExternalLinkWizardStep(WikiServiceAsync wikiService)
wikiService - the service to be used for parsing the image reference when the link label is an imagepublic void init(Object data, com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
init in interface WizardStepinit in class LinkConfigWizardStepprotected void setFocus()
LinkConfigWizardStepsetFocus in class LinkConfigWizardStepprotected boolean validateForm()
LinkConfigWizardStepvalidateForm in class LinkConfigWizardSteptrue if the form is valid and data can be saved, false otherwise.protected void saveForm(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
LinkConfigWizardStepLinkConfigWizardStep.validateForm() returns true.saveForm in class LinkConfigWizardStepcallback - the object to be notified after the form is savedpublic com.google.gwt.user.client.ui.TextBox getUrlTextBox()
protected abstract String getURLLabel()
protected abstract String getURLHelpLabel()
protected abstract String getURLErrorMessage()
protected String getURL()
protected void setURL(String url)
url - the URL to fill the text box withprotected String getURLTextBoxTooltip()
protected void hideErrors()
LinkConfigWizardStephideErrors in class LinkConfigWizardStepprotected void displayURLError(String errorMessage)
errorMessage - the error message to displayCopyright © 2004–2017 XWiki. All rights reserved.