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 / DALActionFactory.java @ 44644
History | View | Annotate | Download (913 Bytes)
1 |
package org.gvsig.fmap.dal.swing; |
---|---|
2 |
|
3 |
import javax.swing.Action; |
4 |
import javax.swing.JComponent; |
5 |
import org.gvsig.expressionevaluator.Expression; |
6 |
import org.gvsig.fmap.dal.DataStore; |
7 |
import org.gvsig.fmap.dal.feature.FeatureQueryOrder; |
8 |
|
9 |
/**
|
10 |
*
|
11 |
* @author jjdelcerro
|
12 |
*/
|
13 |
public interface DALActionFactory { |
14 |
|
15 |
public interface DALActionContext { |
16 |
public String getName(); |
17 |
public DataStore getStore();
|
18 |
public Expression getFilter(); |
19 |
public FeatureQueryOrder getOrder();
|
20 |
public int getSelectedsCount(); |
21 |
public Expression getFilterForSelecteds(); |
22 |
public JComponent getActionButton(String actionName); |
23 |
public Object get(String name); |
24 |
public void set(String name, Object value); |
25 |
} |
26 |
|
27 |
public String getName(); |
28 |
|
29 |
public boolean isApplicable(DALActionContext context); |
30 |
|
31 |
public Action createAction(DALActionContext context); |
32 |
|
33 |
} |