]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.g3d/src/org/simantics/g3d/property/PropertyManipulator.java
Copyrights
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / property / PropertyManipulator.java
1 /*******************************************************************************\r
2  * Copyright (c) 2012, 2013 Association for Decentralized Information Management in\r
3  * Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.g3d.property;\r
13 \r
14 /**\r
15  * Interfaces for manipulating properties.\r
16  * \r
17  * @author Marko Luukkainen <marko.luukkainen@vtt.fi>\r
18  *\r
19  */\r
20 public interface PropertyManipulator {\r
21         \r
22         /**\r
23          * Returns number of individual values.\r
24          * @return\r
25          */\r
26         int getValueCount();\r
27         \r
28         /**\r
29          * Returns value at given index.\r
30          * @param i\r
31          * @return\r
32          */\r
33         String getValue(int i);\r
34         \r
35         /**\r
36          * Sets value at given index.\r
37          * @param i\r
38          * @return\r
39          */\r
40         String setValue(String value, int i);\r
41         \r
42         /**\r
43          * Returns description of a value at given index. The description is shown in the table header.\r
44          * @param i\r
45          * @return\r
46          */\r
47         String getDescription(int i);\r
48         \r
49         /**\r
50          * Gets edit mode status.\r
51          * @return\r
52          */\r
53         boolean getEditMode();\r
54         \r
55         /**\r
56          * Sets edit mode status.\r
57          * @param b\r
58          */\r
59         void setEditMode(boolean b);\r
60 \r
61 }\r