All Downloads are FREE. Search and download functionalities are using the official Maven repository.

games.rednblack.h2d.common.view.SettingsNodeValue Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy