use of io.github.vocabhunter.gui.common.UnsavedResponse in project VocabHunter by VocabHunter.
the class UnsavedChangesDialogue method unsavedResponseMap.
private Map<ButtonType, UnsavedResponse> unsavedResponseMap() {
Map<ButtonType, UnsavedResponse> map = new LinkedHashMap<>();
map.put(new ButtonType("Save"), UnsavedResponse.SAVE);
map.put(new ButtonType("Discard"), UnsavedResponse.DISCARD);
map.put(new ButtonType("Cancel"), UnsavedResponse.CANCEL);
return map;
}
Aggregations