|
||||||||||
| 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
public class LinkConfigWizardStep
Default implementation for the link configuration parameters, such as link labels, link tooltip, or opening the link in a new window or not.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_STYLE_NAME
The default style of the link configuration dialog. |
static java.lang.String |
ERROR_LABEL_STYLE
The style of the error labels in this form. |
protected static java.lang.String |
FIELD_ERROR_STYLE
The style of the fields under error. |
static java.lang.String |
HELP_LABEL_STYLE
The style of the description labels in this form. |
static java.lang.String |
INFO_LABEL_STYLE
The style of the information labels in this form. |
| Constructor Summary | |
|---|---|
LinkConfigWizardStep(WikiServiceAsync wikiService)
Creates a new link configuration wizard step. |
|
| Method Summary | |
|---|---|
void |
addNavigationListener(NavigationListener listener)
|
com.google.gwt.user.client.ui.Widget |
display()
|
protected void |
displayLabelError(java.lang.String errorMessage)
Display the label error message and markers. |
protected EntityLink<LinkConfig> |
getData()
|
NavigationListener.NavigationDirection |
getDefaultDirection()
|
java.lang.String |
getDirectionName(NavigationListener.NavigationDirection direction)
|
protected com.google.gwt.user.client.ui.Label |
getLabelErrorLabel()
|
protected com.google.gwt.user.client.ui.TextBox |
getLabelTextBox()
|
protected java.lang.String |
getLabelTextBoxTooltip()
|
com.google.gwt.user.client.ui.Panel |
getMainPanel()
|
com.google.gwt.user.client.ui.CheckBox |
getNewWindowCheckBox()
|
java.lang.String |
getNextStep()
|
java.lang.Object |
getResult()
|
java.lang.String |
getStepTitle()
|
com.google.gwt.user.client.ui.TextBox |
getTooltipTextBox()
|
protected java.lang.String |
getTooltipTextBoxTooltip()
|
java.util.EnumSet<NavigationListener.NavigationDirection> |
getValidDirections()
. |
protected WikiServiceAsync |
getWikiService()
|
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<?> callback)
|
void |
onCancel()
|
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
|
void |
onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
|
void |
removeNavigationListener(NavigationListener listener)
|
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 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_STYLE_NAME
public static final java.lang.String INFO_LABEL_STYLE
public static final java.lang.String HELP_LABEL_STYLE
public static final java.lang.String ERROR_LABEL_STYLE
protected static final java.lang.String FIELD_ERROR_STYLE
| Constructor Detail |
|---|
public LinkConfigWizardStep(WikiServiceAsync wikiService)
wikiService - the service to be used for parsing the image reference in case the link label is an image| Method Detail |
|---|
public void init(java.lang.Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> callback)
init in interface WizardStepprotected void setFocus()
public com.google.gwt.user.client.ui.Widget display()
display in interface WizardSteppublic com.google.gwt.user.client.ui.Panel getMainPanel()
protected com.google.gwt.user.client.ui.TextBox getLabelTextBox()
protected java.lang.String getLabelTextBoxTooltip()
protected java.lang.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<java.lang.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<java.lang.Boolean> callback)
validateForm() returns true.
callback - the object to be notified after the form is savedpublic void onCancel()
onCancel in interface WizardSteppublic java.lang.Object getResult()
getResult in interface WizardSteppublic java.lang.String getNextStep()
getNextStep in interface WizardSteppublic java.lang.String getStepTitle()
getStepTitle in interface WizardSteppublic java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()
getValidDirections in interface WizardSteppublic java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)
getDirectionName 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(java.lang.String errorMessage)
errorMessage - the error message to display.protected void hideErrors()
protected com.google.gwt.user.client.ui.Label getLabelErrorLabel()
protected EntityLink<LinkConfig> getData()
WizardStepprotected WikiServiceAsync getWikiService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||