Revision 8969 trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/listeners/OptionsServerWindowListener.java
OptionsServerWindowListener.java | ||
---|---|---|
9 | 9 |
import com.iver.andami.ui.mdiManager.IWindow; |
10 | 10 |
import com.iver.cit.gvsig.publish.gui.OptionsServerWindow; |
11 | 11 |
import com.iver.cit.gvsig.publish.gui.SelectServerWindow; |
12 |
import com.iver.cit.gvsig.publish.gui.panelServices.AttributesLayerWindow;
|
|
12 |
import com.iver.cit.gvsig.publish.gui.panelServices.LayersWindow;
|
|
13 | 13 |
import com.iver.cit.gvsig.publish.servers.GenericServer; |
14 | 14 |
import com.iver.cit.gvsig.publish.servers.PublishControler; |
15 | 15 |
import com.iver.utiles.swing.jcomboServer.ServerData; |
... | ... | |
58 | 58 |
* |
59 | 59 |
* $Id$ |
60 | 60 |
* $Log$ |
61 |
* Revision 1.14 2006-11-22 12:48:21 jorpiell |
|
61 |
* Revision 1.15 2006-11-22 15:57:03 jorpiell |
|
62 |
* Se ha ajustado el interfaz de usuario |
|
63 |
* |
|
64 |
* Revision 1.14 2006/11/22 12:48:21 jorpiell |
|
62 | 65 |
* Subidos algunos cambios para ver las capas en forma de ?rbol |
63 | 66 |
* |
64 | 67 |
* Revision 1.13 2006/11/20 14:17:19 dagilgon |
... | ... | |
129 | 132 |
*/ |
130 | 133 |
public void actionPerformed(ActionEvent e) { |
131 | 134 |
if (e.getActionCommand().equals("last")){ |
132 |
PluginServices.getMDIManager().addCentredWindow(lastWindow);
|
|
133 |
PluginServices.getMDIManager().closeWindow(currentWindow); |
|
134 |
}else if(e.getActionCommand().equals("accept")){
|
|
135 |
PluginServices.getMDIManager().addWindow(lastWindow); |
|
136 |
PluginServices.getMDIManager().closeWindow(currentWindow);
|
|
137 |
}else if(e.getActionCommand().equals("next")){
|
|
135 | 138 |
ServerData serverData = saveServerOptions(); |
136 | 139 |
String brand = serverData.getProperty(GenericServer.GENERIC_SERVER_BRAND); |
137 | 140 |
String type = serverData.getServiceType(); |
138 | 141 |
if (nextWindow == null){ |
139 |
nextWindow = new AttributesLayerWindow(currentWindow);
|
|
142 |
nextWindow = new LayersWindow(currentWindow);
|
|
140 | 143 |
} |
141 |
((AttributesLayerWindow)nextWindow).setPublishControler(createPublishControler(serverData,brand,type)); |
|
142 |
PluginServices.getMDIManager().addCentredWindow(nextWindow); |
|
144 |
((LayersWindow)nextWindow).setPublishControler(createPublishControler(serverData,brand,type)); |
|
145 |
((LayersWindow)nextWindow).setSelectedRoot(); |
|
146 |
PluginServices.getMDIManager().addWindow(nextWindow); |
|
143 | 147 |
PluginServices.getMDIManager().closeWindow(currentWindow); |
144 | 148 |
} |
145 | 149 |
} |
Also available in: Unified diff