@Override public Hashtable<Object, Object> createModels(CharacterFacade character) { Hashtable<Object, Object> table = new Hashtable<Object, Object>(); table.put(knownTab, knownTab.createModels(character)); table.put(preparedTab, preparedTab.createModels(character)); table.put(booksTab, booksTab.createModels(character)); return table; }
@Override public void storeModels(Hashtable<Object, Object> state) { knownTab.storeModels((Hashtable<Object, Object>) state.get(knownTab)); preparedTab.storeModels((Hashtable<Object, Object>) state.get(preparedTab)); booksTab.storeModels((Hashtable<Object, Object>) state.get(booksTab)); }
@Override public void restoreModels(Hashtable<?, ?> state) { knownTab.restoreModels((Hashtable<?, ?>) state.get(knownTab)); preparedTab.restoreModels((Hashtable<?, ?>) state.get(preparedTab)); booksTab.restoreModels((Hashtable<?, ?>) state.get(booksTab)); }