Enable filtering whenever checkbox is changed
@@ -364,10 +364,13 @@ public String get() {
}
UICheckbox libraryCheckBox = find("libraryCheckbox", UICheckbox.class);
+ libraryCheckBox.setChecked(selectModulesConfig.isLibraryChecked());
+ libraryCheckBox.subscribe(e -> {
libraryCheckBox.bindChecked(
new Binding<Boolean>() {
@Override
public Boolean get() {
+ filterModules();
return selectModulesConfig.isLibraryChecked();
}
@@ -378,12 +381,16 @@ public void set(Boolean value) {
}
}
);
+ });
UICheckbox assetCheckBox = find("assetCheckbox", UICheckbox.class);
+ assetCheckBox.setChecked(selectModulesConfig.isAssetplayChecked());
+ assetCheckBox.subscribe(e -> {
assetCheckBox.bindChecked(
new Binding<Boolean>() {
@Override
public Boolean get() {
+ filterModules();
return selectModulesConfig.isAssetplayChecked();
}
@@ -394,12 +401,16 @@ public void set(Boolean value) {
}
}
);
+ });
UICheckbox worldCheckBox = find("worldCheckbox", UICheckbox.class);
+ worldCheckBox.setChecked(selectModulesConfig.isWorldChecked());
+ worldCheckBox.subscribe(e -> {
worldCheckBox.bindChecked(
new Binding<Boolean>() {
@Override
public Boolean get() {
+ filterModules();
return selectModulesConfig.isWorldChecked();
}
@@ -410,12 +421,16 @@ public void set(Boolean value) {
}
}
);
+ });
UICheckbox gameplayCheckBox = find("gameplayCheckbox", UICheckbox.class);
+ gameplayCheckBox.setChecked(selectModulesConfig.isGameplayChecked());
+ gameplayCheckBox.subscribe(e -> {
gameplayCheckBox.bindChecked(
new Binding<Boolean>() {
@Override
public Boolean get() {
+ filterModules();
return selectModulesConfig.isGameplayChecked();
}
@@ -426,12 +441,16 @@ public void set(Boolean value) {
}
}
);
+ });
UICheckbox augmentationCheckBox = find("augmentationCheckbox", UICheckbox.class);
+ augmentationCheckBox.setChecked(selectModulesConfig.isAugmentationChecked());
+ augmentationCheckBox.subscribe(e -> {
augmentationCheckBox.bindChecked(
new Binding<Boolean>() {
@Override
public Boolean get() {
+ filterModules();
return selectModulesConfig.isAugmentationChecked();
}
@@ -443,11 +462,16 @@ public void set(Boolean value) {
}
);
+ });
+
UICheckbox specialCheckBox = find("specialCheckbox", UICheckbox.class);
+ specialCheckBox.setChecked(selectModulesConfig.isSpecialChecked());
+ specialCheckBox.subscribe(e ->{
specialCheckBox.bindChecked(
new Binding<Boolean>() {
@Override
public Boolean get() {
+ filterModules();
return selectModulesConfig.isSpecialChecked();
}
@@ -457,12 +481,16 @@ public void set(Boolean value) {
}
}
);
+ });
localOnlyCheckbox = find("localOnlyCheckbox", UICheckbox.class);
+ localOnlyCheckbox.setChecked(selectModulesConfig.isLocalOnlyChecked());
+ localOnlyCheckbox.subscribe(e -> {
localOnlyCheckbox.bindChecked(
new Binding<Boolean>() {
@Override
public Boolean get() {
+ filterModules();
return selectModulesConfig.isLocalOnlyChecked();
}
@@ -473,11 +501,14 @@ public void set(Boolean value) {
}
}
);
-
+ });
+ filterModules();
+ /**
activateAdvancedFilter = find("activateFilter", UIButton.class);
activateAdvancedFilter.subscribe(e -> {
filterModules();
});
+ */
}
