Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_0_Build_2011 / applications / appgvSIG / src / org / gvsig / app / project / documents / view / info / gui / FInfoDialog.java @ 33527

History | View | Annotate | Download (1.33 KB)

1

    
2
package org.gvsig.app.project.documents.view.info.gui;
3

    
4
import java.awt.BorderLayout;
5

    
6
import javax.swing.JComponent;
7
import javax.swing.JPanel;
8

    
9
import org.gvsig.andami.PluginServices;
10
import org.gvsig.andami.ui.mdiManager.SingletonWindow;
11
import org.gvsig.andami.ui.mdiManager.WindowInfo;
12

    
13

    
14

    
15
/**
16
 * Dialog that contains the generic Feature Info Viewer
17
 *
18
 * @author laura
19
 *
20
 */
21
public class FInfoDialog extends JPanel implements SingletonWindow {
22

    
23
    public FInfoDialog(JComponent infoViewer) {
24
        super(new BorderLayout());
25
        add(infoViewer, BorderLayout.CENTER);
26
                setSize(600, 375);
27
        }
28

    
29
        /**
30
         * @see com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
31
         */
32
        public void viewActivated() {
33
        }
34

    
35
        /* (non-Javadoc)
36
         * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
37
         */
38
        public WindowInfo getWindowInfo() {
39

    
40
                WindowInfo m_viewinfo = new WindowInfo(WindowInfo.MODELESSDIALOG |
41
                                WindowInfo.RESIZABLE | WindowInfo.PALETTE);
42
                m_viewinfo.setWidth(getWidth()+8);
43
                m_viewinfo.setHeight(getHeight());
44
                m_viewinfo.setTitle(PluginServices.getText(this,
45
                                "Identificar_Resultados"));
46

    
47
                return m_viewinfo;
48
        }
49

    
50
        /**
51
         * @see com.iver.mdiApp.ui.MDIManager.SingletonWindow#getWindowModel()
52
         */
53
        public Object getWindowModel() {
54
                return "FInfoDialog";
55
        }
56

    
57
        public Object getWindowProfile() {
58
                return WindowInfo.PROPERTIES_PROFILE;
59
        }
60
}