summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/gui/tabs/outcome/form/DimensionInstance.java
diff options
context:
space:
mode:
Diffstat (limited to 'source/com/c2kernel/gui/tabs/outcome/form/DimensionInstance.java')
-rwxr-xr-xsource/com/c2kernel/gui/tabs/outcome/form/DimensionInstance.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/com/c2kernel/gui/tabs/outcome/form/DimensionInstance.java b/source/com/c2kernel/gui/tabs/outcome/form/DimensionInstance.java
new file mode 100755
index 0000000..07fbe1b
--- /dev/null
+++ b/source/com/c2kernel/gui/tabs/outcome/form/DimensionInstance.java
@@ -0,0 +1,32 @@
+package com.c2kernel.gui.tabs.outcome.form;
+import org.exolab.castor.xml.schema.ElementDecl;
+
+import com.c2kernel.gui.tabs.outcome.OutcomeException;
+
+public class DimensionInstance extends DataRecord {
+
+ //probably will be needed to synch edits later
+ Dimension parentDimension;
+ int tabNumber;
+ String tabName = null;
+
+ public DimensionInstance(ElementDecl model, boolean readOnly , HelpPane help, boolean deferred) throws OutcomeException {
+ super(model, readOnly, help, deferred);
+ }
+
+ public void setTabNumber(int tabNumber) {
+ this.tabNumber=tabNumber;
+ }
+
+ public void setParent(Dimension parent) {
+ this.parentDimension = parent;
+ }
+
+ public String getName() {
+ //TODO appinfo for picking out attributes or child elements for tab name
+ if (tabName == null)
+ return Integer.toString(tabNumber);
+ else
+ return tabName;
+ }
+}