001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * PanelView.java
028: *
029: * Created on January 25, 2006, 5:24 PM
030: *
031: */
032:
033: package it.businesslogic.ireport.gui.docking;
034:
035: import java.awt.Component;
036:
037: /**
038: *
039: * @author gtoffoli
040: */
041: public class PanelView {
042:
043: private static int ID = 0;
044:
045: private String name = "";
046: private Component component = null;
047: private int position = 0;
048: private boolean closable = false;
049: private boolean minimized = false;
050: private int id = 0;
051:
052: /**
053: * Used only for drag'n'drop operations...
054: */
055: private DockingContainer dockingContainer = null;
056:
057: /** Creates a new instance of PanelView */
058: public PanelView(String name, Component component, int position,
059: boolean closable) {
060:
061: this .component = component;
062: this .name = name;
063: this .position = position;
064: this .closable = closable;
065: setId(ID++);
066: }
067:
068: public String getName() {
069: return name;
070: }
071:
072: public void setName(String name) {
073: this .name = name;
074: }
075:
076: public Component getComponent() {
077: return component;
078: }
079:
080: public void setComponent(Component component) {
081: this .component = component;
082: }
083:
084: public int getPosition() {
085: return position;
086: }
087:
088: public void setPosition(int position) {
089: this .position = position;
090: }
091:
092: public DockingContainer getDockingContainer() {
093: return dockingContainer;
094: }
095:
096: public void setDockingContainer(DockingContainer dockingContainer) {
097: this .dockingContainer = dockingContainer;
098: }
099:
100: public boolean isClosable() {
101: return closable;
102: }
103:
104: public void setClosable(boolean closable) {
105: this .closable = closable;
106: }
107:
108: public boolean isMinimized() {
109: return minimized;
110: }
111:
112: public void setMinimized(boolean minimized) {
113: this .minimized = minimized;
114: }
115:
116: public int getId() {
117: return id;
118: }
119:
120: public void setId(int id) {
121: this.id = id;
122: }
123:
124: }
|