blob: 07fbe1b46102332e670bc41ccd94c6186aecf21a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
}
}
|