svn-gvsig-desktop / branches / v2_0_0_prep / applications / appgvSIG / src / org / gvsig / app / tools / swing / serv / field / date / DateDynFieldPanel.java @ 33597
History | View | Annotate | Download (1001 Bytes)
1 |
package org.gvsig.app.tools.swing.serv.field.date; |
---|---|
2 |
|
3 |
import java.util.Date; |
4 |
import java.util.Locale; |
5 |
|
6 |
import org.gvsig.andami.PluginServices; |
7 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
8 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
9 |
import org.gvsig.tools.swing.serv.field.component.date.DateCalendarPicker; |
10 |
|
11 |
|
12 |
public class DateDynFieldPanel extends DateCalendarPicker implements IWindow{ |
13 |
|
14 |
public DateDynFieldPanel(Date date) { |
15 |
super(date);
|
16 |
} |
17 |
|
18 |
public DateDynFieldPanel(Date date, Locale loc) { |
19 |
super(date, loc);
|
20 |
} |
21 |
|
22 |
public WindowInfo getWindowInfo() {
|
23 |
WindowInfo m_ViewInfo = |
24 |
new WindowInfo(WindowInfo.MODALDIALOG | WindowInfo.RESIZABLE);
|
25 |
m_ViewInfo.setTitle(PluginServices.getText(this, "select_date")); |
26 |
m_ViewInfo.setMinimumSize(new java.awt.Dimension(450, 410)); |
27 |
return m_ViewInfo;
|
28 |
} |
29 |
|
30 |
public Object getWindowProfile() { |
31 |
return WindowInfo.DIALOG_PROFILE;
|
32 |
} |
33 |
|
34 |
|
35 |
} |