svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.swing / org.gvsig.fmap.dal.swing.api / src / main / java / org / gvsig / fmap / dal / swing / FeatureTableModel.java @ 45739
History | View | Annotate | Download (2.11 KB)
1 | 42775 | jjdelcerro | |
---|---|---|---|
2 | package org.gvsig.fmap.dal.swing; |
||
3 | |||
4 | 42807 | jjdelcerro | import java.awt.event.ActionListener; |
5 | 42775 | jjdelcerro | import java.util.Locale; |
6 | import javax.swing.table.TableModel; |
||
7 | import org.gvsig.fmap.dal.feature.Feature; |
||
8 | import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
||
9 | import org.gvsig.fmap.dal.feature.FeatureQuery; |
||
10 | 42807 | jjdelcerro | import org.gvsig.fmap.dal.feature.FeatureSelection; |
11 | 42775 | jjdelcerro | import org.gvsig.fmap.dal.feature.FeatureStore; |
12 | import org.gvsig.fmap.dal.feature.FeatureType; |
||
13 | import org.gvsig.fmap.dal.feature.paging.FeaturePagingHelper; |
||
14 | import org.gvsig.tools.exception.BaseException; |
||
15 | |||
16 | |||
17 | public interface FeatureTableModel extends TableModel { |
||
18 | |||
19 | 42807 | jjdelcerro | public static final String CHANGE_SELECTION = "ChangeSelection"; |
20 | |||
21 | 42775 | jjdelcerro | public Locale getLocaleOfData(); |
22 | |||
23 | public void setLocaleOfData(Locale locale); |
||
24 | |||
25 | public void setAllVisible(); |
||
26 | |||
27 | public int getOriginalColumnIndex(int index); |
||
28 | |||
29 | public String getOriginalColumnName(int index); |
||
30 | |||
31 | public FeatureAttributeDescriptor getColumnDescriptor(int columnIndex); |
||
32 | |||
33 | public String getColumnFormattingPattern(int columnIndex); |
||
34 | |||
35 | public String getColumnFormattingPattern(String columnName); |
||
36 | |||
37 | public void setColumnFormattingPattern(String columnName, String pattern); |
||
38 | |||
39 | public boolean isColumnVisible(String columnName); |
||
40 | |||
41 | public void setColumnVisible(String columnName, boolean visible); |
||
42 | |||
43 | public String getColumnAlias(String columnName); |
||
44 | |||
45 | public void setColumnAlias(String columnName, String alias); |
||
46 | |||
47 | public void setColumnOrder(String columnName, boolean ascending) throws BaseException; |
||
48 | |||
49 | public Feature getFeatureAt(int rowIndex); |
||
50 | |||
51 | public FeatureQuery getFeatureQuery();
|
||
52 | |||
53 | public FeatureStore getFeatureStore();
|
||
54 | |||
55 | public FeatureType getFeatureType();
|
||
56 | |||
57 | public FeaturePagingHelper getFeaturePager();
|
||
58 | |||
59 | public void setSelectionUp(boolean selectionUp); |
||
60 | |||
61 | public boolean isSelectionUp(); |
||
62 | |||
63 | public boolean isSelectionLocked(); |
||
64 | |||
65 | public int getSelectionCount(); |
||
66 | |||
67 | 42807 | jjdelcerro | public FeatureSelection getFeatureSelection();
|
68 | |||
69 | public void setFeatureSelection(FeatureSelection selection); |
||
70 | |||
71 | public void addChangeListener(ActionListener listener); |
||
72 | |||
73 | 42775 | jjdelcerro | } |