Autopsy  4.17.0
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  */
19 package org.sleuthkit.autopsy.timeline.ui;
20 
21 import javafx.fxml.FXML;
22 import javafx.scene.control.Button;
23 import javafx.scene.control.Label;
24 import javafx.scene.control.ToolBar;
25 import org.controlsfx.control.action.ActionUtils;
26 import org.openide.util.NbBundle;
31 
35 public 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  public HistoryToolBar(TimeLineController controller) {
52  this.controller = controller;
53  FXMLConstructor.construct(this, "HistoryToolBar.fxml");
54  }
55 
56  @FXML
57  @NbBundle.Messages({"HistoryToolBar.historyLabel.text=History"})
58  void initialize() {
59  assert historyLabel != null : "fx:id=\"historyLabel\" was not injected: check your FXML file 'HistoryToolBar.fxml'.";
60  assert backButton != null : "fx:id=\"backButton\" was not injected: check your FXML file 'HistoryToolBar.fxml'.";
61  assert forwardButton != null : "fx:id=\"forwardButton\" was not injected: check your FXML file 'HistoryToolBar.fxml'.";
62 
63  historyLabel.setText(Bundle.HistoryToolBar_historyLabel_text());
64 
65  ActionUtils.configureButton(new Back(controller), backButton);
66  ActionUtils.configureButton(new Forward(controller), forwardButton);
67  }
68 }
HistoryToolBar(TimeLineController controller)
static void construct(Node node, String fxmlFileName)

Copyright © 2012-2021 Basis Technology. Generated on: Tue Jan 19 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.