-
- All Known Subinterfaces:
FxComponent,FxTextComponent
- All Known Implementing Classes:
AbstractTextFieldDelegate,FxCheckBox,FxCheckBoxDelegate,FxChoiceBox,FxChoiceBoxDelegate,FxColorPicker,FxColorPickerDelegate,FxComboBox,FxComboBoxDelegate,FxComponentDelegate,FxDatePicker,FxDatePickerDelegate,FxHTMLEditor,FxHTMLEditorDelegate,FxListView,FxListViewDelegate,FxPasswordField,FxPasswordFieldDelegate,FxRadioButton,FxRadioButtonDelegate,FxTableView,FxTableViewDelegate,FxTextArea,FxTextAreaDelegate,FxTextComponentDelegate,FxTextField,FxTextFieldDelegate,FxToggleButton,FxToggleButtonDelegate,FxTreeTableView,FxTreeTableViewDelegate,FxTreeView,FxTreeViewDelegate,TotalsTableView
public interface ErrorPopupSupportedControls that support error popups must implement this interface.- Author:
- harald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetError()Gets the error message.voidhideErrorPopup()Hides the error popup if shown.booleanisErrorTemporary()Returns whether this is a temporary error.
Temporary errors are set by the value translators typically if some parsing failed.voidsetError(java.lang.String error)Sets the error message.
Notice that an empty string will set the style but dows not show any popup.voidsetErrorTemporary(boolean errorTemporary)Sets the temporary error flag.voidshowErrorPopup()Shows the error popup.
Requires the error message set.
-
-
-
Method Detail
-
getError
java.lang.String getError()
Gets the error message.- Returns:
- the message, null if no error
-
setError
void setError(java.lang.String error)
Sets the error message.
Notice that an empty string will set the style but dows not show any popup.- Parameters:
error- the error message, null to clear
-
isErrorTemporary
boolean isErrorTemporary()
Returns whether this is a temporary error.
Temporary errors are set by the value translators typically if some parsing failed. Non-temporary are set by the application, for example when a persistence validation failed.- Returns:
- true if temporary error
-
setErrorTemporary
void setErrorTemporary(boolean errorTemporary)
Sets the temporary error flag.- Parameters:
errorTemporary- true if this is a temporary error
-
showErrorPopup
void showErrorPopup()
Shows the error popup.
Requires the error message set.
-
hideErrorPopup
void hideErrorPopup()
Hides the error popup if shown.
-
-