gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster / org.gvsig.fmap.mapcontext.raster.swing / org.gvsig.fmap.mapcontext.raster.swing.api / src / main / java / org / gvsig / fmap / mapcontext / raster / swing / operations / OperationListPanel.java @ 8682
History | View | Annotate | Download (1.79 KB)
1 |
package org.gvsig.fmap.mapcontext.raster.swing.operations; |
---|---|
2 |
|
3 |
import java.awt.event.ActionListener; |
4 |
|
5 |
import javax.swing.event.ListSelectionListener; |
6 |
import javax.swing.event.TableModelListener; |
7 |
|
8 |
import org.gvsig.raster.lib.buffer.api.operations.OperationFactory; |
9 |
import org.gvsig.raster.lib.buffer.api.operations.OperationList; |
10 |
import org.gvsig.raster.lib.buffer.api.operations.OperationListEntry; |
11 |
import org.gvsig.tools.swing.api.Component; |
12 |
|
13 |
/**
|
14 |
* @author fdiaz
|
15 |
*
|
16 |
*/
|
17 |
public interface OperationListPanel extends Component { |
18 |
|
19 |
public static String ADD_ACTION_COMMAND = "add_operation_entry"; |
20 |
public static String UPDATE_ACTION_COMMAND = "update_operation_entry"; |
21 |
public static String UP_ACTION_COMMAND = "up_operation_entry"; |
22 |
public static String DOWN_ACTION_COMMAND = "down_operation_entry"; |
23 |
public static String REMOVE_ACTION_COMMAND = "down_operation_entry"; |
24 |
|
25 |
/**
|
26 |
* @param operationList
|
27 |
* @return
|
28 |
*/
|
29 |
public boolean fetch(OperationList operationList); |
30 |
|
31 |
/**
|
32 |
* @param operationList
|
33 |
*/
|
34 |
public void set(OperationList operationList); |
35 |
|
36 |
/**
|
37 |
* @param layer
|
38 |
* @return
|
39 |
*/
|
40 |
public OperationListEntry getSelected();
|
41 |
|
42 |
/**
|
43 |
* @param listener
|
44 |
*/
|
45 |
public void addListSelectionListener(ListSelectionListener listener); |
46 |
|
47 |
/**
|
48 |
* @param listener
|
49 |
*/
|
50 |
public void addTableModelListener(TableModelListener listener); |
51 |
|
52 |
/**
|
53 |
* @param enable
|
54 |
*/
|
55 |
public void enableAdd(boolean enable); |
56 |
|
57 |
/**
|
58 |
* @param enable
|
59 |
*/
|
60 |
public void enableUpdate(boolean enable); |
61 |
|
62 |
/**
|
63 |
* @param operationListEntry
|
64 |
*/
|
65 |
public void add(OperationListEntry operationListEntry); |
66 |
|
67 |
/**
|
68 |
* @param listener
|
69 |
*/
|
70 |
void addActionListener(ActionListener listener); |
71 |
|
72 |
/**
|
73 |
*
|
74 |
*/
|
75 |
public void clearSelection(); |
76 |
|
77 |
|
78 |
} |