Statistics
| Revision:

gvsig-raster / org.gvsig.raster.postgis / trunk / org.gvsig.raster.postgis / org.gvsig.raster.postgis.swing / org.gvsig.raster.postgis.swing.api / src / main / java / org / gvsig / raster / postgis / swing / AddLayerUI.java @ 956

History | View | Annotate | Download (1.89 KB)

1
package org.gvsig.raster.postgis.swing;
2

    
3
import java.awt.event.ActionListener;
4
import java.util.List;
5

    
6
import javax.swing.JComboBox;
7
import javax.swing.JComponent;
8
import javax.swing.event.ListSelectionListener;
9

    
10
public interface AddLayerUI {
11
        public static final String      NOT_MAPPED      =  "***"; 
12
        
13
        public JComponent getComponent();
14
        
15
        /**
16
         * Adds a listener to the button to add a new data base connection
17
         * @param event
18
         */
19
        public void addListenerToNewDBButton(ActionListener event);
20
        
21
        /**
22
         * Adds a listener to the combo box which selects de database to connect
23
         * @param listener
24
         */
25
        public void addListenerToBDSelectionCombo(ActionListener listener);
26
        
27
        /**
28
         * Adds a listener to the table selector
29
         * @param listener
30
         */
31
        public void addListenerToTableSelector(ListSelectionListener listener);
32
        
33
        /**
34
         * Checks if the object passed is the control to select a table
35
         * @param obj
36
         * @return
37
         */
38
        public boolean isAddTableEvent(Object obj);
39

    
40
        /**
41
         * Checks if the object passed is the control to add a new database connection
42
         * @param obj
43
         * @return
44
         */
45
        public boolean isAddDBEventObject(Object obj);
46
        
47
        /**
48
         * Gets the list of data bases 
49
         */
50
        public JComboBox getDBCombo();
51
        
52
        /**
53
         * Gets the selected tables by the user
54
         * @return
55
         */
56
        public List<Object> getSelectedTables();
57
        
58
        /**
59
         * Adds a new element to the list of tables in the selected database  
60
         */
61
        public void addElementToTable(Object obj);
62
        
63
        /**
64
         * Clears the table list
65
         */
66
        public void clearList();
67
        
68
        /**
69
         * Gets the selected subdatasets by the user
70
         * @return
71
         */
72
        public int[] getSelectedSubdatasets();
73
        
74
        /**
75
         * Adds a new element to the subdataset list in the selected database  
76
         */
77
        public void addSubdatasetToTable(Object obj);
78
        
79
        /**
80
         * Clears the table of subdatasets
81
         */
82
        public void clearSubdatasetList();
83
        
84
        /**
85
         * Returns true if the layer is tiled
86
         * @return
87
         */
88
        public boolean isLayerTiled();
89

    
90
}