19 package org.sleuthkit.autopsy.timeline.actions;
21 import javafx.scene.image.Image;
22 import javafx.scene.image.ImageView;
23 import javafx.scene.input.KeyCode;
24 import javafx.scene.input.KeyCodeCombination;
25 import org.controlsfx.control.action.Action;
26 import org.openide.util.NbBundle;
33 public class Back extends Action {
35 private static final Image
BACK_IMAGE =
new Image(
"/org/sleuthkit/autopsy/timeline/images/arrow-180.png", 16, 16,
true,
true,
true);
39 @NbBundle.Messages({
"Back.text=Back",
40 "# {0} - action accelerator keys ",
41 "Back.longText=Back: {0}\nGo back to the last view settings."})
43 super(Bundle.Back_text());
46 setGraphic(
new ImageView(BACK_IMAGE));
47 setAccelerator(
new KeyCodeCombination(KeyCode.LEFT, KeyCodeCombination.ALT_DOWN));
48 setLongText(Bundle.Back_longText(getAccelerator().getDisplayText()));
49 setEventHandler(actionEvent -> controller.retreat());
51 disabledProperty().bind(controller.canRetreatProperty().not());
final TimeLineController controller
static final Image BACK_IMAGE
Back(TimeLineController controller)