|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep
org.xwiki.gwt.wysiwyg.client.plugin.link.ui.LinkConfigWizardStep
org.xwiki.gwt.wysiwyg.client.plugin.link.ui.AbstractExternalLinkWizardStep
public abstract class AbstractExternalLinkWizardStep
Wizard step to collect the data about an external link (e.g. http: or mailto:). Extends the default link configuration wizard step by adding the field to collect the external link URL.
| Field Summary |
|---|
| Fields inherited from class org.xwiki.gwt.wysiwyg.client.plugin.link.ui.LinkConfigWizardStep |
|---|
DEFAULT_STYLE_NAME, ERROR_LABEL_STYLE, FIELD_ERROR_STYLE, HELP_LABEL_STYLE, INFO_LABEL_STYLE |
| Constructor Summary | |
|---|---|
AbstractExternalLinkWizardStep(WikiServiceAsync wikiService)
Creates a new wizard step for configuring links to external entities. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.link.ui.LinkConfigWizardStep |
|---|
addNavigationListener, displayLabelError, getData, getDefaultDirection, getLabelErrorLabel, getLabelTextBox, getLabelTextBoxTooltip, getNewWindowCheckBox, getResult, getTooltipTextBox, getTooltipTextBoxTooltip, getWikiService, onCancel, onKeyPress, onSubmit, removeNavigationListener |
| Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep |
|---|
display, getStepTitle, isAutoSubmit, setStepTitle |
| Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep |
|---|
getDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirections |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractExternalLinkWizardStep(WikiServiceAsync wikiService)
wikiService - the service to be used for parsing the image reference when the link label is an image| Method Detail |
|---|
public void init(Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
LinkConfigWizardStep
init in interface WizardStepinit in class LinkConfigWizardStepprotected void setFocus()
LinkConfigWizardStep
setFocus in class LinkConfigWizardStepprotected boolean validateForm()
LinkConfigWizardStep
validateForm 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()
LinkConfigWizardStep
hideErrors in class LinkConfigWizardStepprotected void displayURLError(String errorMessage)
errorMessage - the error message to display
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||