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 @ 1031
History | View | Annotate | Download (3.18 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); |
46 |
|
47 |
public void formBeforeSave() throws AbortActionException; |
48 |
public void formBeforeNew() throws AbortActionException; |
49 |
public void formBeforeDelete() throws AbortActionException; |
50 |
public void formBeforeSearch() throws AbortActionException; |
51 |
|
52 |
public void formAfterSave(); |
53 |
public void formAfterNew(); |
54 |
public void formAfterDelete(); |
55 |
public void formAfterSearch(); |
56 |
} |
57 |
|
58 |
public void setLayoutMode(int layoutMode); |
59 |
public int getLayoutMode(); |
60 |
|
61 |
public void setValues(DynObjectSet values) throws ServiceException; |
62 |
public void setValues(List values) throws ServiceException; |
63 |
|
64 |
public void message(); |
65 |
public void message(String msg); |
66 |
|
67 |
public void setReadOnly(boolean readOnly); |
68 |
public boolean isReadOnly(); |
69 |
|
70 |
public void addListener(JDynFormSetListener listener); |
71 |
public void removeListener(JDynFormSetListener listener); |
72 |
|
73 |
public boolean isAutosave(); |
74 |
public void setAutosave(boolean autosave); |
75 |
|
76 |
public boolean allowUpdate(); |
77 |
public boolean allowDelete(); |
78 |
public boolean allowNew(); |
79 |
public boolean allowSearch(); |
80 |
|
81 |
public void setAllowUpdate(boolean allowUpdate); |
82 |
public void setAllowDelete(boolean allowDelete); |
83 |
public void setAllowNew(boolean allowNew); |
84 |
public void setAllowSearch(boolean allowSearch); |
85 |
|
86 |
public void setFormSize(int width, int height); |
87 |
|
88 |
public DynObject get(int position); |
89 |
public int getCurrentIndex(); |
90 |
public int countValues(); |
91 |
public void setCurrentIndex(int index); |
92 |
|
93 |
public void addActionToPopupMenu(DataType tipo, String name, Action action); |
94 |
public void addSeparatorToPopupMenu(DataType tipo); |
95 |
|
96 |
public void setUseScrollBars(boolean usesScrolls); |
97 |
public boolean getUseScrollBars(); |
98 |
|
99 |
} |