Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
HistoryToolBar.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2016 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package org.sleuthkit.autopsy.timeline.ui;
20
21import javafx.fxml.FXML;
22import javafx.scene.control.Button;
23import javafx.scene.control.Label;
24import javafx.scene.control.ToolBar;
25import org.controlsfx.control.action.ActionUtils;
26import org.openide.util.NbBundle;
27import org.sleuthkit.autopsy.timeline.FXMLConstructor;
28import org.sleuthkit.autopsy.timeline.TimeLineController;
29import org.sleuthkit.autopsy.timeline.actions.Back;
30import org.sleuthkit.autopsy.timeline.actions.Forward;
31
35public class HistoryToolBar extends ToolBar {
36
37 @FXML
38 private Label historyLabel;
39 @FXML
40 private Button backButton;
41 @FXML
42 private Button forwardButton;
43
45
51 @SuppressWarnings("this-escape")
53 this.controller = controller;
54 FXMLConstructor.construct(this, "HistoryToolBar.fxml");
55 }
56
57 @FXML
58 @NbBundle.Messages({"HistoryToolBar.historyLabel.text=History"})
59 void initialize() {
60 assert historyLabel != null : "fx:id=\"historyLabel\" was not injected: check your FXML file 'HistoryToolBar.fxml'.";
61 assert backButton != null : "fx:id=\"backButton\" was not injected: check your FXML file 'HistoryToolBar.fxml'.";
62 assert forwardButton != null : "fx:id=\"forwardButton\" was not injected: check your FXML file 'HistoryToolBar.fxml'.";
63
64 historyLabel.setText(Bundle.HistoryToolBar_historyLabel_text());
65
66 ActionUtils.configureButton(new Back(controller), backButton);
67 ActionUtils.configureButton(new Forward(controller), forwardButton);
68 }
69}
static void construct(Node node, String fxmlFileName)

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.