Go to the documentation of this file.
19package org.sleuthkit.autopsy.datasourcesummary.uiutils;
21import java.awt.BorderLayout;
22import javax.swing.JLabel;
23import org.apache.commons.lang3.StringUtils;
33 private final JLabel
label =
new JLabel();
34 private final String
key;
43 setLayout(
new BorderLayout());
44 add(
label, BorderLayout.CENTER);
49 String formattedKey = StringUtils.isBlank(
key) ?
"" :
key;
50 String formattedValue = StringUtils.isBlank(value) ?
"" : value;
51 label.setText(String.format(
"%s: %s", formattedKey, formattedValue));
55 protected void setMessage(
boolean visible, String message) {
synchronized void showResults(T data)
void setValue(String value)
LoadableLabel(String key)
void setResults(String data)
static final long serialVersionUID
void setMessage(boolean visible, String message)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.