Esempio n. 1
0
 @Override
 protected void load(ExploreSetting setting) {
   maze2.setSelected(setting.isMaze2());
   maze3.setSelected(setting.isMaze3());
   maze4.setSelected(setting.isMaze4());
   maze5.setSelected(setting.isMaze5());
   maze6.setSelected(setting.isMaze6());
   maze7.setSelected(setting.isMaze7());
   maze8.setSelected(setting.isMaze8());
   noChip.setSelected(setting.isNoChip());
   noThief.setSelected(setting.isNoThief());
   energyTf.setIntegerValue(setting.getEnergy());
   hour.setIntegerValue(setting.getHour());
   minute.setIntegerValue(setting.getMinute());
   auto.setSelected(setting.isAuto());
 }
Esempio n. 2
0
 @Override
 protected void save(ExploreSetting setting) {
   setting.setMaze2(maze2.isSelected());
   setting.setMaze3(maze3.isSelected());
   setting.setMaze4(maze4.isSelected());
   setting.setMaze5(maze5.isSelected());
   setting.setMaze6(maze6.isSelected());
   setting.setMaze7(maze7.isSelected());
   setting.setMaze8(maze8.isSelected());
   setting.setNoChip(noChip.isSelected());
   setting.setNoThief(noThief.isSelected());
   setting.setEnergy(energyTf.getIntegerValue());
   setting.setHour(hour.getIntegerValue());
   setting.setMinute(minute.getIntegerValue());
   setting.setAuto(auto.isSelected());
 }