public SplitNode(Integer id, Integer programId) { super(id, programId); DataBank.loadSplits(this); if (splits.size() < 4) { DataBank.createNewSplit("target", this, true); } }
public void updateSplitEnabled(Integer splitId, Boolean enabled) { for (Split split : splits) { if (split.getId().equals(splitId)) { split.setEnabled(enabled); DataBank.saveSplit(split); } } }
public void updateSplitTarget(Integer splitId, String target) { for (Split split : splits) { if (split.getId().equals(splitId)) { split.setTarget(target); DataBank.saveSplit(split); } } }
public SplitNode(Double x, Double y, String containedText) { super(x, y, 50.0, 40.0, Color.BLACK, containedText, -1, -1); DataBank.loadSplits(this); }