]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/g3d/property/PropertyManipulator.java
3D framework (Simca 2012)
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / property / PropertyManipulator.java
diff --git a/org.simantics.g3d/src/org/simantics/g3d/property/PropertyManipulator.java b/org.simantics.g3d/src/org/simantics/g3d/property/PropertyManipulator.java
new file mode 100644 (file)
index 0000000..3a50200
--- /dev/null
@@ -0,0 +1,50 @@
+package org.simantics.g3d.property;\r
+\r
+/**\r
+ * Interfaces for manipulating properties.\r
+ * \r
+ * @author Marko Luukkainen <marko.luukkainen@vtt.fi>\r
+ *\r
+ */\r
+public interface PropertyManipulator {\r
+       \r
+       /**\r
+        * Returns number of individual values.\r
+        * @return\r
+        */\r
+       int getValueCount();\r
+       \r
+       /**\r
+        * Returns value at given index.\r
+        * @param i\r
+        * @return\r
+        */\r
+       String getValue(int i);\r
+       \r
+       /**\r
+        * Sets value at given index.\r
+        * @param i\r
+        * @return\r
+        */\r
+       String setValue(String value, int i);\r
+       \r
+       /**\r
+        * Returns description of a value at given index. The description is shown in the table header.\r
+        * @param i\r
+        * @return\r
+        */\r
+       String getDescription(int i);\r
+       \r
+       /**\r
+        * Gets edit mode status.\r
+        * @return\r
+        */\r
+       boolean getEditMode();\r
+       \r
+       /**\r
+        * Sets edit mode status.\r
+        * @param b\r
+        */\r
+       void setEditMode(boolean b);\r
+\r
+}\r