Added TimeDimensionType

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@92600 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-04 10:46:34 +00:00
parent 20405e5b02
commit 70fcee3667
1 changed files with 16 additions and 16 deletions

View File

@ -165,7 +165,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
comboColumn.setLoader(loader); comboColumn.setLoader(loader);
comboColumn.setEmptyText("Select a column..."); comboColumn.setEmptyText("Select a column...");
comboColumn.setWidth(150); //comboColumn.setWidth(200);
comboColumn.setTypeAhead(false); comboColumn.setTypeAhead(false);
comboColumn.setEditable(false); comboColumn.setEditable(false);
comboColumn.setTriggerAction(TriggerAction.ALL); comboColumn.setTriggerAction(TriggerAction.ALL);
@ -184,7 +184,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
addHandlersForComboColumnTypeCode(propsColumnTypeCode.label()); addHandlersForComboColumnTypeCode(propsColumnTypeCode.label());
comboColumnTypeCode.setEmptyText("Select a column type..."); comboColumnTypeCode.setEmptyText("Select a column type...");
comboColumnTypeCode.setWidth(150); //comboColumnTypeCode.setWidth(200);
comboColumnTypeCode.setTypeAhead(true); comboColumnTypeCode.setTypeAhead(true);
comboColumnTypeCode.setTriggerAction(TriggerAction.ALL); comboColumnTypeCode.setTriggerAction(TriggerAction.ALL);
@ -202,7 +202,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
addHandlersForComboMeasureType(propsMeasureType.label()); addHandlersForComboMeasureType(propsMeasureType.label());
comboMeasureType.setEmptyText("Select a measure type..."); comboMeasureType.setEmptyText("Select a measure type...");
comboMeasureType.setWidth(150); //comboMeasureType.setWidth(200);
comboMeasureType.setTypeAhead(true); comboMeasureType.setTypeAhead(true);
comboMeasureType.setTriggerAction(TriggerAction.ALL); comboMeasureType.setTriggerAction(TriggerAction.ALL);
@ -223,7 +223,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
addHandlersForComboAttributeType(propsAttributeType.label()); addHandlersForComboAttributeType(propsAttributeType.label());
comboAttributeType.setEmptyText("Select a column type..."); comboAttributeType.setEmptyText("Select a column type...");
comboAttributeType.setWidth(150); //comboAttributeType.setWidth(200);
comboAttributeType.setTypeAhead(true); comboAttributeType.setTypeAhead(true);
comboAttributeType.setTriggerAction(TriggerAction.ALL); comboAttributeType.setTriggerAction(TriggerAction.ALL);
@ -244,7 +244,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
addHandlersForComboDimensionType(propsDimensionType.label()); addHandlersForComboDimensionType(propsDimensionType.label());
comboDimensionType.setEmptyText("Select a Dimension..."); comboDimensionType.setEmptyText("Select a Dimension...");
comboDimensionType.setWidth(150); //comboDimensionType.setWidth(200);
comboDimensionType.setEditable(false); comboDimensionType.setEditable(false);
comboDimensionType.setTriggerAction(TriggerAction.ALL); comboDimensionType.setTriggerAction(TriggerAction.ALL);
@ -266,7 +266,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
addHandlersForComboColumnReferenceType(propsColumnReferenceType.label()); addHandlersForComboColumnReferenceType(propsColumnReferenceType.label());
comboColumnReferenceType.setEmptyText("Select a Column Reference..."); comboColumnReferenceType.setEmptyText("Select a Column Reference...");
comboColumnReferenceType.setWidth(150); //comboColumnReferenceType.setWidth(200);
comboColumnReferenceType.setEditable(false); comboColumnReferenceType.setEditable(false);
comboColumnReferenceType.setTriggerAction(TriggerAction.ALL); comboColumnReferenceType.setTriggerAction(TriggerAction.ALL);
@ -288,11 +288,11 @@ public class ChangeColumnTypePanel extends FramedPanel implements
addHandlersForComboTimeDimensionType(propsTimeDimensionType.label()); addHandlersForComboTimeDimensionType(propsTimeDimensionType.label());
comboTimeDimensionType.setEmptyText("Select a time dimension type..."); comboTimeDimensionType.setEmptyText("Select a time dimension type...");
comboTimeDimensionType.setWidth(150); //comboTimeDimensionType.setWidth(200);
comboTimeDimensionType.setTypeAhead(true); comboTimeDimensionType.setTypeAhead(true);
comboTimeDimensionType.setTriggerAction(TriggerAction.ALL); comboTimeDimensionType.setTriggerAction(TriggerAction.ALL);
comboTimeDimensionTypeLabel = new FieldLabel(comboTimeDimensionType, "Time Dimension Type"); comboTimeDimensionTypeLabel = new FieldLabel(comboTimeDimensionType, "Time Type");
comboTimeDimensionTypeLabel.setVisible(false); comboTimeDimensionTypeLabel.setVisible(false);
// Change // Change
@ -308,16 +308,16 @@ public class ChangeColumnTypePanel extends FramedPanel implements
VerticalLayoutContainer v = new VerticalLayoutContainer(); VerticalLayoutContainer v = new VerticalLayoutContainer();
v.add(new FieldLabel(comboColumn, "Column"), new VerticalLayoutData(1, v.add(new FieldLabel(comboColumn, "Column"), new VerticalLayoutData(1,
-1)); -1,new Margins(1)));
v.add(new FieldLabel(comboColumnTypeCode, "Column Type"), v.add(new FieldLabel(comboColumnTypeCode, "Column Type"),
new VerticalLayoutData(1, -1)); new VerticalLayoutData(1, -1,new Margins(1)));
v.add(comboMeasureTypeLabel, new VerticalLayoutData(1, -1)); v.add(comboMeasureTypeLabel, new VerticalLayoutData(1, -1,new Margins(1)));
v.add(comboAttributeTypeLabel, new VerticalLayoutData(1, -1)); v.add(comboAttributeTypeLabel, new VerticalLayoutData(1, -1,new Margins(1)));
v.add(comboDimensionTypeLabel, new VerticalLayoutData(1, -1)); v.add(comboDimensionTypeLabel, new VerticalLayoutData(1, -1,new Margins(1)));
v.add(comboColumnReferenceTypeLabel, new VerticalLayoutData(1, -1)); v.add(comboColumnReferenceTypeLabel, new VerticalLayoutData(1, -1,new Margins(1)));
v.add(comboTimeDimensionTypeLabel, new VerticalLayoutData(1, -1)); v.add(comboTimeDimensionTypeLabel, new VerticalLayoutData(1, -1,new Margins(1)));
v.add(change, new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0))); v.add(change, new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0)));
add(v, new VerticalLayoutData(-1, -1, new Margins())); add(v, new VerticalLayoutData(-1, -1, new Margins(0)));
// addButton(); // addButton();
} }