gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.dynform / org.gvsig.tools.dynform.spi / src / main / java / org / gvsig / tools / dynform / spi / DynFormSPIManager.java @ 1405
History | View | Annotate | Download (4.26 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 modify it under
|
7 |
* the terms of the GNU General Public License as published by the Free Software
|
8 |
* Foundation; either version 3 of the License, or (at your option) any later
|
9 |
* version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful, but WITHOUT
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
13 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
14 |
* details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License along with
|
17 |
* this program; if not, write to the Free Software Foundation, Inc., 51
|
18 |
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us at info AT
|
21 |
* gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
package org.gvsig.tools.dynform.spi; |
24 |
|
25 |
import javax.swing.JPopupMenu; |
26 |
import javax.swing.text.JTextComponent; |
27 |
|
28 |
import org.gvsig.tools.dataTypes.DataType; |
29 |
import org.gvsig.tools.dynform.DynFormFieldDefinition; |
30 |
import org.gvsig.tools.dynform.DynFormManager; |
31 |
import org.gvsig.tools.dynform.JDynFormField; |
32 |
import org.gvsig.tools.dynform.spi.dynformfield.JProblemIndicator; |
33 |
import org.gvsig.tools.dynform.spi.dynformfield.JZoomDialog; |
34 |
import org.gvsig.tools.service.Manager; |
35 |
import org.gvsig.tools.service.ServiceException; |
36 |
import org.gvsig.tools.service.spi.ServiceManager; |
37 |
|
38 |
public interface DynFormSPIManager extends Manager, ServiceManager { |
39 |
|
40 |
public static final String TAG_DYNFORM_ABEILLE_FORM = "dynform.abeille.form.path"; |
41 |
public static final String TAG_DYNFORM_LAYOUTMODE = "dynform.layoutmode"; |
42 |
public static final String TAG_DYNFORM_LAYOUTMODE_VALUE_TABS = "tabs"; |
43 |
public static final String TAG_DYNFORM_LAYOUTMODE_VALUE_PLAIN = "plain"; |
44 |
public static final String TAG_DYNFORM_LAYOUTMODE_VALUE_SEPARATORS = "separators"; |
45 |
|
46 |
public static final String TAG_DYNFORM_AUTOSAVE = "dynform.autosave"; |
47 |
public static final String TAG_DYNFORM_BORDER = "dynform.border"; |
48 |
public static final String TAG_DYNFORM_VIEWMODE = "dynform.viewmode"; |
49 |
public static final String TAG_DYNFORM_HEIGHT = "dynform.height"; |
50 |
public static final String TAG_DYNFORM_WIDTH = "dynform.width"; |
51 |
public static final String TAG_DYNFORM_LABEL_EMPTY = "dynform.label.empty"; |
52 |
public static final String TAG_DYNFORM_ACTION_NEW = "dynform.action.new"; |
53 |
public static final String TAG_DYNFORM_ACTION_UPDATE = "dynform.action.update"; |
54 |
public static final String TAG_DYNFORM_ACTION_DELETE = "dynform.action.delete"; |
55 |
public static final String TAG_DYNFORM_ACTION_SEARCH = "dynform.action.search"; |
56 |
public static final String TAG_DYNFORM_ACTION_CLOSE = "dynform.action.close"; |
57 |
public static final String TAG_DYNFORM_ROWS = "dynform.rows"; |
58 |
public static final String TAG_DYNFORM_USESCROLLBARS = "dynform.useScrollBars"; |
59 |
public static final String TAG_DYNFORM_READONLY = "dynform.readonly"; |
60 |
public static final String TAG_DYNFORM_TRANSLATE_EMPTY_TO_NULL = "dynform.translateEmptyToNull"; |
61 |
|
62 |
public static final String FIELD_FORMSETDEFINITION = "definition"; |
63 |
public static final String FIELD_FIELDDEFINITION = "fieldDefinition"; |
64 |
public static final String FIELD_VALUE = "value"; |
65 |
|
66 |
public static final String SERVICE_NAME_PREFIX = "org.gvsig.tools.dynform.field."; |
67 |
public static final String SERVICE_JDYNFORM_NAME_PREFIX = "org.gvsig.tools.dynform."; |
68 |
|
69 |
public String makeServiceName(int dataType, String className, String subtype); |
70 |
|
71 |
public String makeServiceName(int dataType, String subtype); |
72 |
|
73 |
public String makeServiceName(DataType dataType, String subtype); |
74 |
|
75 |
public String makeServiceName(DataType dataType, String className, String subtype); |
76 |
|
77 |
public String makeServiceName(String dynClassFullName); |
78 |
|
79 |
public DynFormManager getDynFormManager();
|
80 |
|
81 |
public JZoomDialog createJZoomDialog(String title, String message, String text); |
82 |
|
83 |
public JProblemIndicator createProblemIndicator(JDynFormField field);
|
84 |
|
85 |
public JDynFormField createJDynFormField(DynFormFieldDefinition definition, Object value) throws ServiceException; |
86 |
|
87 |
public JPopupMenu createTextFieldPopupMenu(String title, JTextComponent component, boolean zoom); |
88 |
} |