예제 #1
0
 public void insert(Model_Kantor kantor) throws ParseException {
   ArrayList<Model_Kantor> temp = view();
   temp.add(kantor);
   ioFile.writeFile(convert(temp));
 }
예제 #2
0
 public void update(Model_Kantor kantor) throws ParseException {
   ArrayList<Model_Kantor> temp = view();
   temp.set(getIndex(kantor.getId()), kantor);
   ioFile.writeFile(convert(temp));
 }
예제 #3
0
 public void init(ArrayList<Model_Kantor> kantor) throws ParseException {
   ioFile.writeFile(convert(kantor));
 }
예제 #4
0
 public void delete(String id) throws ParseException {
   ArrayList<Model_Kantor> temp = view();
   temp.remove(getIndex(id));
   ioFile.writeFile(convert(temp));
 }