Skip to content

Commit

Permalink
GSLinks/GSTable: Use ReactorStatics.DISABLED constant
Browse files Browse the repository at this point in the history
  • Loading branch information
fducroquet committed Jul 29, 2016
1 parent 70b798c commit b8afc7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void content() {
};
new GSCheckBoxEditor(this) {
{
addAttribute("disabled", "disabled");
addAttribute(ReactorStatics.DISABLED, ReactorStatics.DISABLED);
select(gs -> Boolean.class.equals(gs[0].getMeta().getInstanceValueClassConstraint()) ? gs[0] : null);
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ protected void footer() {
addStyle("margin-bottom", "1px");
new GSButton(this) {
{
bindAttribute("disabled", ReactorStatics.DISABLED, model -> {
bindAttribute(ReactorStatics.DISABLED, ReactorStatics.DISABLED, model -> {
ObservableValue<Boolean> observable = new CheckInputsValidityVisitor(model).isInvalid();
return Bindings.createStringBinding(() -> Boolean.TRUE.equals(observable.getValue()) ? "disabled" : "", observable);
return Bindings.createStringBinding(() -> Boolean.TRUE.equals(observable.getValue()) ? ReactorStatics.DISABLED : "", observable);
});
bindAction(modelContext -> {
try {
Expand Down

0 comments on commit b8afc7d

Please sign in to comment.