Revision 10718 branches/piloto3d/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/catalogClient/gui/ConnectDialog.java
ConnectDialog.java | ||
---|---|---|
61 | 61 |
* @author luisw |
62 | 62 |
*/ |
63 | 63 |
public class ConnectDialog extends ServerConnectDialogPanel implements IWindow { |
64 |
/** |
|
64 |
public WindowInfo m_windowInfo = null; |
|
65 |
|
|
66 |
/** |
|
65 | 67 |
* Constructor de la ventana de dialogo. |
66 | 68 |
*/ |
67 | 69 |
public ConnectDialog() { |
... | ... | |
93 | 95 |
addCurrentHost(); |
94 | 96 |
closeJDialog(); |
95 | 97 |
|
96 |
JDialog panel = new JDialog((Frame) PluginServices.getMainFrame(), false); |
|
97 |
Frames.searchDialogPosition(panel, 525, 163); |
|
98 |
panel.setTitle(Messages.getText("catalog_search") + " [" + |
|
99 |
getCurrentServer() + "]"); |
|
100 |
panel.setResizable(false); |
|
101 |
|
|
102 |
SearchDialog dialog = new SearchDialog(panel,this,getClient()); |
|
98 |
SearchDialog dialog = new SearchDialog(this,getClient()); |
|
103 | 99 |
dialog.setCurrentServer(getCurrentServer()); |
104 |
|
|
105 |
panel.getContentPane().add(dialog); |
|
106 |
panel.show(); |
|
100 |
PluginServices.getMDIManager().addCentredWindow(dialog); |
|
107 | 101 |
} |
108 | 102 |
|
109 | 103 |
/** |
... | ... | |
128 | 122 |
* Close the dialog |
129 | 123 |
*/ |
130 | 124 |
public void closeJDialog() { |
131 |
setVisible(false); |
|
132 | 125 |
PluginServices.getMDIManager().closeWindow(ConnectDialog.this); |
133 | 126 |
} |
134 | 127 |
|
... | ... | |
136 | 129 |
* @see com.iver.andami.ui.mdiManager.View#getViewInfo() |
137 | 130 |
*/ |
138 | 131 |
public WindowInfo getWindowInfo() { |
139 |
WindowInfo m_viewinfo = new WindowInfo(WindowInfo.MODALDIALOG); |
|
140 |
m_viewinfo.setTitle(Messages.getText("metadata_catalog")); |
|
141 |
|
|
142 |
return m_viewinfo; |
|
132 |
if (m_windowInfo == null){ |
|
133 |
m_windowInfo = new WindowInfo(WindowInfo.MODALDIALOG); |
|
134 |
m_windowInfo.setTitle(Messages.getText("metadata_catalog")); |
|
135 |
m_windowInfo.setHeight(200); |
|
136 |
m_windowInfo.setWidth(600); |
|
137 |
} |
|
138 |
return m_windowInfo; |
|
143 | 139 |
} |
144 | 140 |
} |
Also available in: Unified diff