Revision 13414 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/TableControlerPanel.java
TableControlerPanel.java | ||
---|---|---|
20 | 20 |
|
21 | 21 |
import java.awt.Dimension; |
22 | 22 |
import java.awt.FlowLayout; |
23 |
import java.awt.event.ActionListener; |
|
24 | 23 |
|
25 | 24 |
import javax.swing.ImageIcon; |
26 | 25 |
import javax.swing.JButton; |
... | ... | |
29 | 28 |
import javax.swing.JPanel; |
30 | 29 |
|
31 | 30 |
import org.gvsig.gui.beans.messages.Messages; |
31 |
import org.gvsig.gui.beans.table.listeners.TableListener; |
|
32 | 32 |
/** |
33 | 33 |
* Control para el manejo de tablas. No contiene eventos, estos deben |
34 | 34 |
* ser manejados desde la clase que lo llame. |
... | ... | |
66 | 66 |
/** |
67 | 67 |
* This is the default constructor |
68 | 68 |
*/ |
69 |
public TableControlerPanel(ActionListener buttonsListener) {
|
|
69 |
public TableControlerPanel(TableListener tableListener) {
|
|
70 | 70 |
super(); |
71 |
initialize(buttonsListener);
|
|
71 |
initialize(tableListener);
|
|
72 | 72 |
|
73 | 73 |
} |
74 | 74 |
|
... | ... | |
77 | 77 |
* |
78 | 78 |
* @return void |
79 | 79 |
*/ |
80 |
private void initialize(ActionListener buttonsListener) {
|
|
80 |
private void initialize(TableListener tableListener) {
|
|
81 | 81 |
FlowLayout flowLayout5 = new FlowLayout(); |
82 | 82 |
flowLayout5.setHgap(1); |
83 | 83 |
flowLayout5.setVgap(0); |
... | ... | |
101 | 101 |
this.add(getBClear(), null); |
102 | 102 |
this.setPreferredSize(new Dimension(0, HEIGHT_CONTROL)); |
103 | 103 |
|
104 |
getBFirst().addActionListener(buttonsListener);
|
|
105 |
getBPrev().addActionListener(buttonsListener);
|
|
106 |
getCPoint().addActionListener(buttonsListener);
|
|
107 |
getBNext().addActionListener(buttonsListener);
|
|
108 |
getBLast().addActionListener(buttonsListener);
|
|
109 |
getBNew().addActionListener(buttonsListener);
|
|
110 |
getBDelPoint().addActionListener(buttonsListener);
|
|
111 |
getBClear().addActionListener(buttonsListener);
|
|
104 |
getBFirst().addActionListener(tableListener);
|
|
105 |
getBPrev().addActionListener(tableListener);
|
|
106 |
getCPoint().addActionListener(tableListener);
|
|
107 |
getBNext().addActionListener(tableListener);
|
|
108 |
getBLast().addActionListener(tableListener);
|
|
109 |
getBNew().addActionListener(tableListener);
|
|
110 |
getBDelPoint().addActionListener(tableListener);
|
|
111 |
getBClear().addActionListener(tableListener);
|
|
112 | 112 |
} |
113 | 113 |
|
114 | 114 |
/** |
Also available in: Unified diff