Go to the documentation of this file.
19package org.sleuthkit.autopsy.communications.relationships;
21import java.awt.CardLayout;
22import javax.swing.JTable;
23import javax.swing.SwingUtilities;
24import javax.swing.table.TableColumn;
25import org.openide.explorer.ExplorerManager;
26import static org.openide.explorer.ExplorerUtils.createLookup;
27import org.openide.explorer.view.OutlineView;
28import org.openide.nodes.Node;;
29import org.openide.util.Lookup;
38public class OutlineViewPanel extends javax.swing.JPanel implements ExplorerManager.Provider, Lookup.Provider{
46 tableEm =
new ExplorerManager();
68 SwingUtilities.invokeLater(() -> {
69 CardLayout layout = (CardLayout)this.getLayout();
70 layout.show(
this,
"messageCard");
79 SwingUtilities.invokeLater(() -> {
80 CardLayout layout = (CardLayout)this.getLayout();
81 layout.show(
this,
"outlineCard");
100 super.setEnabled(enabled);
116 for (
int i = 0; i < table.getColumnModel().getColumnCount(); i++) {
117 total += percentages[i];
120 for (
int i = 0; i < table.getColumnModel().getColumnCount(); i++) {
121 TableColumn column = table.getColumnModel().getColumn(i);
122 column.setPreferredWidth((
int) (table.getPreferredSize().width * (percentages[i] / total)));
131 @SuppressWarnings(
"unchecked")
135 outlineView =
new org.openide.explorer.view.OutlineView();
139 setLayout(
new java.awt.CardLayout(5, 5));
144 messageLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
145 org.openide.awt.Mnemonics.setLocalizedText(
messageLabel, org.openide.util.NbBundle.getMessage(
OutlineViewPanel.class,
"OutlineViewPanel.messageLabel.text"));
javax.swing.JLabel messageLabel
org.openide.explorer.view.OutlineView outlineView
final ExplorerManager tableEm
void setTableColumnsWidth(double... percentages)
ExplorerManager getExplorerManager()
javax.swing.JPanel messagePanel
OutlineView getOutlineView()
void setEnabled(boolean enabled)
void hideOutlineView(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.