gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / dynobject / DynField_v2.java @ 1369
History | View | Annotate | Download (2.82 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 2
|
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.dynobject; |
25 |
|
26 |
public interface DynField_v2 extends DynField_LabelAttribute { |
27 |
|
28 |
public interface AvailableValuesProvider { |
29 |
public DynObjectValueItem[] getValues(DynField field, DynObject dynObject); |
30 |
} |
31 |
|
32 |
public DynField setClassOfValue(DynStruct dynStrct);
|
33 |
|
34 |
public DynField setClassOfValue(String theClassNameOfValue); |
35 |
|
36 |
/**
|
37 |
* When is a Object field returns the name of object's class, otherwise returns null
|
38 |
*
|
39 |
* @return
|
40 |
*/
|
41 |
public String getClassNameOfValue(); |
42 |
|
43 |
/**
|
44 |
* When is a DynObject field returns the DynStruct of the DynObject, otherwise returns null
|
45 |
*
|
46 |
* @return
|
47 |
*/
|
48 |
public DynStruct getDynClassOfValue();
|
49 |
|
50 |
public DynField setTypeOfItems(int type); |
51 |
|
52 |
/**
|
53 |
* When is a Container field returns the type of the elements, otherwise returns INVALID
|
54 |
*
|
55 |
* @return
|
56 |
*/
|
57 |
public int getTypeOfItems(); |
58 |
|
59 |
public DynField setClassOfItems(DynStruct dynStrct);
|
60 |
|
61 |
public DynField setClassOfItems(Class theClass); |
62 |
|
63 |
public DynField setClassOfItems(String theClassNameOfValue); |
64 |
|
65 |
/**
|
66 |
* When is a Container of objects field returns the name of class of the elements, otherwise returns null
|
67 |
*
|
68 |
* @return
|
69 |
*/
|
70 |
public String getClassNameOfItems(); |
71 |
|
72 |
/**
|
73 |
* When is a Container of DynObjects field returns the DynStruct of the elements, otherwise returns null
|
74 |
*
|
75 |
* @return
|
76 |
*/
|
77 |
public DynStruct getDynClassOfItems();
|
78 |
|
79 |
/**
|
80 |
* When is a Container of objects field returns the class of the elements, otherwise returns null
|
81 |
*
|
82 |
* @return
|
83 |
*/
|
84 |
public Class getClassOfItems(); |
85 |
|
86 |
public Tags getTags();
|
87 |
|
88 |
public DynField setRelationType(int relationType); |
89 |
|
90 |
public int getRelationType(); |
91 |
|
92 |
public void setAvailableValuesProvider(AvailableValuesProvider provider); |
93 |
|
94 |
public DynObjectValueItem[] getAvailableValues(DynObject dynObject); |
95 |
} |