mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-12 05:35:31 +00:00
bug5191: Encapsulated HTML statusLabel for safety
This commit is contained in:
1 parent
0dccd0da4c
commit
f56db2d56c
1 file changed
+5
-5
@@ -214,11 +214,11 @@ public abstract class DataEntryDialog<T> {
|
||||
onInvalidStateChanged(invalidState);
|
||||
}
|
||||
if (!invalidState) {
|
||||
getStatusLabel().setHTML(SafeHtmlUtils.fromSafeConstant(" "));
|
||||
statusLabel.setHTML(SafeHtmlUtils.fromSafeConstant(" "));
|
||||
onChange(result);
|
||||
} else {
|
||||
getStatusLabel().setHTML(SafeHtmlUtils.fromString(errorMessage));
|
||||
getStatusLabel().setStyleName("errorLabel");
|
||||
statusLabel.setHTML(SafeHtmlUtils.fromString(errorMessage));
|
||||
statusLabel.setStyleName("errorLabel");
|
||||
}
|
||||
}
|
||||
}, validationExecutor);
|
||||
@@ -622,8 +622,8 @@ public abstract class DataEntryDialog<T> {
|
||||
/**
|
||||
* status label can be used to display status information within the dialog to the user
|
||||
*/
|
||||
protected HTML getStatusLabel() {
|
||||
return statusLabel;
|
||||
protected Label getStatusLabel() {
|
||||
return (Label) statusLabel;
|
||||
}
|
||||
|
||||
protected void setCursor(Style.Cursor cursor) {
|
||||
|
||||
Reference in new issue
Block a user