Author: kaiyi4
Date: Tue Aug 26 15:43:45 2008
New Revision: 2615
Modified:
trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
Log:
Property edit field of top level name for levels, similar to top level name
for hierarchies in the previous commit.
Modified:
trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
==============================================================================
--- trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
(original)
+++ trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
Tue Aug 26 15:43:45 2008
@@ -50,6 +50,7 @@
private final JTextField captionField;
private final JComboBox tableChooser;
private final JCheckBox hasAll;
+ private final JTextField allLevelName;
/**
* Validation handler for errors in the dialog
@@ -77,6 +78,7 @@
builder.append("Caption", captionField = new
JTextField(hierarchy.getCaption()));
builder.append("Has All", hasAll = new JCheckBox("Has All",
hierarchy.getHasAll() != null ? hierarchy.getHasAll() : true));
builder.append("Table", tableChooser = new JComboBox(new
Vector<SQLTable>(tables)));
+ builder.append("All Level Name", allLevelName = new
JTextField("(All)"));
tableChooser.setSelectedItem(OLAPUtil.tableForHierarchy(hierarchy)); // XXX
this isn't quite right.. it would set the default as the local value
handler = new FormValidationHandler(status);
@@ -105,6 +107,7 @@
table.setSchema(OLAPUtil.getQualifier(stable));
hierarchy.setRelation(table);
}
+ hierarchy.setAllLevelName(allLevelName.getText());
hierarchy.endCompoundEdit();
return true;
}