gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.dynform / org.gvsig.tools.dynform.api / src / main / java / org / gvsig / tools / dynform / JDynFormSet.java @ 1405
History | View | Annotate | Download (3.97 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.tools.dynform; |
25 |
|
26 |
import java.util.List; |
27 |
|
28 |
import javax.swing.Action; |
29 |
|
30 |
import org.gvsig.tools.dataTypes.DataType; |
31 |
import org.gvsig.tools.dynobject.DynObject; |
32 |
import org.gvsig.tools.dynobject.DynObjectSet; |
33 |
import org.gvsig.tools.service.ServiceException; |
34 |
import org.gvsig.tools.swing.api.Component; |
35 |
|
36 |
public interface JDynFormSet extends Component { |
37 |
|
38 |
public static final int USE_PLAIN = 0; |
39 |
public static final int USE_TABS = 1; |
40 |
public static final int USE_SEPARATORS = 2; |
41 |
|
42 |
public interface JDynFormSetListener { |
43 |
public void formMessage(String message); |
44 |
public void formClose(); |
45 |
public void formMovedTo(int currentPosition) throws AbortActionException; |
46 |
|
47 |
public void formBeforeSave(JDynFormSet dynformSet) throws AbortActionException; |
48 |
public void formBeforeNew(JDynFormSet dynformSet) throws AbortActionException; |
49 |
public void formBeforeCancelNew(JDynFormSet dynformSet) throws AbortActionException; |
50 |
public void formBeforeDelete(JDynFormSet dynformSet) throws AbortActionException; |
51 |
public void formBeforeSearch(JDynFormSet dynformSet) throws AbortActionException; |
52 |
|
53 |
public void formAfterSave(JDynFormSet dynformSet) throws AbortActionException; |
54 |
public void formAfterNew(JDynFormSet dynformSet) throws AbortActionException; |
55 |
public void formAfterCancelNew(JDynFormSet dynformSet) throws AbortActionException; |
56 |
public void formAfterDelete(JDynFormSet dynformSet) throws AbortActionException; |
57 |
public void formAfterSearch(JDynFormSet dynformSet) throws AbortActionException; |
58 |
} |
59 |
|
60 |
public void setLayoutMode(int layoutMode); |
61 |
public int getLayoutMode(); |
62 |
|
63 |
public boolean hasValidValues(); |
64 |
public boolean hasValidValues(List<String> fieldsName); |
65 |
|
66 |
public void setValues(DynObjectSet values) throws ServiceException; |
67 |
public void setValues(List values) throws ServiceException; |
68 |
|
69 |
public List getValues(); |
70 |
|
71 |
public void message(); |
72 |
public void message(String msg); |
73 |
|
74 |
public void setReadOnly(boolean readOnly); |
75 |
public boolean isReadOnly(); |
76 |
|
77 |
public void addListener(JDynFormSetListener listener); |
78 |
public void removeListener(JDynFormSetListener listener); |
79 |
|
80 |
public boolean isAutosave(); |
81 |
public void setAutosave(boolean autosave); |
82 |
|
83 |
public boolean allowUpdate(); |
84 |
public boolean allowDelete(); |
85 |
public boolean allowNew(); |
86 |
public boolean allowSearch(); |
87 |
public boolean allowClose(); |
88 |
|
89 |
public void setAllowUpdate(boolean allowUpdate); |
90 |
public void setAllowDelete(boolean allowDelete); |
91 |
public void setAllowNew(boolean allowNew); |
92 |
public void setAllowSearch(boolean allowSearch); |
93 |
public void setAllowClose(boolean allowClose); |
94 |
|
95 |
public void setFormSize(int width, int height); |
96 |
|
97 |
public DynObject get(int position); |
98 |
public int getCurrentIndex(); |
99 |
public int countValues(); |
100 |
public void setCurrentIndex(int index); |
101 |
public boolean isInNewState(); |
102 |
|
103 |
public void addAction(Action action); |
104 |
public void addActionToPopupMenu(DataType tipo, String name, Action action); |
105 |
public void addSeparatorToPopupMenu(DataType tipo); |
106 |
|
107 |
public void setUseScrollBars(boolean usesScrolls); |
108 |
public boolean getUseScrollBars(); |
109 |
|
110 |
public void getFormValues(DynObject values); |
111 |
|
112 |
|
113 |
} |