/*- * Copyright (C) 2008 Erik Larsson * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.catacombae.hfsexplorer.gui; import org.catacombae.csjc.structelements.Dictionary; import org.catacombae.csjc.structelements.Array; /** * @author <a href="http://www.catacombae.org/" target="_top">Erik Larsson</a> */ public class StructViewPanel extends javax.swing.JPanel { public StructViewPanel(String label, Dictionary dict) { this(label, dict, false); } public StructViewPanel(String label, Dictionary dict, boolean noRootEntry) { this(); containerPanel.add(new InternalStructViewPanel(label, dict, noRootEntry)); } public StructViewPanel(String label, String tooltip, Dictionary dict) { this(); containerPanel.add(new InternalStructViewPanel(label, tooltip, dict, false)); } public StructViewPanel(String label, Array array) { this(); containerPanel.add(new InternalStructViewPanel(label, array)); } public StructViewPanel(String label, String tooltip, Array array) { this(); containerPanel.add(new InternalStructViewPanel(label, tooltip, array)); } /** Creates new form StructViewPanel */ private StructViewPanel() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { containerPanel = new javax.swing.JPanel(); containerPanel.setLayout(new java.awt.BorderLayout()); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(containerPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(containerPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JPanel containerPanel; // End of variables declaration//GEN-END:variables }