19 package org.sleuthkit.autopsy.datasourcesummary.uiutils;
21 import java.awt.BorderLayout;
22 import javax.swing.JLabel;
23 import 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) {
void setValue(String value)
LoadableLabel(String key)
synchronized void showResults(T data)
void setMessage(boolean visible, String message)
static final long serialVersionUID
void setResults(String data)