1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-07-01 23:06:11 -07:00
Abacus/src/main/java/org/nwapw/abacus/fx/ToggleablePlugin.java

30 lines
659 B
Java
Raw Normal View History

package org.nwapw.abacus.fx;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
public class ToggleablePlugin {
private final BooleanProperty enabled;
private final String className;
public ToggleablePlugin(boolean enabled, String className){
this.enabled = new SimpleBooleanProperty();
this.enabled.setValue(enabled);
this.className = className;
}
public BooleanProperty enabledProperty() {
return enabled;
}
public boolean isEnabled() {
return enabled.get();
}
public String getClassName() {
return className;
}
}