Skip to content

Instantly share code, notes, and snippets.

@ennerf
Created May 28, 2022 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ennerf/bdb2696537762efd8054163a68c19967 to your computer and use it in GitHub Desktop.
Save ennerf/bdb2696537762efd8054163a68c19967 to your computer and use it in GitHub Desktop.
UI Config
public class UiConfig {
public boolean getDebugEnabled() {
return debugEnabled.get();
}
public BooleanProperty debugEnabledProperty() {
return debugEnabled;
}
public void setDebugEnabled(boolean debugEnabled) {
this.debugEnabled.set(debugEnabled);
}
public String getUnitLabel() {
return unitLabel.get();
}
public StringProperty unitLabelProperty() {
return unitLabel;
}
public void setUnitLabel(String unitLabel) {
this.unitLabel.set(unitLabel);
}
private final BooleanProperty debugEnabled = new SimpleBooleanProperty(true);
private final StringProperty unitLabel = new SimpleStringProperty("mm");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment