![]() |
|||
PanelContainer.javaGo to the documentation of this file.00001 /* 00002 * PanelContainer.java 00003 * 00004 * Created on 7 octobre 2003, 16:11 00005 * 00006 * Copyright (C) 2003 Philippe MOULIN 00007 * www.net2map.org 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * as published by the Free Software Foundation; either version 2 00012 * of the License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 */ 00023 00024 package org.net2map.pov.gui; 00025 00026 import java.util.*; 00027 import javax.swing.JTabbedPane; 00028 00033 public class PanelContainer extends org.net2map.pov.gui.Panel 00034 { 00035 public static final int TABS_ON_TOP_MODE = 10; 00036 public static final int TABS_AT_BOTTOM_MODE = 11; 00037 public static final int TABS_AT_LEFT_MODE = 12; 00038 public static final int TABS_AT_RIGHT_MODE = 13; 00039 00040 public static final int LINE_MODE = 20; 00041 public static final int COLUMN_MODE = 21; 00042 00043 public static final int HORIZONTAL_SCROLLBAR_MODE = 30; 00044 public static final int VERTICAL_SCROLLBAR_MODE = 31; 00045 00046 private int mode = TABS_ON_TOP_MODE; 00047 //private JTabbedPane theTabbedPane = new JTabbedPane(); 00048 00049 private LinkedList panelList = new LinkedList(); 00050 00052 public PanelContainer(String paramName, 00053 String paramTooltip, 00054 int paramMode) 00055 { 00056 super(paramName,paramTooltip); 00057 mode = paramMode; 00058 initComponents(); 00059 00060 } 00061 00062 public void addPanel(org.net2map.pov.gui.Panel thePanel) 00063 { 00064 panelList.add(thePanel); 00065 jTabbedPane1.addTab(thePanel.getName(),null,thePanel,thePanel.getTooltip()); 00066 00067 } 00068 00069 public void setTabPlacement(int tabPlacement) 00070 { 00071 jTabbedPane1.setTabPlacement(tabPlacement); 00072 } 00073 00079 private void initComponents()//GEN-BEGIN:initComponents 00080 { 00081 jTabbedPane1 = new javax.swing.JTabbedPane(); 00082 00083 setLayout(new java.awt.BorderLayout()); 00084 00085 setBorder(new javax.swing.border.TitledBorder("PanelContainer")); 00086 add(jTabbedPane1, java.awt.BorderLayout.CENTER); 00087 00088 }//GEN-END:initComponents 00089 00090 00091 // Variables declaration - do not modify//GEN-BEGIN:variables 00092 private javax.swing.JTabbedPane jTabbedPane1; 00093 // End of variables declaration//GEN-END:variables 00094 00095 } |
|||
|
Accueil | Téléchargement | Manuel
| Doc. technique | Sources CVS |
Faq | Nous contacter
©2003 - All Rights Reserved |
|||