Revision 6880 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/filter/FilterDialog.java
FilterDialog.java | ||
---|---|---|
67 | 67 |
import com.iver.andami.PluginServices; |
68 | 68 |
import com.iver.andami.messages.NotificationManager; |
69 | 69 |
import com.iver.andami.ui.mdiManager.IWindow; |
70 |
import com.iver.andami.ui.mdiManager.ViewInfo;
|
|
71 |
import com.iver.andami.ui.mdiManager.ViewListener;
|
|
70 |
import com.iver.andami.ui.mdiManager.WindowInfo;
|
|
71 |
import com.iver.andami.ui.mdiManager.IWindowListener;
|
|
72 | 72 |
import com.iver.cit.gvsig.gui.Table; |
73 | 73 |
import com.iver.utiles.DefaultCharSet; |
74 | 74 |
import com.iver.utiles.StringUtilities; |
... | ... | |
82 | 82 |
* |
83 | 83 |
* @author Fernando Gonz?lez Cort?s |
84 | 84 |
*/ |
85 |
public class FilterDialog extends JPanel implements IWindow, ViewListener {
|
|
85 |
public class FilterDialog extends JPanel implements IWindow, IWindowListener {
|
|
86 | 86 |
private static Logger logger = Logger.getLogger(Table.class.getName()); |
87 | 87 |
private ArrayList expressionListeners = new ArrayList(); |
88 | 88 |
private int position = 0; |
... | ... | |
1010 | 1010 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
1011 | 1011 |
JDateChooser chooser = new JDateChooser(); |
1012 | 1012 |
|
1013 |
PluginServices.getMDIManager().addView(chooser);
|
|
1013 |
PluginServices.getMDIManager().addWindow(chooser);
|
|
1014 | 1014 |
|
1015 | 1015 |
if (chooser.getSelectedDate() != null){ |
1016 | 1016 |
Date selectedDate = chooser.getSelectedDate().getTime(); |
... | ... | |
1049 | 1049 |
} |
1050 | 1050 |
|
1051 | 1051 |
/** |
1052 |
* @see com.iver.mdiApp.ui.MDIManager.IWindow#getViewInfo()
|
|
1052 |
* @see com.iver.mdiApp.ui.MDIManager.IWindow#getWindowInfo()
|
|
1053 | 1053 |
*/ |
1054 |
public ViewInfo getViewInfo() {
|
|
1055 |
ViewInfo vi = new ViewInfo(ViewInfo.ICONIFIABLE);
|
|
1054 |
public WindowInfo getWindowInfo() {
|
|
1055 |
WindowInfo vi = new WindowInfo(WindowInfo.ICONIFIABLE);
|
|
1056 | 1056 |
vi.setWidth(480); |
1057 | 1057 |
vi.setHeight(362); |
1058 | 1058 |
|
... | ... | |
1091 | 1091 |
/* (non-Javadoc) |
1092 | 1092 |
* @see com.iver.andami.ui.mdiManager.ViewListener#viewActivated() |
1093 | 1093 |
*/ |
1094 |
public void viewActivated() {
|
|
1094 |
public void windowActivated() {
|
|
1095 | 1095 |
} |
1096 | 1096 |
|
1097 | 1097 |
/* (non-Javadoc) |
1098 | 1098 |
* @see com.iver.andami.ui.mdiManager.ViewListener#viewClosed() |
1099 | 1099 |
*/ |
1100 |
public void viewClosed() {
|
|
1100 |
public void windowClosed() {
|
|
1101 | 1101 |
try { |
1102 | 1102 |
model.stop(); |
1103 | 1103 |
} catch (DriverException e) { |
Also available in: Unified diff