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 @ 885
History | View | Annotate | Download (1.15 KB)
1 |
package org.gvsig.raster.postgis.swing; |
---|---|
2 |
|
3 |
import java.awt.event.ActionListener; |
4 |
import java.util.ArrayList; |
5 |
|
6 |
import javax.swing.JComboBox; |
7 |
import javax.swing.JComponent; |
8 |
|
9 |
public interface AddLayerUI { |
10 |
public static final String NOT_MAPPED = "***"; |
11 |
|
12 |
public JComponent getComponent(); |
13 |
|
14 |
/**
|
15 |
* Adds a listener to the button to add a new data base connection
|
16 |
* @param event
|
17 |
*/
|
18 |
public void addListenerToNewDBButton(ActionListener event); |
19 |
|
20 |
/**
|
21 |
* Adds a listener to the combo box which selects de database to connect
|
22 |
* @param listener
|
23 |
*/
|
24 |
public void addListenerToBDSelectionCombo(ActionListener listener); |
25 |
|
26 |
/**
|
27 |
* Checks if the object passed is the control to add a new database connection
|
28 |
* @param obj
|
29 |
* @return
|
30 |
*/
|
31 |
public boolean isAddDBEventObject(Object obj); |
32 |
|
33 |
/**
|
34 |
* Gets the list of data bases
|
35 |
*/
|
36 |
public JComboBox getDBCombo(); |
37 |
|
38 |
/**
|
39 |
* Gets the selected tables by the user
|
40 |
* @return
|
41 |
*/
|
42 |
public ArrayList<Object> getSelectedTables(); |
43 |
|
44 |
/**
|
45 |
* Adds a new element to the list of tables in the selected database
|
46 |
*/
|
47 |
public void addElementToTable(Object obj); |
48 |
|
49 |
/**
|
50 |
* Clears the table list
|
51 |
*/
|
52 |
public void clearList(); |
53 |
|
54 |
} |