Revision 1568
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/Dialogs/CSSelectionDialog.java | ||
---|---|---|
30 | 30 |
* |
31 | 31 |
* @return void |
32 | 32 |
*/ |
33 |
protected void initialize() { |
|
34 |
super.initialize(); |
|
33 |
private void initialize() { |
|
35 | 34 |
this.setBounds(0, 0, 323, 233); |
36 | 35 |
getAcceptButton().addActionListener(new java.awt.event.ActionListener() { |
37 | 36 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
branches/v02_desarrollo/libraries/libCq CMS for java.old/src/org/cresques/ui/DefaultDialogPanel.java | ||
---|---|---|
16 | 16 |
/** |
17 | 17 |
* @author Luis W. Sevilla (sevilla_lui@gva.es) |
18 | 18 |
*/ |
19 |
public class DefaultDialogPanel extends JPanel |
|
20 |
implements AncestorListener { |
|
19 |
public class DefaultDialogPanel extends JPanel { |
|
21 | 20 |
protected JPanel contentPane = null; |
22 | 21 |
private JPanel tabPane = null; |
23 | 22 |
private JPanel buttonPane = null; |
... | ... | |
38 | 37 |
* |
39 | 38 |
* @return void |
40 | 39 |
*/ |
41 |
protected void initialize() {
|
|
40 |
private void initialize() {
|
|
42 | 41 |
//setBounds(0,0,321,230); |
43 | 42 |
//javax.swing.BoxLayout(jContentPane, javax.swing.BoxLayout.Y_AXIS); |
44 | 43 |
//jContentPane.setLayout(new java.awt.GridLayout(2,1)); |
... | ... | |
66 | 65 |
//tabPane.setBounds(6, 7, 309, 189); |
67 | 66 |
tabPane.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.SoftBevelBorder.RAISED)); |
68 | 67 |
tabPane.add(getContentPanel(), null); |
69 |
getContentPanel().addAncestorListener(this); |
|
70 | 68 |
} |
71 | 69 |
return tabPane; |
72 | 70 |
} |
... | ... | |
128 | 126 |
} |
129 | 127 |
return applyButton; |
130 | 128 |
} |
131 |
/* (non-Javadoc) |
|
132 |
* @see javax.swing.event.AncestorListener#ancestorAdded(javax.swing.event.AncestorEvent) |
|
133 |
*/ |
|
134 |
public void ancestorAdded(AncestorEvent event) { |
|
135 |
System.out.println("ancestorAdded"); |
|
136 |
this.dispatchEvent(event); |
|
137 |
} |
|
138 |
|
|
139 |
/* (non-Javadoc) |
|
140 |
* @see javax.swing.event.AncestorListener#ancestorMoved(javax.swing.event.AncestorEvent) |
|
141 |
*/ |
|
142 |
public void ancestorMoved(AncestorEvent event) { |
|
143 |
System.out.println("ancestorMoved"); |
|
144 |
this.dispatchEvent(event); |
|
145 |
} |
|
146 |
|
|
147 |
/* (non-Javadoc) |
|
148 |
* @see javax.swing.event.AncestorListener#ancestorRemoved(javax.swing.event.AncestorEvent) |
|
149 |
*/ |
|
150 |
public void ancestorRemoved(AncestorEvent event) { |
|
151 |
System.out.println("ancestorRemoved"); |
|
152 |
this.dispatchEvent(event); |
|
153 |
} |
|
154 | 129 |
} |
branches/v02_desarrollo/libraries/libCq CMS for java.old/src/org/cresques/ui/cts/CSSelectionDialogPanel.java | ||
---|---|---|
14 | 14 |
* @author "Luis W. Sevilla" <sevilla_lui@gva.es> |
15 | 15 |
*/ |
16 | 16 |
public class CSSelectionDialogPanel extends DefaultDialogPanel { |
17 |
private CSSelectionPanel projPanel = null; |
|
18 |
|
|
19 | 17 |
public CSSelectionDialogPanel() { |
20 | 18 |
super(); |
21 | 19 |
initialize(); |
... | ... | |
26 | 24 |
* |
27 | 25 |
* @return void |
28 | 26 |
*/ |
29 |
protected void initialize() { |
|
30 |
super.initialize(); |
|
27 |
private void initialize() { |
|
31 | 28 |
this.setBounds(0,0,321,230); |
32 | 29 |
|
33 | 30 |
} |
34 | 31 |
public CSSelectionPanel getProjPanel() { |
35 |
if (projPanel == null) { |
|
36 |
projPanel = new CSSelectionPanel("Sistema de referencia"); |
|
37 |
projPanel.setBounds(14, 12, 280, 163); |
|
38 |
|
|
39 |
projPanel.setProjection(ProjectionPool.get("EPSG:32619")); |
|
40 |
} |
|
41 |
return projPanel; |
|
32 |
return (CSSelectionPanel) getContentPanel(); |
|
42 | 33 |
} |
43 | 34 |
|
44 | 35 |
protected JPanel getContentPanel() { |
45 |
return getProjPanel(); |
|
36 |
if (contentPane == null) { |
|
37 |
contentPane = new CSSelectionPanel("Sistema de referencia"); |
|
38 |
contentPane.setBounds(14, 12, 280, 163); |
|
39 |
|
|
40 |
((CSSelectionPanel)contentPane).setProjection(ProjectionPool.get("EPSG:32619")); |
|
41 |
} |
|
42 |
return contentPane; |
|
46 | 43 |
} |
47 | 44 |
} |
48 | 45 |
|
branches/v02_desarrollo/libraries/libCq CMS for java.old/src/org/cresques/ui/raster/RasterPropsDialogPanel.java | ||
---|---|---|
25 | 25 |
* |
26 | 26 |
* @return void |
27 | 27 |
*/ |
28 |
protected void initialize() { |
|
29 |
super.initialize(); |
|
28 |
private void initialize() { |
|
30 | 29 |
this.setBounds(0,0,355,230); |
31 | 30 |
} |
32 | 31 |
|
Also available in: Unified diff