This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
2020-10-12 16:12:23 +02:00
|
|
|
package envoy.client.data.shortcuts;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import javafx.scene.input.KeyCombination;
|
|
|
|
|
|
|
|
import envoy.client.ui.SceneContext;
|
|
|
|
|
|
|
|
/**
|
2020-10-19 18:17:51 +02:00
|
|
|
* Provides methods to set the keyboard shortcuts for a specific scene. Should only be implemented
|
|
|
|
* by controllers of scenes so that these methods can automatically be called inside
|
|
|
|
* {@link SceneContext} as soon as the underlying FXML file has been loaded.
|
2020-10-12 16:12:23 +02:00
|
|
|
*
|
|
|
|
* @author Leon Hofmeister
|
|
|
|
* @since Envoy Client v0.3-beta
|
|
|
|
*/
|
|
|
|
public interface KeyboardMapping {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return all keyboard shortcuts of a scene
|
|
|
|
* @since Envoy Client v0.3-beta
|
|
|
|
*/
|
|
|
|
Map<KeyCombination, Runnable> getKeyboardShortcuts();
|
|
|
|
}
|