public class LinkConfigWizardStep extends AbstractInteractiveWizardStep implements SourcesNavigationEvents, com.google.gwt.event.dom.client.KeyPressHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_STYLE_NAME
The default style of the link configuration dialog.
|
static String |
ERROR_LABEL_STYLE
The style of the error labels in this form.
|
protected static String |
FIELD_ERROR_STYLE
The style of the fields under error.
|
static String |
HELP_LABEL_STYLE
The style of the description labels in this form.
|
static String |
INFO_LABEL_STYLE
The style of the information labels in this form.
|
| Constructor and Description |
|---|
LinkConfigWizardStep(WikiServiceAsync wikiService)
Creates a new link configuration wizard step.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNavigationListener(NavigationListener listener) |
protected void |
displayLabelError(String errorMessage)
Display the label error message and markers.
|
protected EntityLink<LinkConfig> |
getData() |
NavigationListener.NavigationDirection |
getDefaultDirection() |
protected com.google.gwt.user.client.ui.Label |
getLabelErrorLabel() |
protected com.google.gwt.user.client.ui.TextBox |
getLabelTextBox() |
protected String |
getLabelTextBoxTooltip() |
com.google.gwt.user.client.ui.CheckBox |
getNewWindowCheckBox() |
Object |
getResult() |
com.google.gwt.user.client.ui.TextBox |
getTooltipTextBox() |
protected String |
getTooltipTextBoxTooltip() |
protected WikiServiceAsync |
getWikiService() |
protected void |
hideErrors()
Hides the error message and markers for this dialog.
|
void |
init(Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> callback) |
void |
onCancel() |
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event) |
void |
onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async) |
void |
removeNavigationListener(NavigationListener listener) |
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
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.
|
display, getStepTitle, isAutoSubmit, setStepTitlegetDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirectionspublic static final String DEFAULT_STYLE_NAME
public static final String INFO_LABEL_STYLE
public static final String HELP_LABEL_STYLE
public static final String ERROR_LABEL_STYLE
protected static final String FIELD_ERROR_STYLE
public LinkConfigWizardStep(WikiServiceAsync wikiService)
wikiService - the service to be used for parsing the image reference in case the link label is an imagepublic void init(Object data, com.google.gwt.user.client.rpc.AsyncCallback<?> callback)
init in interface WizardStepprotected void setFocus()
protected com.google.gwt.user.client.ui.TextBox getLabelTextBox()
protected String getLabelTextBoxTooltip()
protected String getTooltipTextBoxTooltip()
public com.google.gwt.user.client.ui.TextBox getTooltipTextBox()
public com.google.gwt.user.client.ui.CheckBox getNewWindowCheckBox()
public void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
onSubmit in interface WizardStepprotected boolean validateForm()
true if the form is valid and data can be saved, false otherwise.protected void saveForm(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
validateForm() returns true.callback - the object to be notified after the form is savedpublic void onCancel()
onCancel in interface WizardSteppublic Object getResult()
getResult in interface WizardSteppublic NavigationListener.NavigationDirection getDefaultDirection()
public void addNavigationListener(NavigationListener listener)
addNavigationListener in interface SourcesNavigationEventspublic void removeNavigationListener(NavigationListener listener)
removeNavigationListener in interface SourcesNavigationEventspublic void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandlerKeyPressHandler.onKeyPress(KeyPressEvent)protected void displayLabelError(String errorMessage)
errorMessage - the error message to display.protected void hideErrors()
protected com.google.gwt.user.client.ui.Label getLabelErrorLabel()
protected EntityLink<LinkConfig> getData()
protected WikiServiceAsync getWikiService()
Copyright © 2004–2015 XWiki. All rights reserved.