Go to the documentation of this file.
19package org.sleuthkit.autopsy.timeline.ui;
21import java.time.ZoneOffset;
23import java.util.TimeZone;
24import javafx.beans.value.ObservableValue;
25import javafx.fxml.FXML;
26import javafx.scene.control.RadioButton;
27import javafx.scene.control.TitledPane;
28import javafx.scene.control.Toggle;
29import javafx.scene.control.ToggleGroup;
30import org.openide.util.NbBundle;
31import org.sleuthkit.autopsy.timeline.FXMLConstructor;
32import org.sleuthkit.autopsy.timeline.TimeLineController;
50 final String
id = ZoneOffset.ofTotalSeconds(timeZone.getOffset(System.currentTimeMillis()) / 1000).getId();
51 final String timeZoneString =
"(GMT" + (
"Z".equals(
id) ?
"+00:00" :
id) +
") " + timeZone.getID() +
" [" + timeZone.getDisplayName(timeZone.observesDaylightTime() && timeZone.inDaylightTime(
new Date()), TimeZone.SHORT) +
"]";
52 return timeZoneString;
56 @NbBundle.Messages({
"TimeZonePanel.title=Display Times In:"})
58 setText(Bundle.TimeZonePanel_title());
60 localRadio.setText(NbBundle.getMessage(
this.getClass(),
"TimeZonePanel.localRadio.text"));
61 otherRadio.setText(NbBundle.getMessage(
this.getClass(),
"TimeZonePanel.otherRadio.text"));
65 (ObservableValue<? extends Toggle> observable, Toggle oldValue, Toggle newValue) -> {
74 @SuppressWarnings(
"this-escape")
static void construct(Node node, String fxmlFileName)
static synchronized void setTimeZone(TimeZone timeZone)
static String getTimeZoneString(final TimeZone timeZone)
ToggleGroup localOtherGroup
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.