19 package org.sleuthkit.autopsy.timeline.ui;
21 import javafx.fxml.FXML;
22 import javafx.scene.control.Label;
23 import javafx.scene.control.ProgressBar;
24 import javafx.scene.control.ToolBar;
25 import javafx.scene.layout.HBox;
26 import javafx.scene.layout.Priority;
27 import javafx.scene.layout.Region;
28 import org.openide.util.NbBundle;
62 assert refreshLabel != null :
"fx:id=\"refreshLabel\" was not injected: check your FXML file 'StatusBar.fxml'.";
63 assert progressBar != null :
"fx:id=\"progressBar\" was not injected: check your FXML file 'StatusBar.fxml'.";
64 assert spacer != null :
"fx:id=\"spacer\" was not injected: check your FXML file 'StatusBar.fxml'.";
65 assert taskLabel != null :
"fx:id=\"taskLabel\" was not injected: check your FXML file 'StatusBar.fxml'.";
66 assert messageLabel != null :
"fx:id=\"messageLabel\" was not injected: check your FXML file 'StatusBar.fxml'.";
67 refreshLabel.setVisible(
false);
68 refreshLabel.setText(NbBundle.getMessage(
this.getClass(),
"StatusBar.refreshLabel.text"));
69 messageLabel.setText(NbBundle.getMessage(
this.getClass(),
"StatusBar.messageLabel.text"));
70 taskLabel.setText(NbBundle.getMessage(
this.getClass(),
"StatusBar.taskLabel.text"));
71 taskLabel.setVisible(
false);
72 HBox.setHgrow(spacer, Priority.ALWAYS);
79 taskLabel.textProperty().bind(this.controller.
getTaskTitle());
80 messageLabel.textProperty().bind(this.controller.
getMessage());
81 progressBar.progressProperty().bind(this.controller.
getProgress());
82 taskLabel.visibleProperty().bind(this.controller.
getTasks().emptyProperty().not());
TimeLineController controller
static void construct(Node n, String fxmlFileName)
synchronized ReadOnlyStringProperty getMessage()
synchronized ReadOnlyDoubleProperty getProgress()
ReadOnlyBooleanProperty getNewEventsFlag()
synchronized ReadOnlyStringProperty getTaskTitle()
void setController(TimeLineController controller)
synchronized ReadOnlyListProperty< Task<?> > getTasks()