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;
35 private static final Image
FORWARD_IMAGE =
new Image(
"/org/sleuthkit/autopsy/timeline/images/arrow.png", 16, 16,
true,
true,
true);
39 @NbBundle.Messages({
"Forward.text=Forward",
40 "# {0} - action accelerator keys ",
41 "Forward.longText=Forward: {0}\nGo forward to the next view settings."})
43 super(Bundle.Forward_text());
46 setGraphic(
new ImageView(FORWARD_IMAGE));
47 setAccelerator(
new KeyCodeCombination(KeyCode.RIGHT, KeyCodeCombination.ALT_DOWN));
48 setLongText(Bundle.Forward_longText(getAccelerator().getDisplayText()));
49 setEventHandler(actionEvent -> controller.advance());
51 disabledProperty().bind(controller.canAdvanceProperty().not());
final TimeLineController controller
static final Image FORWARD_IMAGE
Forward(TimeLineController controller)