Revision 621
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/Panels/AdjustTransparencyPanel.java | ||
---|---|---|
10 | 10 |
import javax.swing.JSlider; |
11 | 11 |
import javax.swing.JTextField; |
12 | 12 |
|
13 |
import com.iver.andami.PluginServices; |
|
14 |
import com.iver.andami.Utilities; |
|
15 |
import com.iver.andami.ui.mdiManager.View; |
|
16 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
|
13 | 17 |
import com.iver.cit.gvsig.fmap.layers.FLyrDefault; |
14 | 18 |
import com.iver.cit.gvsig.gui.GUIUtil; |
15 | 19 |
import com.iver.cit.gvsig.gui.ValidatingTextField; |
16 |
import com.iver.mdiApp.App; |
|
17 |
import com.iver.mdiApp.Utilities; |
|
18 |
import com.iver.mdiApp.ui.MDIManager.View; |
|
19 |
import com.iver.mdiApp.ui.MDIManager.ViewInfo; |
|
20 | 20 |
/** |
21 | 21 |
* Panel de Ajuste de Transparencia. |
22 | 22 |
* @author "Luis W. Sevilla" <sevilla_lui@gva.es> |
... | ... | |
48 | 48 |
this.add(getJSlider(), null); |
49 | 49 |
this.add(getJTxtTransparency(), null); |
50 | 50 |
this.add(getJOkButton(), null); |
51 |
jLabel.setText(Utilities.getMessage(this, "Nivel_de_transparencia")+":");
|
|
52 |
jOkButton.setText(Utilities.getMessage(this, "Aceptar"));
|
|
51 |
jLabel.setText(PluginServices.getText(this, "Nivel_de_transparencia")+":");
|
|
52 |
jOkButton.setText(PluginServices.getText(this, "Aceptar"));
|
|
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
public void setFLayer(FLyrDefault f) { |
... | ... | |
115 | 115 |
*/ |
116 | 116 |
public ViewInfo getViewInfo() { |
117 | 117 |
if (m_ViewInfo==null){ |
118 |
m_ViewInfo=new ViewInfo(); |
|
119 |
m_ViewInfo.setFeatures(ViewInfo.MODELESSDIALOG); |
|
120 |
m_ViewInfo.setResizable(false); |
|
121 |
m_ViewInfo.setTitle(Utilities.getMessage(this,"Ajustar_transparencia")); |
|
118 |
m_ViewInfo=new ViewInfo(ViewInfo.MODELESSDIALOG | ViewInfo.RESIZABLE); |
|
119 |
m_ViewInfo.setTitle(PluginServices.getText(this,"Ajustar_transparencia")); |
|
122 | 120 |
} |
123 | 121 |
return m_ViewInfo; |
124 | 122 |
} |
... | ... | |
130 | 128 |
|
131 | 129 |
} |
132 | 130 |
public void openJDialog() { |
133 |
if (App.instance == null) {
|
|
131 |
if (PluginServices.getMainFrame() == null) {
|
|
134 | 132 |
dlg = new JDialog(); |
135 | 133 |
|
136 | 134 |
setPreferredSize(getSize()); |
... | ... | |
140 | 138 |
dlg.show(); |
141 | 139 |
|
142 | 140 |
} else |
143 |
App.instance.getMDIContext().addView(this);
|
|
141 |
PluginServices.getMDIManager().addView(this);
|
|
144 | 142 |
} |
145 | 143 |
public void closeJDialog() { |
146 | 144 |
fLayer.setTransparency(255 - getAlpha()); |
147 |
if (App.instance == null) {
|
|
145 |
if (PluginServices.getMainFrame() == null) {
|
|
148 | 146 |
dlg.hide(); |
149 | 147 |
dlg.dispose(); |
150 | 148 |
dlg = null; |
151 | 149 |
} else |
152 |
App.instance.getMDIContext().closeView(this);
|
|
150 |
PluginServices.getMDIManager().closeView(this);
|
|
153 | 151 |
|
154 | 152 |
|
155 | 153 |
} |
Also available in: Unified diff