games.rednblack.h2d.common.view.SettingsNodeValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-api Show documentation
Show all versions of common-api Show documentation
Common API to build HyperLap2D plugins
The newest version!
package games.rednblack.h2d.common.view;
import com.kotcrab.vis.ui.widget.VisTable;
import games.rednblack.puremvc.Facade;
public abstract class SettingsNodeValue {
private final VisTable contentTable = new VisTable();
private T settings;
private final String name;
protected Facade facade;
public SettingsNodeValue(String name, Facade facade) {
this.name = name;
contentTable.top().left();
this.facade = facade;
}
public abstract void translateSettingsToView();
public abstract void translateViewToSettings();
public abstract boolean validateSettings();
public abstract boolean requireRestart();
public VisTable getContentTable() {
return contentTable;
}
public String getName() {
return name;
}
public void setSettings(T settings) {
this.settings = settings;
}
public T getSettings() {
return settings;
}
}