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