Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libCorePlugin / src / org / gvsig / coreplugin / mdiManager / frames / InternalFrame.java @ 29630

History | View | Annotate | Download (5.19 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package org.gvsig.coreplugin.mdiManager.frames;
42

    
43
import javax.swing.JInternalFrame;
44

    
45
/**
46
 * @author Cesar Martinez Izquierdo <cesar.martinez@iver.es>
47
 *
48
 */
49
public class InternalFrame extends JInternalFrame implements IFrame {
50
        private static final long serialVersionUID = 1L;
51
        
52
           /** 
53
     * Creates a non-resizable, non-closable, non-maximizable,
54
     * non-iconifiable <code>JInternalFrame</code> with no title.
55
     */
56
    public InternalFrame() {
57
        super();
58
    }
59

    
60
    /** 
61
     * Creates a non-resizable, non-closable, non-maximizable,
62
     * non-iconifiable <code>JInternalFrame</code> with the specified title.
63
     * Note that passing in a <code>null</code> <code>title</code> results in
64
     * unspecified behavior and possibly an exception.
65
     *
66
     * @param title  the non-<code>null</code> <code>String</code>
67
     *     to display in the title bar
68
     */
69
    public InternalFrame(String title) {
70
        super(title);
71
    }
72

    
73
    /** 
74
     * Creates a non-closable, non-maximizable, non-iconifiable 
75
     * <code>JInternalFrame</code> with the specified title
76
     * and resizability.
77
     *
78
     * @param title      the <code>String</code> to display in the title bar
79
     * @param resizable  if <code>true</code>, the internal frame can be resized
80
     */
81
    public InternalFrame(String title, boolean resizable) {
82
        super(title, resizable);
83
    }
84

    
85
    /** 
86
     * Creates a non-maximizable, non-iconifiable <code>JInternalFrame</code>
87
     * with the specified title, resizability, and
88
     * closability.
89
     *
90
     * @param title      the <code>String</code> to display in the title bar
91
     * @param resizable  if <code>true</code>, the internal frame can be resized
92
     * @param closable   if <code>true</code>, the internal frame can be closed
93
     */
94
    public InternalFrame(String title, boolean resizable, boolean closable) {
95
        super(title, resizable, closable);
96
    }
97

    
98
    /** 
99
     * Creates a non-iconifiable <code>JInternalFrame</code>
100
     * with the specified title,
101
     * resizability, closability, and maximizability.
102
     *
103
     * @param title       the <code>String</code> to display in the title bar
104
     * @param resizable   if <code>true</code>, the internal frame can be resized
105
     * @param closable    if <code>true</code>, the internal frame can be closed
106
     * @param maximizable if <code>true</code>, the internal frame can be maximized
107
     */
108
    public InternalFrame(String title, boolean resizable, boolean closable,
109
                          boolean maximizable) {
110
        super(title, resizable, closable, maximizable);
111
    }
112

    
113
    /** 
114
     * Creates a <code>JInternalFrame</code> with the specified title,
115
     * resizability, closability, maximizability, and iconifiability.
116
     * All <code>JInternalFrame</code> constructors use this one.
117
     *
118
     * @param title       the <code>String</code> to display in the title bar
119
     * @param resizable   if <code>true</code>, the internal frame can be resized
120
     * @param closable    if <code>true</code>, the internal frame can be closed
121
     * @param maximizable if <code>true</code>, the internal frame can be maximized
122
     * @param iconifiable if <code>true</code>, the internal frame can be iconified
123
     */
124
    public InternalFrame(String title, boolean resizable, boolean closable, 
125
                                boolean maximizable, boolean iconifiable) {
126
        
127
             super(title, resizable, closable, maximizable, iconifiable);
128
    }
129

    
130

    
131
        /* (non-Javadoc)
132
         * @see com.iver.core.mdiManager.frames.IFrame#setHeight(int)
133
         */
134
        public void setHeight(int height) {
135
                super.setSize(getWidth(), height);
136
        }
137

    
138
        /* (non-Javadoc)
139
         * @see com.iver.core.mdiManager.frames.IFrame#setWidth(int)
140
         */
141
        public void setWidth(int width) {
142
                super.setSize(width, getHeight());
143
        }
144

    
145
        /* (non-Javadoc)
146
         * @see com.iver.core.mdiManager.frames.IFrame#setX(int)
147
         */
148
        public void setX(int x) {
149
                super.setLocation(x, getX());
150
        }
151

    
152
        /* (non-Javadoc)
153
         * @see com.iver.core.mdiManager.frames.IFrame#setY(int)
154
         */
155
        public void setY(int y) {
156
                super.setLocation(y, getY());
157
        }
158

    
159
}