gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / dynobject / DynField_v2.java @ 1405
History | View | Annotate | Download (3.36 KB)
1 | 1031 | 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 2 of the License, or (at your option) any later
|
||
9 | * version.
|
||
10 | 1031 | 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 | 1031 | 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 | 1031 | 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 | 1031 | jbadia | */
|
23 | package org.gvsig.tools.dynobject; |
||
24 | |||
25 | 1118 | jjdelcerro | public interface DynField_v2 extends DynField_LabelAttribute { |
26 | 1031 | jbadia | |
27 | 1335 | jjdelcerro | public interface AvailableValuesProvider { |
28 | 1405 | jjdelcerro | |
29 | 1335 | jjdelcerro | public DynObjectValueItem[] getValues(DynField field, DynObject dynObject); |
30 | } |
||
31 | 1369 | fdiaz | |
32 | 1118 | jjdelcerro | public DynField setClassOfValue(DynStruct dynStrct);
|
33 | 1031 | jbadia | |
34 | 1118 | jjdelcerro | public DynField setClassOfValue(String theClassNameOfValue); |
35 | 1031 | jbadia | |
36 | 1369 | fdiaz | /**
|
37 | 1405 | jjdelcerro | * When is a Object field returns the name of object's class, otherwise
|
38 | * returns null
|
||
39 | 1369 | fdiaz | *
|
40 | * @return
|
||
41 | */
|
||
42 | 1118 | jjdelcerro | public String getClassNameOfValue(); |
43 | |||
44 | 1369 | fdiaz | /**
|
45 | 1405 | jjdelcerro | * When is a DynObject field returns the DynStruct of the DynObject,
|
46 | * otherwise returns null
|
||
47 | 1369 | fdiaz | *
|
48 | * @return
|
||
49 | */
|
||
50 | 1118 | jjdelcerro | public DynStruct getDynClassOfValue();
|
51 | |||
52 | public DynField setTypeOfItems(int type); |
||
53 | |||
54 | 1369 | fdiaz | /**
|
55 | 1405 | jjdelcerro | * When is a Container field returns the type of the elements, otherwise
|
56 | * returns INVALID
|
||
57 | 1369 | fdiaz | *
|
58 | * @return
|
||
59 | */
|
||
60 | 1118 | jjdelcerro | public int getTypeOfItems(); |
61 | |||
62 | public DynField setClassOfItems(DynStruct dynStrct);
|
||
63 | |||
64 | 1405 | jjdelcerro | @Override
|
65 | 1118 | jjdelcerro | public DynField setClassOfItems(Class theClass); |
66 | |||
67 | public DynField setClassOfItems(String theClassNameOfValue); |
||
68 | |||
69 | 1369 | fdiaz | /**
|
70 | 1405 | jjdelcerro | * When is a Container of objects field returns the name of class of the
|
71 | * elements, otherwise returns null
|
||
72 | 1369 | fdiaz | *
|
73 | * @return
|
||
74 | */
|
||
75 | 1118 | jjdelcerro | public String getClassNameOfItems(); |
76 | |||
77 | 1369 | fdiaz | /**
|
78 | 1405 | jjdelcerro | * When is a Container of DynObjects field returns the DynStruct of the
|
79 | * elements, otherwise returns null
|
||
80 | 1369 | fdiaz | *
|
81 | * @return
|
||
82 | */
|
||
83 | 1118 | jjdelcerro | public DynStruct getDynClassOfItems();
|
84 | |||
85 | 1369 | fdiaz | /**
|
86 | 1405 | jjdelcerro | * When is a Container of objects field returns the class of the elements,
|
87 | * otherwise returns null
|
||
88 | 1369 | fdiaz | *
|
89 | * @return
|
||
90 | */
|
||
91 | 1405 | jjdelcerro | @Override
|
92 | 1118 | jjdelcerro | public Class getClassOfItems(); |
93 | |||
94 | 1033 | jbadia | public Tags getTags();
|
95 | 1118 | jjdelcerro | |
96 | 1405 | jjdelcerro | |
97 | 1085 | jjdelcerro | public DynField setRelationType(int relationType); |
98 | 1118 | jjdelcerro | |
99 | 1085 | jjdelcerro | public int getRelationType(); |
100 | 1369 | fdiaz | |
101 | 1405 | jjdelcerro | |
102 | public DynField setAvailableValues(DynMethod computeAvailableValues);
|
||
103 | 1369 | fdiaz | |
104 | 1405 | jjdelcerro | public DynMethod getAvailableValuesMethod();
|
105 | |||
106 | public DynObjectValueItem[] getAvailableValues(DynObject self); |
||
107 | |||
108 | public boolean isAvailableValuesCalculated(); |
||
109 | |||
110 | |||
111 | public DynField setCalculateMethod(DynMethod computeValue);
|
||
112 | |||
113 | public DynMethod getCalculateMethod();
|
||
114 | |||
115 | public boolean isCalculated(); |
||
116 | |||
117 | public Object getCalculatedValue(DynObject self); |
||
118 | |||
119 | |||
120 | public void copyFrom(DynField other); |
||
121 | |||
122 | |||
123 | public DynField setValidateElements(boolean validate); |
||
124 | |||
125 | public boolean getValidateElements(); |
||
126 | 1031 | jbadia | } |