Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
VolumeDetailsPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2018 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.directorytree;
20 
21 import java.awt.event.ActionListener;
22 
26 @SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
27 class VolumeDetailsPanel extends javax.swing.JPanel {
28 
32  VolumeDetailsPanel() {
33  initComponents();
34  }
35 
41  @SuppressWarnings("unchecked")
42  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
43  private void initComponents() {
44 
45  jPanel1 = new javax.swing.JPanel();
46  flagsValue = new javax.swing.JLabel();
47  descValue = new javax.swing.JLabel();
48  lengthValue = new javax.swing.JLabel();
49  startValue = new javax.swing.JLabel();
50  startLabel = new javax.swing.JLabel();
51  lengthLabel = new javax.swing.JLabel();
52  jLabel1 = new javax.swing.JLabel();
53  volumeIDLabel = new javax.swing.JLabel();
54  volumeIDValue = new javax.swing.JLabel();
55  descLabel = new javax.swing.JLabel();
56  flagsLabel = new javax.swing.JLabel();
57  OKButton = new javax.swing.JButton();
58 
59  flagsValue.setFont(flagsValue.getFont().deriveFont(flagsValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
60  flagsValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.flagsValue.text")); // NOI18N
61 
62  descValue.setFont(descValue.getFont().deriveFont(descValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
63  descValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.descValue.text")); // NOI18N
64 
65  lengthValue.setFont(lengthValue.getFont().deriveFont(lengthValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
66  lengthValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.lengthValue.text")); // NOI18N
67 
68  startValue.setFont(startValue.getFont().deriveFont(startValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
69  startValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.startValue.text")); // NOI18N
70 
71  startLabel.setFont(startLabel.getFont().deriveFont(startLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
72  startLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.startLabel.text")); // NOI18N
73 
74  lengthLabel.setFont(lengthLabel.getFont().deriveFont(lengthLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
75  lengthLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.lengthLabel.text")); // NOI18N
76 
77  jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getStyle() | java.awt.Font.BOLD, 18));
78  jLabel1.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.jLabel1.text")); // NOI18N
79 
80  volumeIDLabel.setFont(volumeIDLabel.getFont().deriveFont(volumeIDLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
81  volumeIDLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.volumeIDLabel.text")); // NOI18N
82 
83  volumeIDValue.setFont(volumeIDValue.getFont().deriveFont(volumeIDValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
84  volumeIDValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.volumeIDValue.text")); // NOI18N
85 
86  descLabel.setFont(descLabel.getFont().deriveFont(descLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
87  descLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.descLabel.text")); // NOI18N
88 
89  flagsLabel.setFont(flagsLabel.getFont().deriveFont(flagsLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
90  flagsLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.flagsLabel.text")); // NOI18N
91 
92  javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
93  jPanel1.setLayout(jPanel1Layout);
94  jPanel1Layout.setHorizontalGroup(
95  jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
96  .addGroup(jPanel1Layout.createSequentialGroup()
97  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
98  .addGroup(jPanel1Layout.createSequentialGroup()
99  .addGap(112, 112, 112)
100  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
101  .addComponent(startLabel)
102  .addComponent(volumeIDLabel)
103  .addComponent(lengthLabel)
104  .addComponent(descLabel)
105  .addComponent(flagsLabel))
106  .addGap(18, 18, 18)
107  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
108  .addComponent(flagsValue)
109  .addComponent(descValue)
110  .addComponent(lengthValue)
111  .addComponent(startValue)
112  .addComponent(volumeIDValue)))
113  .addGroup(jPanel1Layout.createSequentialGroup()
114  .addGap(59, 59, 59)
115  .addComponent(jLabel1)))
116  .addContainerGap(58, Short.MAX_VALUE))
117  );
118  jPanel1Layout.setVerticalGroup(
119  jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
120  .addGroup(jPanel1Layout.createSequentialGroup()
121  .addContainerGap()
122  .addComponent(jLabel1)
123  .addGap(11, 11, 11)
124  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
125  .addComponent(volumeIDLabel)
126  .addComponent(volumeIDValue))
127  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
128  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
129  .addComponent(startLabel)
130  .addComponent(startValue))
131  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
132  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
133  .addComponent(lengthLabel)
134  .addComponent(lengthValue))
135  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
136  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
137  .addGroup(jPanel1Layout.createSequentialGroup()
138  .addComponent(descLabel)
139  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
140  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
141  .addComponent(flagsLabel)
142  .addComponent(flagsValue)))
143  .addGroup(jPanel1Layout.createSequentialGroup()
144  .addComponent(descValue)
145  .addGap(25, 25, 25)))
146  .addContainerGap(29, Short.MAX_VALUE))
147  );
148 
149  OKButton.setFont(OKButton.getFont().deriveFont(OKButton.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
150  OKButton.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.OKButton.text")); // NOI18N
151 
152  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
153  this.setLayout(layout);
154  layout.setHorizontalGroup(
155  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
156  .addGroup(layout.createSequentialGroup()
157  .addContainerGap()
158  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
159  .addGroup(layout.createSequentialGroup()
160  .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
161  .addContainerGap())
162  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
163  .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
164  .addGap(145, 145, 145))))
165  );
166  layout.setVerticalGroup(
167  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
168  .addGroup(layout.createSequentialGroup()
169  .addContainerGap()
170  .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
171  .addGap(18, 18, 18)
172  .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
173  .addContainerGap())
174  );
175  }// </editor-fold>//GEN-END:initComponents
176 
177  public void setVolumeIDValue(String arg) {
178  volumeIDValue.setText(arg);
179  }
180 
181  public void setStartValue(String arg) {
182  startValue.setText(arg);
183  }
184 
185  public void setLengthValue(String arg) {
186  lengthValue.setText(arg);
187  }
188 
189  public void setDescValue(String arg) {
190  descValue.setText(arg);
191  }
192 
193  public void setFlagsValue(String arg) {
194  flagsValue.setText(arg);
195  }
196 
197  public void setOKButtonActionListener(ActionListener e) {
198  OKButton.addActionListener(e);
199  }
200 
201  // Variables declaration - do not modify//GEN-BEGIN:variables
202  private javax.swing.JButton OKButton;
203  private javax.swing.JLabel descLabel;
204  private javax.swing.JLabel descValue;
205  private javax.swing.JLabel flagsLabel;
206  private javax.swing.JLabel flagsValue;
207  private javax.swing.JLabel jLabel1;
208  private javax.swing.JPanel jPanel1;
209  private javax.swing.JLabel lengthLabel;
210  private javax.swing.JLabel lengthValue;
211  private javax.swing.JLabel startLabel;
212  private javax.swing.JLabel startValue;
213  private javax.swing.JLabel volumeIDLabel;
214  private javax.swing.JLabel volumeIDValue;
215  // End of variables declaration//GEN-END:variables
216 
217 }

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.