Search in sources :

Example 1 with UnsavedResponse

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;
}
Also used : UnsavedResponse(io.github.vocabhunter.gui.common.UnsavedResponse) ButtonType(javafx.scene.control.ButtonType) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

UnsavedResponse (io.github.vocabhunter.gui.common.UnsavedResponse)1 LinkedHashMap (java.util.LinkedHashMap)1 ButtonType (javafx.scene.control.ButtonType)1