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 | 954 | jbadia | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright (C) 2007-2013 gvSIG Association.
|
||
5 | *
|
||
6 | 1405 | jjdelcerro | * 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 | 954 | jbadia | *
|
11 | 1405 | jjdelcerro | * 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 | 954 | jbadia | *
|
16 | 1405 | jjdelcerro | * 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 | 954 | jbadia | *
|
20 | 1405 | jjdelcerro | * For any additional information, do not hesitate to contact us at info AT
|
21 | * gvsig.com, or visit our website www.gvsig.com.
|
||
22 | 954 | jbadia | */
|
23 | 919 | jjdelcerro | 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 | 933 | jjdelcerro | import org.gvsig.tools.dynform.DynFormFieldDefinition; |
30 | import org.gvsig.tools.dynform.DynFormManager; |
||
31 | import org.gvsig.tools.dynform.JDynFormField; |
||
32 | 919 | jjdelcerro | 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 | 1405 | jjdelcerro | 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 | 919 | jjdelcerro | |
62 | 1405 | jjdelcerro | public static final String FIELD_FORMSETDEFINITION = "definition"; |
63 | public static final String FIELD_FIELDDEFINITION = "fieldDefinition"; |
||
64 | public static final String FIELD_VALUE = "value"; |
||
65 | 919 | jjdelcerro | |
66 | 1405 | jjdelcerro | 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 | 940 | jjdelcerro | public JPopupMenu createTextFieldPopupMenu(String title, JTextComponent component, boolean zoom); |
88 | 919 | jjdelcerro | } |