KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > businesslogic > ireport > gui > docking > PanelView


1 /*
2  * Copyright (C) 2005 - 2006 JasperSoft Corporation. All rights reserved.
3  * http://www.jaspersoft.com.
4  *
5  * Unless you have purchased a commercial license agreement from JasperSoft,
6  * the following license terms apply:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as published by
10  * the Free Software Foundation.
11  *
12  * This program is distributed WITHOUT ANY WARRANTY; and without the
13  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
18  * or write to:
19  *
20  * Free Software Foundation, Inc.,
21  * 59 Temple Place - Suite 330,
22  * Boston, MA USA 02111-1307
23  *
24  *
25  *
26  *
27  * PanelView.java
28  *
29  * Created on January 25, 2006, 5:24 PM
30  *
31  */

32
33 package it.businesslogic.ireport.gui.docking;
34
35 import java.awt.Component JavaDoc;
36
37 /**
38  *
39  * @author gtoffoli
40  */

41 public class PanelView {
42     
43     private static int ID = 0;
44     
45     private String JavaDoc name = "";
46     private Component JavaDoc component = null;
47     private int position = 0;
48     private boolean closable = false;
49     private boolean minimized = false;
50     private int id = 0;
51     
52     /**
53      * Used only for drag'n'drop operations...
54      */

55     private DockingContainer dockingContainer = null;
56     
57     /** Creates a new instance of PanelView */
58     public PanelView(String JavaDoc name, Component JavaDoc component, int position, boolean closable) {
59     
60             this.component = component;
61             this.name = name;
62             this.position = position;
63             this.closable = closable;
64             setId(ID++);
65     }
66
67     public String JavaDoc getName() {
68         return name;
69     }
70
71     public void setName(String JavaDoc name) {
72         this.name = name;
73     }
74
75     public Component JavaDoc getComponent() {
76         return component;
77     }
78
79     public void setComponent(Component JavaDoc component) {
80         this.component = component;
81     }
82
83     public int getPosition() {
84         return position;
85     }
86
87     public void setPosition(int position) {
88         this.position = position;
89     }
90
91     public DockingContainer getDockingContainer() {
92         return dockingContainer;
93     }
94
95     public void setDockingContainer(DockingContainer dockingContainer) {
96         this.dockingContainer = dockingContainer;
97     }
98
99     public boolean isClosable() {
100         return closable;
101     }
102
103     public void setClosable(boolean closable) {
104         this.closable = closable;
105     }
106
107     public boolean isMinimized() {
108         return minimized;
109     }
110
111     public void setMinimized(boolean minimized) {
112         this.minimized = minimized;
113     }
114
115     public int getId() {
116         return id;
117     }
118
119     public void setId(int id) {
120         this.id = id;
121     }
122     
123 }
124
Popular Tags