|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 java.lang.String |
buildURL()
Builds an URL to the external resource to be linked from the user input, adding protocols, parsing user input, etc. |
com.google.gwt.user.client.ui.Widget |
display()
|
protected void |
displayURLError(java.lang.String errorMessage)
Displays the URL error message and markers. |
protected abstract java.lang.String |
getURLErrorMessage()
|
protected abstract java.lang.String |
getURLHelpLabel()
|
protected abstract java.lang.String |
getURLLabel()
|
com.google.gwt.user.client.ui.TextBox |
getUrlTextBox()
|
protected java.lang.String |
getURLTextBoxTooltip()
|
protected void |
hideErrors()
Hides the error message and markers for this dialog. |
void |
init(java.lang.Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
|
protected void |
saveForm(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.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 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, getDirectionName, getLabelErrorLabel, getLabelTextBox, getLabelTextBoxTooltip, getMainPanel, getNewWindowCheckBox, getNextStep, getResult, getStepTitle, getTooltipTextBox, getTooltipTextBoxTooltip, getValidDirections, getWikiService, onCancel, onKeyPress, onSubmit, removeNavigationListener |
| 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(java.lang.Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
init in interface WizardStepinit in class LinkConfigWizardStepprotected void setFocus()
setFocus in class LinkConfigWizardSteppublic com.google.gwt.user.client.ui.Widget display()
display in interface WizardStepdisplay in class LinkConfigWizardStepprotected boolean validateForm()
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<java.lang.Boolean> callback)
LinkConfigWizardStep.validateForm() returns true.
saveForm in class LinkConfigWizardStepcallback - the object to be notified after the form is savedLinkConfigWizardStep.saveForm(AsyncCallback)public com.google.gwt.user.client.ui.TextBox getUrlTextBox()
protected abstract java.lang.String getURLLabel()
protected abstract java.lang.String getURLHelpLabel()
protected abstract java.lang.String getURLErrorMessage()
protected java.lang.String buildURL()
protected java.lang.String getURLTextBoxTooltip()
protected void hideErrors()
hideErrors in class LinkConfigWizardStepprotected void displayURLError(java.lang.String errorMessage)
errorMessage - the error message to display
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||