Revision 20269
trunk/libraries/libUIComponent/src-test-ui/org/gvsig/gui/beans/table/TestTableButtonModelTable.java | ||
---|---|---|
22 | 22 |
import java.awt.event.ActionEvent; |
23 | 23 |
import java.awt.event.ActionListener; |
24 | 24 |
|
25 |
import javax.swing.JFrame; |
|
26 |
|
|
25 |
import org.gvsig.gui.beans.TestUI; |
|
27 | 26 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
28 | 27 |
|
29 | 28 |
public class TestTableButtonModelTable implements ActionListener { |
30 | 29 |
private int w = 460; |
31 | 30 |
private int h = 200; |
32 |
private JFrame frame = new JFrame();
|
|
31 |
private TestUI frame = new TestUI("TestTableButtonModelTable");
|
|
33 | 32 |
private TableContainer table = null; |
34 | 33 |
|
35 | 34 |
public TestTableButtonModelTable() throws NotInitializeException { |
... | ... | |
54 | 53 |
frame.getContentPane().add(table); |
55 | 54 |
frame.setSize(w, h); |
56 | 55 |
frame.setVisible(true); |
57 |
frame.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
|
58 | 56 |
} |
59 | 57 |
|
60 | 58 |
public static void main(String[] args) { |
trunk/libraries/libUIComponent/src-test-ui/org/gvsig/gui/beans/table/TestTableColorTable.java | ||
---|---|---|
22 | 22 |
import java.awt.event.ActionEvent; |
23 | 23 |
import java.awt.event.ActionListener; |
24 | 24 |
|
25 |
import javax.swing.JFrame; |
|
26 |
|
|
25 |
import org.gvsig.gui.beans.TestUI; |
|
27 | 26 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
28 | 27 |
/** |
29 | 28 |
* Test del TableContainer |
... | ... | |
34 | 33 |
public class TestTableColorTable implements ActionListener { |
35 | 34 |
private int w = 460; |
36 | 35 |
private int h = 200; |
37 |
private JFrame frame = new JFrame();
|
|
36 |
private TestUI frame = new TestUI("TestTableColorTable");
|
|
38 | 37 |
private TableContainer table = null; |
39 | 38 |
|
40 | 39 |
public TestTableColorTable() throws NotInitializeException { |
trunk/libraries/libUIComponent/src-test-ui/org/gvsig/gui/beans/table/TestTreeRadioButtonModelTable.java | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
package org.gvsig.gui.beans.table; |
20 | 20 |
|
21 |
import javax.swing.JFrame; |
|
22 |
|
|
21 |
import org.gvsig.gui.beans.TestUI; |
|
23 | 22 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
24 | 23 |
|
25 | 24 |
public class TestTreeRadioButtonModelTable { |
26 | 25 |
private int w = 400; |
27 | 26 |
private int h = 200; |
28 |
private JFrame frame = new JFrame();
|
|
27 |
private TestUI frame = new TestUI("TestTreeRadioButtonModelTable");
|
|
29 | 28 |
private TableContainer table = null; |
30 | 29 |
|
31 | 30 |
public TestTreeRadioButtonModelTable() throws NotInitializeException { |
32 |
String[] columnNames = { "A", "R", "G", "B", "columna 4" };
|
|
31 |
String[] columnNames = { "A", "R", "G", "B", "Capa" };
|
|
33 | 32 |
int[] columnWidths = { 22, 22, 22, 22, 334 }; |
34 | 33 |
table = new TableContainer(columnNames, columnWidths); |
35 | 34 |
table.setModel("ARGBBandSelectorModel"); |
36 | 35 |
table.initialize(); |
37 | 36 |
|
38 |
Object[] row = { new Boolean(false), new Boolean(true), new Boolean(false), new Boolean(false), "texto 0" }; |
|
39 |
Object[] row1 = { new Boolean(false), new Boolean(false), new Boolean(true), new Boolean(false), "texto 1" }; |
|
40 |
Object[] row2 = { new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(true), "texto 2" }; |
|
37 |
Object[] row = { new Boolean(false), new Boolean(true), new Boolean(false), new Boolean(false), "layer1.tif" }; |
|
38 |
Object[] row1 = { new Boolean(false), new Boolean(false), new Boolean(true), new Boolean(false), "layer2.tif" }; |
|
39 |
Object[] row2 = { new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(true), "layer3.tif" }; |
|
40 |
Object[] row3 = { new Boolean(true), new Boolean(false), new Boolean(false), new Boolean(false), "layer4.tif" }; |
|
41 | 41 |
table.addRow(row); |
42 | 42 |
table.addRow(row1); |
43 | 43 |
table.addRow(row2); |
44 |
table.delRow(1);
|
|
44 |
table.addRow(row3);
|
|
45 | 45 |
|
46 | 46 |
frame.getContentPane().add(table); |
47 | 47 |
frame.setSize(w, h); |
Also available in: Unified diff