ref 8580:TDM - TabMan - Support Java 8 compatibility
https://support.d4science.org/issues/8580 Updated compatibility to Java 8 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@148655 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
cd417b9004
commit
1472f74c0b
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="target/tabular-data-expression-widget-1.9.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
<classpathentry kind="src" output="target/tabular-data-expression-widget-1.10.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="optional" value="true"/>
|
<attribute name="optional" value="true"/>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry excluding="**" kind="src" output="target/tabular-data-expression-widget-1.9.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
<classpathentry excluding="**" kind="src" output="target/tabular-data-expression-widget-1.10.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
|
@ -32,5 +32,5 @@
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/tabular-data-expression-widget-1.9.0-SNAPSHOT/WEB-INF/classes"/>
|
<classpathentry kind="output" path="target/tabular-data-expression-widget-1.10.0-SNAPSHOT/WEB-INF/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
<ReleaseNotes>
|
<ReleaseNotes>
|
||||||
|
<Changeset component="org.gcube.portlets-user.tabular-data-expression-widget.1-10-0"
|
||||||
|
date="2017-06-12">
|
||||||
|
<Change>Support Java 8 compatibility [ticket #8580]</Change>
|
||||||
|
</Changeset>
|
||||||
<Changeset component="org.gcube.portlets-user.tabular-data-expression-widget.1-9-0"
|
<Changeset component="org.gcube.portlets-user.tabular-data-expression-widget.1-9-0"
|
||||||
date="2017-02-15">
|
date="2017-02-15">
|
||||||
<Change>Updated to new PortalContext [ticket #6548]</Change>
|
<Change>Updated to new PortalContext [ticket #6548]</Change>
|
||||||
|
|
8
pom.xml
8
pom.xml
|
@ -13,7 +13,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
<artifactId>tabular-data-expression-widget</artifactId>
|
<artifactId>tabular-data-expression-widget</artifactId>
|
||||||
<version>1.9.0-SNAPSHOT</version>
|
<version>1.10.0-SNAPSHOT</version>
|
||||||
|
|
||||||
|
|
||||||
<name>tabular-data-expression-widget</name>
|
<name>tabular-data-expression-widget</name>
|
||||||
|
@ -40,6 +40,8 @@
|
||||||
<distroDirectory>distro</distroDirectory>
|
<distroDirectory>distro</distroDirectory>
|
||||||
<configDirectory>config</configDirectory>
|
<configDirectory>config</configDirectory>
|
||||||
|
|
||||||
|
<!-- JAVA -->
|
||||||
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
|
|
||||||
|
|
||||||
<!-- Next -->
|
<!-- Next -->
|
||||||
|
@ -50,7 +52,7 @@
|
||||||
|
|
||||||
<KEYS>${env.KEYS}</KEYS>
|
<KEYS>${env.KEYS}</KEYS>
|
||||||
|
|
||||||
<!-- GWT needs at least java 1.5 -->
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
@ -115,7 +117,7 @@
|
||||||
<!-- <version>[1.0.2-SNAPSHOT,2.0.0-SNAPSHOT)</version> -->
|
<!-- <version>[1.0.2-SNAPSHOT,2.0.0-SNAPSHOT)</version> -->
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- service-client-impl -->
|
<!-- service-client-impl -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.data.analysis.tabulardata</groupId>
|
<groupId>org.gcube.data.analysis.tabulardata</groupId>
|
||||||
|
|
|
@ -55,9 +55,8 @@ import com.sencha.gxt.widget.core.client.info.Info;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class ColumnExpressionPanel extends FramedPanel {
|
public class ColumnExpressionPanel extends FramedPanel {
|
||||||
private static final String RULE_DESCRIPTION_HEIGHT = "44px";
|
private static final String RULE_DESCRIPTION_HEIGHT = "44px";
|
||||||
|
@ -65,7 +64,7 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
private static final String WIDTH = "658px";
|
private static final String WIDTH = "658px";
|
||||||
private static final String HEIGHT = "364px";
|
private static final String HEIGHT = "364px";
|
||||||
private static final String RULE_HEIGHT = "388px";
|
private static final String RULE_HEIGHT = "388px";
|
||||||
|
|
||||||
private enum ColumnExpressionPanelType {
|
private enum ColumnExpressionPanelType {
|
||||||
ColumnFilter, RowDeleteByExpression, Template, RuleOnColumn;
|
ColumnFilter, RowDeleteByExpression, Template, RuleOnColumn;
|
||||||
}
|
}
|
||||||
|
@ -99,12 +98,16 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param parentFilterDialog
|
* @param parentFilterDialog
|
||||||
|
* parent
|
||||||
* @param column
|
* @param column
|
||||||
|
* column
|
||||||
* @param columns
|
* @param columns
|
||||||
|
* list of column
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* event bus
|
||||||
*/
|
*/
|
||||||
public ColumnExpressionPanel(ColumnFilterDialog parentFilterDialog,
|
public ColumnExpressionPanel(ColumnFilterDialog parentFilterDialog, ColumnData column,
|
||||||
ColumnData column, ArrayList<ColumnData> columns, EventBus eventBus) {
|
ArrayList<ColumnData> columns, EventBus eventBus) {
|
||||||
super();
|
super();
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
|
@ -119,13 +122,16 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param parentRowsDeleteByExpressionDialog
|
* @param parentRowsDeleteByExpressionDialog
|
||||||
|
* parent
|
||||||
* @param column
|
* @param column
|
||||||
|
* column
|
||||||
* @param columns
|
* @param columns
|
||||||
|
* list of column
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* event bus
|
||||||
*/
|
*/
|
||||||
public ColumnExpressionPanel(
|
public ColumnExpressionPanel(RowsDeleteByExpressionDialog parentRowsDeleteByExpressionDialog, ColumnData column,
|
||||||
RowsDeleteByExpressionDialog parentRowsDeleteByExpressionDialog,
|
ArrayList<ColumnData> columns, EventBus eventBus) {
|
||||||
ColumnData column, ArrayList<ColumnData> columns, EventBus eventBus) {
|
|
||||||
super();
|
super();
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(RULE_HEIGHT);
|
setHeight(RULE_HEIGHT);
|
||||||
|
@ -140,12 +146,14 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param parentColumnExpressionDialog
|
* @param parentColumnExpressionDialog
|
||||||
|
* parent
|
||||||
* @param column
|
* @param column
|
||||||
|
* column
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* event bus
|
||||||
*/
|
*/
|
||||||
public ColumnExpressionPanel(
|
public ColumnExpressionPanel(TemplateColumnExpressionDialog parentColumnExpressionDialog, ColumnData column,
|
||||||
TemplateColumnExpressionDialog parentColumnExpressionDialog,
|
EventBus eventBus) {
|
||||||
ColumnData column, EventBus eventBus) {
|
|
||||||
super();
|
super();
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
|
@ -161,10 +169,11 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param parent
|
* @param parent
|
||||||
|
* parent
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* event bus
|
||||||
*/
|
*/
|
||||||
public ColumnExpressionPanel(RuleOnColumnCreateDialog parent,
|
public ColumnExpressionPanel(RuleOnColumnCreateDialog parent, EventBus eventBus) {
|
||||||
EventBus eventBus) {
|
|
||||||
super();
|
super();
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
|
@ -239,12 +248,9 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
|
|
||||||
basicLayout.add(properties, new VerticalLayoutData(1, -1,
|
basicLayout.add(properties, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1,
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
new Margins(1)));
|
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(
|
|
||||||
5, 2, 5, 2)));
|
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
if (initialRuleDescriptionData == null) {
|
if (initialRuleDescriptionData == null) {
|
||||||
|
@ -267,21 +273,16 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
ruleDescription.setHeight(RULE_DESCRIPTION_HEIGHT);
|
ruleDescription.setHeight(RULE_DESCRIPTION_HEIGHT);
|
||||||
ruleDescription.setToolTip("Rule Description");
|
ruleDescription.setToolTip("Rule Description");
|
||||||
if (initialRuleDescriptionData != null) {
|
if (initialRuleDescriptionData != null) {
|
||||||
ruleDescription.setValue(initialRuleDescriptionData
|
ruleDescription.setValue(initialRuleDescriptionData.getDescription());
|
||||||
.getDescription());
|
|
||||||
}
|
}
|
||||||
FieldLabel ruleDescriptionLabel = new FieldLabel(ruleDescription,
|
FieldLabel ruleDescriptionLabel = new FieldLabel(ruleDescription, "Rule Description");
|
||||||
"Rule Description");
|
|
||||||
|
|
||||||
// comboDataType
|
// comboDataType
|
||||||
ColumnDataTypeProperties propsDataType = GWT
|
ColumnDataTypeProperties propsDataType = GWT.create(ColumnDataTypeProperties.class);
|
||||||
.create(ColumnDataTypeProperties.class);
|
ListStore<ColumnDataTypeElement> storeComboDataType = new ListStore<ColumnDataTypeElement>(propsDataType.id());
|
||||||
ListStore<ColumnDataTypeElement> storeComboDataType = new ListStore<ColumnDataTypeElement>(
|
|
||||||
propsDataType.id());
|
|
||||||
storeComboDataType.addAll(ColumnDataTypeStore.getAttributeType());
|
storeComboDataType.addAll(ColumnDataTypeStore.getAttributeType());
|
||||||
|
|
||||||
comboDataType = new ComboBox<ColumnDataTypeElement>(storeComboDataType,
|
comboDataType = new ComboBox<ColumnDataTypeElement>(storeComboDataType, propsDataType.label());
|
||||||
propsDataType.label());
|
|
||||||
Log.trace("ComboDataType created");
|
Log.trace("ComboDataType created");
|
||||||
|
|
||||||
addHandlersForComboAttributeType(propsDataType.label());
|
addHandlersForComboAttributeType(propsDataType.label());
|
||||||
|
@ -292,13 +293,11 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
comboDataType.setTriggerAction(TriggerAction.ALL);
|
comboDataType.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
if (initialRuleDescriptionData != null) {
|
if (initialRuleDescriptionData != null) {
|
||||||
Log.debug("Initial RuleDescriptionData: "
|
Log.debug("Initial RuleDescriptionData: " + initialRuleDescriptionData);
|
||||||
+ initialRuleDescriptionData);
|
|
||||||
ColumnDataType cdt = retrieveColumnDataType();
|
ColumnDataType cdt = retrieveColumnDataType();
|
||||||
if (cdt != null) {
|
if (cdt != null) {
|
||||||
Log.debug("Retrieved column data type: " + cdt);
|
Log.debug("Retrieved column data type: " + cdt);
|
||||||
ColumnDataTypeElement cdte = ColumnDataTypeStore
|
ColumnDataTypeElement cdte = ColumnDataTypeStore.selectedAttributeElement(cdt);
|
||||||
.selectedAttributeElement(cdt);
|
|
||||||
if (cdte != null) {
|
if (cdte != null) {
|
||||||
comboDataType.setValue(cdte);
|
comboDataType.setValue(cdte);
|
||||||
|
|
||||||
|
@ -310,19 +309,15 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
comboDataTypeLabel = new FieldLabel(comboDataType, "Data Type");
|
comboDataTypeLabel = new FieldLabel(comboDataType, "Data Type");
|
||||||
|
|
||||||
propertiesLayout.add(ruleNameLabel, new VerticalLayoutData(1, -1,
|
propertiesLayout.add(ruleNameLabel, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
new Margins(0)));
|
propertiesLayout.add(ruleDescriptionLabel, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
propertiesLayout.add(ruleDescriptionLabel, new VerticalLayoutData(1,
|
|
||||||
-1, new Margins(0)));
|
|
||||||
|
|
||||||
propertiesLayout.add(comboDataTypeLabel, new VerticalLayoutData(1, -1,
|
propertiesLayout.add(comboDataTypeLabel, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
new Margins(0)));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private ColumnDataType retrieveColumnDataType() {
|
private ColumnDataType retrieveColumnDataType() {
|
||||||
TDRuleType tdRuleColumnType = initialRuleDescriptionData
|
TDRuleType tdRuleColumnType = initialRuleDescriptionData.getTdRuleType();
|
||||||
.getTdRuleType();
|
|
||||||
if (tdRuleColumnType instanceof TDBaseColumnRuleType) {
|
if (tdRuleColumnType instanceof TDBaseColumnRuleType) {
|
||||||
TDBaseColumnRuleType tdBaseColumnRuleType = (TDBaseColumnRuleType) tdRuleColumnType;
|
TDBaseColumnRuleType tdBaseColumnRuleType = (TDBaseColumnRuleType) tdRuleColumnType;
|
||||||
return tdBaseColumnRuleType.getColumnDataType();
|
return tdBaseColumnRuleType.getColumnDataType();
|
||||||
|
@ -332,27 +327,17 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void addHandlersForComboAttributeType(
|
protected void addHandlersForComboAttributeType(final LabelProvider<ColumnDataTypeElement> labelProvider) {
|
||||||
final LabelProvider<ColumnDataTypeElement> labelProvider) {
|
comboDataType.addSelectionHandler(new SelectionHandler<ColumnDataTypeElement>() {
|
||||||
comboDataType
|
public void onSelection(SelectionEvent<ColumnDataTypeElement> event) {
|
||||||
.addSelectionHandler(new SelectionHandler<ColumnDataTypeElement>() {
|
Info.display("Attribute Type Selected", "You selected " + (event.getSelectedItem() == null ? "nothing"
|
||||||
public void onSelection(
|
: labelProvider.getLabel(event.getSelectedItem()) + "!"));
|
||||||
SelectionEvent<ColumnDataTypeElement> event) {
|
Log.debug("ComboAttributeType selected: " + event.getSelectedItem());
|
||||||
Info.display(
|
ColumnDataTypeElement attributeType = event.getSelectedItem();
|
||||||
"Attribute Type Selected",
|
updateDataType(attributeType.getType());
|
||||||
"You selected "
|
}
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboAttributeType selected: "
|
|
||||||
+ event.getSelectedItem());
|
|
||||||
ColumnDataTypeElement attributeType = event
|
|
||||||
.getSelectedItem();
|
|
||||||
updateDataType(attributeType.getType());
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void updateCondition() {
|
protected void updateCondition() {
|
||||||
|
@ -374,13 +359,11 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
protected ColumnMockUp retrieveColumnMockUp() {
|
protected ColumnMockUp retrieveColumnMockUp() {
|
||||||
ColumnMockUp columnMockUp = null;
|
ColumnMockUp columnMockUp = null;
|
||||||
|
|
||||||
ColumnDataTypeElement columnDataTypeElement = comboDataType
|
ColumnDataTypeElement columnDataTypeElement = comboDataType.getCurrentValue();
|
||||||
.getCurrentValue();
|
|
||||||
if (columnDataTypeElement != null) {
|
if (columnDataTypeElement != null) {
|
||||||
ColumnDataType dataType = columnDataTypeElement.getType();
|
ColumnDataType dataType = columnDataTypeElement.getType();
|
||||||
if (dataType != null) {
|
if (dataType != null) {
|
||||||
columnMockUp = new ColumnMockUp(null, RULE_PLACE_HOLDER_ID,
|
columnMockUp = new ColumnMockUp(null, RULE_PLACE_HOLDER_ID, dataType, RULE_PLACE_HOLDER_ID);
|
||||||
dataType, RULE_PLACE_HOLDER_ID);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -402,27 +385,21 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
String ruleDescriptionS = ruleDescription.getCurrentValue();
|
String ruleDescriptionS = ruleDescription.getCurrentValue();
|
||||||
|
|
||||||
if (ruleDescriptionS != null && !ruleDescriptionS.isEmpty()) {
|
if (ruleDescriptionS != null && !ruleDescriptionS.isEmpty()) {
|
||||||
ColumnDataTypeElement columnDataTypeElement = comboDataType
|
ColumnDataTypeElement columnDataTypeElement = comboDataType.getCurrentValue();
|
||||||
.getCurrentValue();
|
|
||||||
if (columnDataTypeElement != null) {
|
if (columnDataTypeElement != null) {
|
||||||
ColumnDataType dataType = columnDataTypeElement.getType();
|
ColumnDataType dataType = columnDataTypeElement.getType();
|
||||||
if (dataType != null) {
|
if (dataType != null) {
|
||||||
columnMockUp = new ColumnMockUp(null,
|
columnMockUp = new ColumnMockUp(null, RULE_PLACE_HOLDER_ID, dataType, RULE_PLACE_HOLDER_ID);
|
||||||
RULE_PLACE_HOLDER_ID, dataType,
|
|
||||||
RULE_PLACE_HOLDER_ID);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
UtilsGXT3.alert("Attention",
|
UtilsGXT3.alert("Attention", "Column data type not selected!");
|
||||||
"Column data type not selected!");
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
UtilsGXT3.alert("Attention",
|
UtilsGXT3.alert("Attention", "Column data type not selected!");
|
||||||
"Column data type not selected!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
UtilsGXT3.alert("Attention",
|
UtilsGXT3.alert("Attention", "Enter a valid description for the rule!");
|
||||||
"Enter a valid description for the rule!");
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
UtilsGXT3.alert("Attention", "Enter a valid name for the rule!");
|
UtilsGXT3.alert("Attention", "Enter a valid name for the rule!");
|
||||||
|
@ -437,12 +414,10 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
if (exp != null) {
|
if (exp != null) {
|
||||||
String ruleNameS = ruleName.getCurrentValue();
|
String ruleNameS = ruleName.getCurrentValue();
|
||||||
String ruleDescriptionS = ruleDescription.getCurrentValue();
|
String ruleDescriptionS = ruleDescription.getCurrentValue();
|
||||||
TDBaseColumnRuleType tdBaseColumnRule = new TDBaseColumnRuleType(
|
TDBaseColumnRuleType tdBaseColumnRule = new TDBaseColumnRuleType(columnMockUp.getColumnDataType());
|
||||||
columnMockUp.getColumnDataType());
|
|
||||||
|
|
||||||
RuleDescriptionData ruleDescriptionData = new RuleDescriptionData(
|
RuleDescriptionData ruleDescriptionData = new RuleDescriptionData(0, ruleNameS, ruleDescriptionS,
|
||||||
0, ruleNameS, ruleDescriptionS, new Date(),
|
new Date(), null, null, RuleScopeType.COLUMN, exp, tdBaseColumnRule);
|
||||||
null, null, RuleScopeType.COLUMN, exp, tdBaseColumnRule);
|
|
||||||
return ruleDescriptionData;
|
return ruleDescriptionData;
|
||||||
} else {
|
} else {
|
||||||
UtilsGXT3.alert("Attention", "Enter a valid condition!");
|
UtilsGXT3.alert("Attention", "Enter a valid condition!");
|
||||||
|
@ -488,15 +463,13 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
columnType.setToolTip("The type of column");
|
columnType.setToolTip("The type of column");
|
||||||
columnType.setReadOnly(true);
|
columnType.setReadOnly(true);
|
||||||
columnType.setValue(column.getTypeCode());
|
columnType.setValue(column.getTypeCode());
|
||||||
propertiesLayout.add(new FieldLabel(columnType, "Column Type"),
|
propertiesLayout.add(new FieldLabel(columnType, "Column Type"), new VerticalLayoutData(1, -1));
|
||||||
new VerticalLayoutData(1, -1));
|
|
||||||
|
|
||||||
TextField dataType = new TextField();
|
TextField dataType = new TextField();
|
||||||
dataType.setToolTip("The data type");
|
dataType.setToolTip("The data type");
|
||||||
dataType.setReadOnly(true);
|
dataType.setReadOnly(true);
|
||||||
dataType.setValue(column.getDataTypeName());
|
dataType.setValue(column.getDataTypeName());
|
||||||
propertiesLayout.add(new FieldLabel(dataType, "Data Type"),
|
propertiesLayout.add(new FieldLabel(dataType, "Data Type"), new VerticalLayoutData(1, -1));
|
||||||
new VerticalLayoutData(1, -1));
|
|
||||||
|
|
||||||
conditionsField = new FieldSet();
|
conditionsField = new FieldSet();
|
||||||
conditionsField.setHeadingText("Conditions");
|
conditionsField.setHeadingText("Conditions");
|
||||||
|
@ -535,12 +508,9 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
|
|
||||||
basicLayout.add(properties, new VerticalLayoutData(1, -1,
|
basicLayout.add(properties, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1,
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
new Margins(1)));
|
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(
|
|
||||||
5, 2, 5, 2)));
|
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -569,11 +539,9 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
properties.add(propertiesLayout);
|
properties.add(propertiesLayout);
|
||||||
|
|
||||||
// Combo Column
|
// Combo Column
|
||||||
ColumnDataPropertiesCombo propsCols = GWT
|
ColumnDataPropertiesCombo propsCols = GWT.create(ColumnDataPropertiesCombo.class);
|
||||||
.create(ColumnDataPropertiesCombo.class);
|
|
||||||
Log.debug("Props: " + propsCols);
|
Log.debug("Props: " + propsCols);
|
||||||
final ListStore<ColumnData> storeCols = new ListStore<ColumnData>(
|
final ListStore<ColumnData> storeCols = new ListStore<ColumnData>(propsCols.id());
|
||||||
propsCols.id());
|
|
||||||
Log.debug("Store Col: " + storeCols);
|
Log.debug("Store Col: " + storeCols);
|
||||||
storeCols.addAll(columns);
|
storeCols.addAll(columns);
|
||||||
|
|
||||||
|
@ -590,8 +558,7 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
setSelectedColumn();
|
setSelectedColumn();
|
||||||
|
|
||||||
propertiesLayout.add(new FieldLabel(comboCols, "Column"),
|
propertiesLayout.add(new FieldLabel(comboCols, "Column"), new VerticalLayoutData(1, -1));
|
||||||
new VerticalLayoutData(1, -1));
|
|
||||||
|
|
||||||
//
|
//
|
||||||
conditionsField = new FieldSet();
|
conditionsField = new FieldSet();
|
||||||
|
@ -632,12 +599,9 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
flowButton.add(btnApply, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
flowButton.add(btnApply, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
|
|
||||||
basicLayout.add(properties, new VerticalLayoutData(1, -1,
|
basicLayout.add(properties, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1,
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
new Margins(1)));
|
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(
|
|
||||||
5, 2, 5, 2)));
|
|
||||||
|
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
|
@ -667,11 +631,9 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
properties.add(propertiesLayout);
|
properties.add(propertiesLayout);
|
||||||
|
|
||||||
// Combo Column
|
// Combo Column
|
||||||
ColumnDataPropertiesCombo propsCols = GWT
|
ColumnDataPropertiesCombo propsCols = GWT.create(ColumnDataPropertiesCombo.class);
|
||||||
.create(ColumnDataPropertiesCombo.class);
|
|
||||||
Log.debug("Props: " + propsCols);
|
Log.debug("Props: " + propsCols);
|
||||||
final ListStore<ColumnData> storeCols = new ListStore<ColumnData>(
|
final ListStore<ColumnData> storeCols = new ListStore<ColumnData>(propsCols.id());
|
||||||
propsCols.id());
|
|
||||||
Log.debug("Store Col: " + storeCols);
|
Log.debug("Store Col: " + storeCols);
|
||||||
storeCols.addAll(columns);
|
storeCols.addAll(columns);
|
||||||
|
|
||||||
|
@ -688,8 +650,7 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
setSelectedColumn();
|
setSelectedColumn();
|
||||||
|
|
||||||
propertiesLayout.add(new FieldLabel(comboCols, "Column"),
|
propertiesLayout.add(new FieldLabel(comboCols, "Column"), new VerticalLayoutData(1, -1));
|
||||||
new VerticalLayoutData(1, -1));
|
|
||||||
|
|
||||||
//
|
//
|
||||||
conditionsField = new FieldSet();
|
conditionsField = new FieldSet();
|
||||||
|
@ -701,8 +662,7 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
conditionsField.add(conditionWidget);
|
conditionsField.add(conditionWidget);
|
||||||
|
|
||||||
btnApply = new TextButton("Delete");
|
btnApply = new TextButton("Delete");
|
||||||
btnApply.setIcon(ExpressionResources.INSTANCE
|
btnApply.setIcon(ExpressionResources.INSTANCE.tableRowDeleteByExpression());
|
||||||
.tableRowDeleteByExpression());
|
|
||||||
btnApply.setIconAlign(IconAlign.RIGHT);
|
btnApply.setIconAlign(IconAlign.RIGHT);
|
||||||
btnApply.setToolTip("Delete rows");
|
btnApply.setToolTip("Delete rows");
|
||||||
btnApply.addSelectHandler(new SelectHandler() {
|
btnApply.addSelectHandler(new SelectHandler() {
|
||||||
|
@ -731,12 +691,9 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
flowButton.add(btnApply, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
flowButton.add(btnApply, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
|
|
||||||
basicLayout.add(properties, new VerticalLayoutData(1, -1,
|
basicLayout.add(properties, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1,
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
new Margins(1)));
|
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(
|
|
||||||
5, 2, 5, 2)));
|
|
||||||
|
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
|
@ -746,14 +703,11 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
if (column == null) {
|
if (column == null) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ColumnTypeCode typeCode = ColumnTypeCode
|
ColumnTypeCode typeCode = ColumnTypeCode.getColumnTypeCodeFromId(column.getTypeCode());
|
||||||
.getColumnTypeCodeFromId(column.getTypeCode());
|
|
||||||
HTML errorMessage;
|
HTML errorMessage;
|
||||||
if (typeCode == null) {
|
if (typeCode == null) {
|
||||||
errorMessage = new HTML(
|
errorMessage = new HTML("This column has column data type null!");
|
||||||
"This column has column data type null!");
|
UtilsGXT3.alert("Error", "This column has column data type null!!");
|
||||||
UtilsGXT3.alert("Error",
|
|
||||||
"This column has column data type null!!");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -768,18 +722,14 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
break;
|
break;
|
||||||
case DIMENSION:
|
case DIMENSION:
|
||||||
case TIMEDIMENSION:
|
case TIMEDIMENSION:
|
||||||
errorMessage = new HTML(
|
errorMessage = new HTML("This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
add(errorMessage);
|
add(errorMessage);
|
||||||
UtilsGXT3.alert("Error",
|
UtilsGXT3.alert("Error", "This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
errorMessage = new HTML(
|
errorMessage = new HTML("This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
add(errorMessage);
|
add(errorMessage);
|
||||||
UtilsGXT3.alert("Error",
|
UtilsGXT3.alert("Error", "This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -838,8 +788,7 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
columnName.setToolTip("Column");
|
columnName.setToolTip("Column");
|
||||||
columnName.setReadOnly(true);
|
columnName.setReadOnly(true);
|
||||||
columnName.setValue(column.getLabel());
|
columnName.setValue(column.getLabel());
|
||||||
propertiesLayout.add(new FieldLabel(columnName, "Column"),
|
propertiesLayout.add(new FieldLabel(columnName, "Column"), new VerticalLayoutData(1, -1));
|
||||||
new VerticalLayoutData(1, -1));
|
|
||||||
|
|
||||||
conditionsField = new FieldSet();
|
conditionsField = new FieldSet();
|
||||||
conditionsField.setHeadingText("Conditions");
|
conditionsField.setHeadingText("Conditions");
|
||||||
|
@ -864,12 +813,9 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
flowButton.add(btnApply, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
flowButton.add(btnApply, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
|
|
||||||
basicLayout.add(properties, new VerticalLayoutData(1, -1,
|
basicLayout.add(properties, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(1, -1,
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
new Margins(1)));
|
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(
|
|
||||||
5, 2, 5, 2)));
|
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -893,11 +839,9 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
condContainer = new C_ExpressionContainer();
|
condContainer = new C_ExpressionContainer();
|
||||||
condContainer.setId(C_ExpressionContainer.Contains.C_Expression);
|
condContainer.setId(C_ExpressionContainer.Contains.C_Expression);
|
||||||
condContainer.setExp(exp);
|
condContainer.setExp(exp);
|
||||||
exWrapper = new ExpressionWrapper(column.getTrId(), column,
|
exWrapper = new ExpressionWrapper(column.getTrId(), column, condContainer);
|
||||||
condContainer);
|
|
||||||
|
|
||||||
ExpressionWrapperNotification expressionWrapperNotification = new ExpressionWrapperNotification(
|
ExpressionWrapperNotification expressionWrapperNotification = new ExpressionWrapperNotification(exWrapper);
|
||||||
exWrapper);
|
|
||||||
Log.debug("Notification: " + expressionWrapperNotification);
|
Log.debug("Notification: " + expressionWrapperNotification);
|
||||||
parentTemplateDialog.onExpression(expressionWrapperNotification);
|
parentTemplateDialog.onExpression(expressionWrapperNotification);
|
||||||
break;
|
break;
|
||||||
|
@ -937,8 +881,7 @@ public class ColumnExpressionPanel extends FramedPanel {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
C_Expression notExp = new C_Not(exp);
|
C_Expression notExp = new C_Not(exp);
|
||||||
parentRowsDeleteByExpressionDialog.deleteRowsByExpression(column,
|
parentRowsDeleteByExpressionDialog.deleteRowsByExpression(column, notExp);
|
||||||
notExp);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ColumnFilterDialog extends Window implements MonitorDialogListener {
|
public class ColumnFilterDialog extends Window implements MonitorDialogListener {
|
||||||
|
|
|
@ -19,8 +19,8 @@ import com.sencha.gxt.widget.core.client.container.Viewport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExpressionWidgetEntry implements EntryPoint {
|
public class ExpressionWidgetEntry implements EntryPoint {
|
||||||
|
|
|
@ -47,8 +47,8 @@ import com.sencha.gxt.widget.core.client.form.validator.EmptyValidator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MultiColumnExpressionPanel extends FramedPanel {
|
public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
|
@ -66,7 +66,6 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
private static final String RULE_DESCRIPTION_HEIGHT = "44px";
|
private static final String RULE_DESCRIPTION_HEIGHT = "44px";
|
||||||
|
|
||||||
|
|
||||||
private enum MultiColumnExpressionPanelType {
|
private enum MultiColumnExpressionPanelType {
|
||||||
ColumnFilter, RowDeleteByExpression, Template, RuleOnTable;
|
ColumnFilter, RowDeleteByExpression, Template, RuleOnTable;
|
||||||
}
|
}
|
||||||
|
@ -96,12 +95,14 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param parent
|
* @param parent
|
||||||
* @param columncreateOnRule
|
* parent
|
||||||
* @param columns
|
* @param columns
|
||||||
|
* list of column
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* event bus
|
||||||
*/
|
*/
|
||||||
public MultiColumnExpressionPanel(MultiColumnFilterDialog parent,
|
public MultiColumnExpressionPanel(MultiColumnFilterDialog parent, ArrayList<ColumnData> columns,
|
||||||
ArrayList<ColumnData> columns, EventBus eventBus) {
|
EventBus eventBus) {
|
||||||
super();
|
super();
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
|
@ -114,13 +115,14 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param parent
|
* @param parent
|
||||||
* @param column
|
* Parent
|
||||||
* @param columns
|
* @param columns
|
||||||
|
* List of column
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public MultiColumnExpressionPanel(
|
public MultiColumnExpressionPanel(RowsDeleteByMultiColumnExpressionDialog parent, ArrayList<ColumnData> columns,
|
||||||
RowsDeleteByMultiColumnExpressionDialog parent,
|
EventBus eventBus) {
|
||||||
ArrayList<ColumnData> columns, EventBus eventBus) {
|
|
||||||
super();
|
super();
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(ROWS_DELETE_HEIGHT);
|
setHeight(ROWS_DELETE_HEIGHT);
|
||||||
|
@ -133,12 +135,14 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param parent
|
* @param parent
|
||||||
* @param column
|
* parent
|
||||||
|
* @param columns
|
||||||
|
* list of column
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* event bus
|
||||||
*/
|
*/
|
||||||
public MultiColumnExpressionPanel(
|
public MultiColumnExpressionPanel(TemplateMultiColumnExpressionDialog parent, ArrayList<ColumnData> columns,
|
||||||
TemplateMultiColumnExpressionDialog parent,
|
EventBus eventBus) {
|
||||||
ArrayList<ColumnData> columns, EventBus eventBus) {
|
|
||||||
super();
|
super();
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
|
@ -151,10 +155,13 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param parent
|
* @param parent
|
||||||
* @param eventBus
|
* parent
|
||||||
|
* @param initialRuleDescriptionData
|
||||||
|
* initial rule description
|
||||||
|
* @throws MultiColumnExpressionPanelException
|
||||||
|
* exception
|
||||||
*/
|
*/
|
||||||
public MultiColumnExpressionPanel(RuleOnTableCreateDialog parent,
|
public MultiColumnExpressionPanel(RuleOnTableCreateDialog parent, RuleDescriptionData initialRuleDescriptionData)
|
||||||
RuleDescriptionData initialRuleDescriptionData)
|
|
||||||
throws MultiColumnExpressionPanelException {
|
throws MultiColumnExpressionPanelException {
|
||||||
super();
|
super();
|
||||||
Log.debug("MultiColumnExpressionPanel");
|
Log.debug("MultiColumnExpressionPanel");
|
||||||
|
@ -169,15 +176,13 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
protected void retrieveColumns() throws MultiColumnExpressionPanelException {
|
protected void retrieveColumns() throws MultiColumnExpressionPanelException {
|
||||||
if (initialRuleDescriptionData == null) {
|
if (initialRuleDescriptionData == null) {
|
||||||
Log.error("No rules description data present!");
|
Log.error("No rules description data present!");
|
||||||
throw new MultiColumnExpressionPanelException(
|
throw new MultiColumnExpressionPanelException("No rules description data present!");
|
||||||
"No rules description data present!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TDRuleType tdRuleType = initialRuleDescriptionData.getTdRuleType();
|
TDRuleType tdRuleType = initialRuleDescriptionData.getTdRuleType();
|
||||||
if (tdRuleType == null) {
|
if (tdRuleType == null) {
|
||||||
Log.error("No Rule Type present!");
|
Log.error("No Rule Type present!");
|
||||||
throw new MultiColumnExpressionPanelException(
|
throw new MultiColumnExpressionPanelException("No Rule Type present!");
|
||||||
"No Rule Type present!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tdRuleType instanceof TDRuleTableType) {
|
if (tdRuleType instanceof TDRuleTableType) {
|
||||||
|
@ -190,8 +195,7 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
col.setId(ruleColumnPlaceHolderDescriptor.getId());
|
col.setId(ruleColumnPlaceHolderDescriptor.getId());
|
||||||
col.setColumnId(ruleColumnPlaceHolderDescriptor.getLabel());
|
col.setColumnId(ruleColumnPlaceHolderDescriptor.getLabel());
|
||||||
col.setLabel(ruleColumnPlaceHolderDescriptor.getLabel());
|
col.setLabel(ruleColumnPlaceHolderDescriptor.getLabel());
|
||||||
col.setDataTypeName(ruleColumnPlaceHolderDescriptor
|
col.setDataTypeName(ruleColumnPlaceHolderDescriptor.getColumnDataType().getId());
|
||||||
.getColumnDataType().getId());
|
|
||||||
columns.add(col);
|
columns.add(col);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,8 +203,7 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.error("No Table Rule Type present!");
|
Log.error("No Table Rule Type present!");
|
||||||
throw new MultiColumnExpressionPanelException(
|
throw new MultiColumnExpressionPanelException("No Table Rule Type present!");
|
||||||
"No Table Rule Type present!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -224,8 +227,8 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
conditionsField.setCollapsible(false);
|
conditionsField.setCollapsible(false);
|
||||||
conditionsField.setWidth(RULE_CONDITION_FIELD_WIDTH);
|
conditionsField.setWidth(RULE_CONDITION_FIELD_WIDTH);
|
||||||
|
|
||||||
conditionWidget = new ConditionOnMultiColumnWidget(columns,
|
conditionWidget = new ConditionOnMultiColumnWidget(columns, RULE_MULTI_CONDITION_WIDTH,
|
||||||
RULE_MULTI_CONDITION_WIDTH, RULE_MULTI_CONDITION_HEIGHT);
|
RULE_MULTI_CONDITION_HEIGHT);
|
||||||
conditionsField.add(conditionWidget);
|
conditionsField.add(conditionWidget);
|
||||||
|
|
||||||
HBoxLayoutContainer flowButton = new HBoxLayoutContainer();
|
HBoxLayoutContainer flowButton = new HBoxLayoutContainer();
|
||||||
|
@ -257,24 +260,19 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
flowButton
|
flowButton.add(btnApply, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
.add(btnApply, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
|
||||||
|
|
||||||
flowButton
|
flowButton.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
||||||
.add(btnClose, new BoxLayoutData(new Margins(2, 4, 2, 4)));
|
|
||||||
|
|
||||||
VerticalLayoutContainer basicLayout = new VerticalLayoutContainer();
|
VerticalLayoutContainer basicLayout = new VerticalLayoutContainer();
|
||||||
// basicLayout.setAdjustForScroll(true);
|
// basicLayout.setAdjustForScroll(true);
|
||||||
|
|
||||||
basicLayout.add(propertiesField, new VerticalLayoutData(1, -1,
|
basicLayout.add(propertiesField, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
|
||||||
|
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(-1, -1,
|
basicLayout.add(conditionsField, new VerticalLayoutData(-1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
|
||||||
|
|
||||||
if (parentRuleOnTableCreateDialog != null) {
|
if (parentRuleOnTableCreateDialog != null) {
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36,
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
new Margins(5, 2, 5, 2)));
|
|
||||||
}
|
}
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
|
@ -293,8 +291,7 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createRuleOnTableDecription(
|
private void createRuleOnTableDecription(VerticalLayoutContainer propertiesLayout) {
|
||||||
VerticalLayoutContainer propertiesLayout) {
|
|
||||||
ruleName = new TextField();
|
ruleName = new TextField();
|
||||||
ruleName.addValidator(new EmptyValidator<String>());
|
ruleName.addValidator(new EmptyValidator<String>());
|
||||||
ruleName.setToolTip("Rule Name");
|
ruleName.setToolTip("Rule Name");
|
||||||
|
@ -308,16 +305,12 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
ruleDescription.setHeight(RULE_DESCRIPTION_HEIGHT);
|
ruleDescription.setHeight(RULE_DESCRIPTION_HEIGHT);
|
||||||
ruleDescription.setToolTip("Rule Description");
|
ruleDescription.setToolTip("Rule Description");
|
||||||
if (initialRuleDescriptionData != null) {
|
if (initialRuleDescriptionData != null) {
|
||||||
ruleDescription.setValue(initialRuleDescriptionData
|
ruleDescription.setValue(initialRuleDescriptionData.getDescription());
|
||||||
.getDescription());
|
|
||||||
}
|
}
|
||||||
FieldLabel ruleDescriptionLabel = new FieldLabel(ruleDescription,
|
FieldLabel ruleDescriptionLabel = new FieldLabel(ruleDescription, "Rule Description");
|
||||||
"Rule Description");
|
|
||||||
|
|
||||||
propertiesLayout.add(ruleNameLabel, new VerticalLayoutData(1, -1,
|
propertiesLayout.add(ruleNameLabel, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
new Margins(0)));
|
propertiesLayout.add(ruleDescriptionLabel, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
propertiesLayout.add(ruleDescriptionLabel, new VerticalLayoutData(1,
|
|
||||||
-1, new Margins(0)));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -328,22 +321,18 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
if (exp != null) {
|
if (exp != null) {
|
||||||
String ruleNameS = ruleName.getCurrentValue();
|
String ruleNameS = ruleName.getCurrentValue();
|
||||||
String ruleDescriptionS = ruleDescription.getCurrentValue();
|
String ruleDescriptionS = ruleDescription.getCurrentValue();
|
||||||
RuleDescriptionData ruleDescriptionData = new RuleDescriptionData(
|
RuleDescriptionData ruleDescriptionData = new RuleDescriptionData(0, ruleNameS, ruleDescriptionS,
|
||||||
0, ruleNameS, ruleDescriptionS, new Date(), null,
|
new Date(), null, null, RuleScopeType.TABLE, exp,
|
||||||
null, RuleScopeType.TABLE, exp,
|
|
||||||
initialRuleDescriptionData.getTdRuleType());
|
initialRuleDescriptionData.getTdRuleType());
|
||||||
return ruleDescriptionData;
|
return ruleDescriptionData;
|
||||||
} else {
|
} else {
|
||||||
throw new MultiColumnExpressionPanelException(
|
throw new MultiColumnExpressionPanelException("Enter a valid condition!");
|
||||||
"Enter a valid condition!");
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new MultiColumnExpressionPanelException(
|
throw new MultiColumnExpressionPanelException("Enter a valid description for the rule!");
|
||||||
"Enter a valid description for the rule!");
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new MultiColumnExpressionPanelException(
|
throw new MultiColumnExpressionPanelException("Enter a valid name for the rule!");
|
||||||
"Enter a valid name for the rule!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -401,10 +390,8 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
// basicLayout.setAdjustForScroll(true);
|
// basicLayout.setAdjustForScroll(true);
|
||||||
// basicLayout.setScrollMode(ScrollMode.AUTO); Set In GXT 3.0.1
|
// basicLayout.setScrollMode(ScrollMode.AUTO); Set In GXT 3.0.1
|
||||||
|
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(-1, -1,
|
basicLayout.add(conditionsField, new VerticalLayoutData(-1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(
|
|
||||||
5, 2, 5, 2)));
|
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -456,10 +443,8 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
VerticalLayoutContainer basicLayout = new VerticalLayoutContainer();
|
VerticalLayoutContainer basicLayout = new VerticalLayoutContainer();
|
||||||
// basicLayout.setAdjustForScroll(true);
|
// basicLayout.setAdjustForScroll(true);
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(-1, -1,
|
basicLayout.add(conditionsField, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||||
new Margins(0)));
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(
|
|
||||||
5, 2, 5, 2)));
|
|
||||||
|
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
|
@ -485,8 +470,7 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
conditionsField.add(conditionWidget);
|
conditionsField.add(conditionWidget);
|
||||||
|
|
||||||
btnApply = new TextButton("Delete");
|
btnApply = new TextButton("Delete");
|
||||||
btnApply.setIcon(ExpressionResources.INSTANCE
|
btnApply.setIcon(ExpressionResources.INSTANCE.tableRowDeleteByExpression());
|
||||||
.tableRowDeleteByExpression());
|
|
||||||
btnApply.setIconAlign(IconAlign.RIGHT);
|
btnApply.setIconAlign(IconAlign.RIGHT);
|
||||||
btnApply.setToolTip("Delete rows");
|
btnApply.setToolTip("Delete rows");
|
||||||
btnApply.addSelectHandler(new SelectHandler() {
|
btnApply.addSelectHandler(new SelectHandler() {
|
||||||
|
@ -514,10 +498,8 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
VerticalLayoutContainer basicLayout = new VerticalLayoutContainer();
|
VerticalLayoutContainer basicLayout = new VerticalLayoutContainer();
|
||||||
|
|
||||||
basicLayout.add(conditionsField, new VerticalLayoutData(-1, -1,
|
basicLayout.add(conditionsField, new VerticalLayoutData(-1, -1, new Margins(1)));
|
||||||
new Margins(1)));
|
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||||
basicLayout.add(flowButton, new VerticalLayoutData(1, 36, new Margins(
|
|
||||||
5, 2, 5, 2)));
|
|
||||||
|
|
||||||
add(basicLayout);
|
add(basicLayout);
|
||||||
|
|
||||||
|
@ -527,14 +509,11 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
if (column == null) {
|
if (column == null) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ColumnTypeCode typeCode = ColumnTypeCode
|
ColumnTypeCode typeCode = ColumnTypeCode.getColumnTypeCodeFromId(column.getTypeCode());
|
||||||
.getColumnTypeCodeFromId(column.getTypeCode());
|
|
||||||
HTML errorMessage;
|
HTML errorMessage;
|
||||||
if (typeCode == null) {
|
if (typeCode == null) {
|
||||||
errorMessage = new HTML(
|
errorMessage = new HTML("This column has column data type null!");
|
||||||
"This column has column data type null!");
|
UtilsGXT3.alert("Error", "This column has column data type null!!");
|
||||||
UtilsGXT3.alert("Error",
|
|
||||||
"This column has column data type null!!");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -549,18 +528,14 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
break;
|
break;
|
||||||
case DIMENSION:
|
case DIMENSION:
|
||||||
case TIMEDIMENSION:
|
case TIMEDIMENSION:
|
||||||
errorMessage = new HTML(
|
errorMessage = new HTML("This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
add(errorMessage);
|
add(errorMessage);
|
||||||
UtilsGXT3.alert("Error",
|
UtilsGXT3.alert("Error", "This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
errorMessage = new HTML(
|
errorMessage = new HTML("This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
add(errorMessage);
|
add(errorMessage);
|
||||||
UtilsGXT3.alert("Error",
|
UtilsGXT3.alert("Error", "This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -609,8 +584,7 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
condContainer.setExp(exp);
|
condContainer.setExp(exp);
|
||||||
exWrapper = new ExpressionWrapper(null, null, condContainer);
|
exWrapper = new ExpressionWrapper(null, null, condContainer);
|
||||||
|
|
||||||
ExpressionWrapperNotification expressionWrapperNotification = new ExpressionWrapperNotification(
|
ExpressionWrapperNotification expressionWrapperNotification = new ExpressionWrapperNotification(exWrapper);
|
||||||
exWrapper);
|
|
||||||
Log.debug("Apply: " + expressionWrapperNotification);
|
Log.debug("Apply: " + expressionWrapperNotification);
|
||||||
parentTemplateDialog.onExpression(expressionWrapperNotification);
|
parentTemplateDialog.onExpression(expressionWrapperNotification);
|
||||||
break;
|
break;
|
||||||
|
@ -672,8 +646,7 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public RuleDescriptionData getRuleOnTable()
|
public RuleDescriptionData getRuleOnTable() throws MultiColumnExpressionPanelException {
|
||||||
throws MultiColumnExpressionPanelException {
|
|
||||||
if (!conditionWidget.isEnabled()) {
|
if (!conditionWidget.isEnabled()) {
|
||||||
throw new MultiColumnExpressionPanelException("Fill all field!");
|
throw new MultiColumnExpressionPanelException("Fill all field!");
|
||||||
}
|
}
|
||||||
|
@ -684,8 +657,7 @@ public class MultiColumnExpressionPanel extends FramedPanel {
|
||||||
exp = conditionWidget.getExpression();
|
exp = conditionWidget.getExpression();
|
||||||
} catch (ConditionTypeMapException e) {
|
} catch (ConditionTypeMapException e) {
|
||||||
Log.debug(e.getLocalizedMessage());
|
Log.debug(e.getLocalizedMessage());
|
||||||
throw new MultiColumnExpressionPanelException(
|
throw new MultiColumnExpressionPanelException(e.getLocalizedMessage());
|
||||||
e.getLocalizedMessage());
|
|
||||||
}
|
}
|
||||||
RuleDescriptionData ruleDescriptionData = retrieveRuleDescriptionData(exp);
|
RuleDescriptionData ruleDescriptionData = retrieveRuleDescriptionData(exp);
|
||||||
return ruleDescriptionData;
|
return ruleDescriptionData;
|
||||||
|
|
|
@ -32,8 +32,8 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MultiColumnFilterDialog extends Window implements MonitorDialogListener {
|
public class MultiColumnFilterDialog extends Window implements MonitorDialogListener {
|
||||||
|
|
|
@ -34,12 +34,11 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceColumnByExpressionDialog extends Window implements
|
public class ReplaceColumnByExpressionDialog extends Window implements MonitorDialogListener {
|
||||||
MonitorDialogListener {
|
|
||||||
private static final String WIDTH = "900px";
|
private static final String WIDTH = "900px";
|
||||||
private static final String HEIGHT = "490px";
|
private static final String HEIGHT = "490px";
|
||||||
// private static final String HEIGHT_REDUCE = "404px";
|
// private static final String HEIGHT_REDUCE = "404px";
|
||||||
|
@ -58,13 +57,16 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
*
|
*
|
||||||
* Columns must have set columnId, label, columnTypeCode and ColumnDataType
|
* Columns must have set columnId, label, columnTypeCode and ColumnDataType
|
||||||
*
|
*
|
||||||
* @param column
|
*
|
||||||
* The column selected
|
* @param columnMockUp
|
||||||
* @param columns
|
* column mockup
|
||||||
|
* @param columnMockUpList
|
||||||
|
* columns mockup list
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* event bus
|
||||||
*/
|
*/
|
||||||
public ReplaceColumnByExpressionDialog(ColumnMockUp columnMockUp,
|
public ReplaceColumnByExpressionDialog(ColumnMockUp columnMockUp, ArrayList<ColumnMockUp> columnMockUpList,
|
||||||
ArrayList<ColumnMockUp> columnMockUpList, EventBus eventBus) {
|
EventBus eventBus) {
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
column = new ColumnData();
|
column = new ColumnData();
|
||||||
column.setColumnId(columnMockUp.getColumnId());
|
column.setColumnId(columnMockUp.getColumnId());
|
||||||
|
@ -92,15 +94,17 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param trId
|
* @param trId
|
||||||
* @param columnName
|
* tabular resource id
|
||||||
|
* @param columnId
|
||||||
|
* column id
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* event bus
|
||||||
*/
|
*/
|
||||||
public ReplaceColumnByExpressionDialog(TRId trId, String columnId,
|
public ReplaceColumnByExpressionDialog(TRId trId, String columnId, EventBus eventBus) {
|
||||||
EventBus eventBus) {
|
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.trId = trId;
|
this.trId = trId;
|
||||||
if (columnId == null) {
|
if (columnId == null) {
|
||||||
column=null;
|
column = null;
|
||||||
} else {
|
} else {
|
||||||
column = new ColumnData();
|
column = new ColumnData();
|
||||||
column.setColumnId(columnId);
|
column.setColumnId(columnId);
|
||||||
|
@ -119,14 +123,11 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setHeadingText("Replace Column By Expression");
|
setHeadingText("Replace Column By Expression");
|
||||||
setClosable(true);
|
setClosable(true);
|
||||||
getHeader().setIcon(
|
getHeader().setIcon(ExpressionResources.INSTANCE.columnReplaceByExpression());
|
||||||
ExpressionResources.INSTANCE.columnReplaceByExpression());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void initTools() {
|
protected void initTools() {
|
||||||
super.initTools();
|
super.initTools();
|
||||||
|
@ -141,8 +142,8 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create() {
|
protected void create() {
|
||||||
replaceColumnByExpressionPanel = new ReplaceColumnByExpressionPanel(
|
replaceColumnByExpressionPanel = new ReplaceColumnByExpressionPanel(this, column, columns, eventBus,
|
||||||
this, column, columns, eventBus, replaceExpressionType);
|
replaceExpressionType);
|
||||||
add(replaceColumnByExpressionPanel);
|
add(replaceColumnByExpressionPanel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,59 +156,52 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
this.cConditionExpression = exp;
|
this.cConditionExpression = exp;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void applyReplaceColumnByExpression(ColumnData column,
|
protected void applyReplaceColumnByExpression(ColumnData column, boolean allRows, C_Expression cConditionExpression,
|
||||||
boolean allRows, C_Expression cConditionExpression,
|
|
||||||
String replaceValue) {
|
String replaceValue) {
|
||||||
this.column = column;
|
this.column = column;
|
||||||
this.cConditionExpression = cConditionExpression;
|
this.cConditionExpression = cConditionExpression;
|
||||||
|
|
||||||
ReplaceColumnByExpressionSession replaceColumnByExpressionSession = new ReplaceColumnByExpressionSession(
|
ReplaceColumnByExpressionSession replaceColumnByExpressionSession = new ReplaceColumnByExpressionSession(column,
|
||||||
column, allRows, cConditionExpression, replaceValue);
|
allRows, cConditionExpression, replaceValue);
|
||||||
callApplyReplaceByExpression(replaceColumnByExpressionSession);
|
callApplyReplaceByExpression(replaceColumnByExpressionSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void applyReplaceColumnByExpression(ColumnData column,
|
protected void applyReplaceColumnByExpression(ColumnData column, boolean allRows, C_Expression cConditionExpression,
|
||||||
boolean allRows, C_Expression cConditionExpression,
|
|
||||||
C_Expression cReplaceExpression) {
|
C_Expression cReplaceExpression) {
|
||||||
this.column = column;
|
this.column = column;
|
||||||
this.cConditionExpression = cConditionExpression;
|
this.cConditionExpression = cConditionExpression;
|
||||||
|
|
||||||
ReplaceColumnByExpressionSession replaceColumnByExpressionSession = new ReplaceColumnByExpressionSession(
|
ReplaceColumnByExpressionSession replaceColumnByExpressionSession = new ReplaceColumnByExpressionSession(column,
|
||||||
column, allRows, cConditionExpression, cReplaceExpression);
|
allRows, cConditionExpression, cReplaceExpression);
|
||||||
callApplyReplaceByExpression(replaceColumnByExpressionSession);
|
callApplyReplaceByExpression(replaceColumnByExpressionSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void load() {
|
protected void load() {
|
||||||
TDGWTServiceAsync.INSTANCE.getColumns(trId,
|
TDGWTServiceAsync.INSTANCE.getColumns(trId, new AsyncCallback<ArrayList<ColumnData>>() {
|
||||||
new AsyncCallback<ArrayList<ColumnData>>() {
|
|
||||||
|
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
eventBus.fireEvent(new SessionExpiredEvent(
|
eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER));
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
} else {
|
||||||
} else {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
Log.error(caught.getLocalizedMessage());
|
||||||
Log.error(caught.getLocalizedMessage());
|
UtilsGXT3.alert("Error Locked", caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error Locked",
|
} else {
|
||||||
caught.getLocalizedMessage());
|
Log.error("Error retrieving column: " + caught.getMessage());
|
||||||
} else {
|
UtilsGXT3.alert("Error retrieving column", caught.getMessage());
|
||||||
Log.error("Error retrieving column: "
|
|
||||||
+ caught.getMessage());
|
|
||||||
UtilsGXT3.alert("Error retrieving column",
|
|
||||||
caught.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void onSuccess(ArrayList<ColumnData> result) {
|
public void onSuccess(ArrayList<ColumnData> result) {
|
||||||
Log.debug("Retrived columns: " + result);
|
Log.debug("Retrived columns: " + result);
|
||||||
columns = result;
|
columns = result;
|
||||||
sanitizesColumns();
|
sanitizesColumns();
|
||||||
create();
|
create();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -215,14 +209,11 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
ArrayList<ColumnData> removableColumn = new ArrayList<ColumnData>();
|
ArrayList<ColumnData> removableColumn = new ArrayList<ColumnData>();
|
||||||
for (ColumnData c : columns) {
|
for (ColumnData c : columns) {
|
||||||
if (c.getTypeCode().compareTo(ColumnTypeCode.DIMENSION.toString()) == 0
|
if (c.getTypeCode().compareTo(ColumnTypeCode.DIMENSION.toString()) == 0
|
||||||
|| c.getTypeCode().compareTo(
|
|| c.getTypeCode().compareTo(ColumnTypeCode.TIMEDIMENSION.toString()) == 0) {
|
||||||
ColumnTypeCode.TIMEDIMENSION.toString()) == 0) {
|
|
||||||
removableColumn.add(c);
|
removableColumn.add(c);
|
||||||
} else {
|
} else {
|
||||||
if (c.getColumnId() != null && column != null
|
if (c.getColumnId() != null && column != null && column.getColumnId() != null
|
||||||
&& column.getColumnId() != null
|
&& !column.getColumnId().isEmpty() && c.getColumnId().compareTo(column.getColumnId()) == 0) {
|
||||||
&& !column.getColumnId().isEmpty()
|
|
||||||
&& c.getColumnId().compareTo(column.getColumnId()) == 0) {
|
|
||||||
column = c;
|
column = c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -230,13 +221,11 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
columns.removeAll(removableColumn);
|
columns.removeAll(removableColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void callApplyReplaceByExpression(
|
protected void callApplyReplaceByExpression(ReplaceColumnByExpressionSession replaceColumnByExpressionSession) {
|
||||||
ReplaceColumnByExpressionSession replaceColumnByExpressionSession) {
|
Log.debug("Replace Column By Expression Session " + replaceColumnByExpressionSession);
|
||||||
Log.debug("Replace Column By Expression Session "
|
|
||||||
+ replaceColumnByExpressionSession);
|
|
||||||
|
|
||||||
ExpressionServiceAsync.INSTANCE.startReplaceColumnByExpression(
|
ExpressionServiceAsync.INSTANCE.startReplaceColumnByExpression(replaceColumnByExpressionSession,
|
||||||
replaceColumnByExpressionSession, new AsyncCallback<String>() {
|
new AsyncCallback<String>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(String taskId) {
|
public void onSuccess(String taskId) {
|
||||||
|
@ -248,25 +237,21 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
eventBus.fireEvent(new SessionExpiredEvent(
|
eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER));
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error Locked",
|
UtilsGXT3.alert("Error Locked", caught.getLocalizedMessage());
|
||||||
caught.getLocalizedMessage());
|
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsFinalException) {
|
if (caught instanceof TDGWTIsFinalException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error Final",
|
UtilsGXT3.alert("Error Final", caught.getLocalizedMessage());
|
||||||
caught.getLocalizedMessage());
|
|
||||||
} else {
|
} else {
|
||||||
Log.error("Error submitting replace column by expression: "
|
Log.error("Error submitting replace column by expression: "
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
caught.printStackTrace();
|
caught.printStackTrace();
|
||||||
UtilsGXT3
|
UtilsGXT3.alert("Error submitting replace column by expression",
|
||||||
.alert("Error submitting replace column by expression",
|
caught.getLocalizedMessage());
|
||||||
caught.getLocalizedMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -291,8 +276,7 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
public void operationComplete(OperationResult operationResult) {
|
public void operationComplete(OperationResult operationResult) {
|
||||||
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
|
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
|
||||||
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
||||||
ChangeTableRequestType.COLUMNFILTER, operationResult.getTrId(),
|
ChangeTableRequestType.COLUMNFILTER, operationResult.getTrId(), why);
|
||||||
why);
|
|
||||||
eventBus.fireEvent(changeTableRequestEvent);
|
eventBus.fireEvent(changeTableRequestEvent);
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
@ -305,12 +289,10 @@ public class ReplaceColumnByExpressionDialog extends Window implements
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void operationStopped(OperationResult operationResult,
|
public void operationStopped(OperationResult operationResult, String reason, String details) {
|
||||||
String reason, String details) {
|
|
||||||
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
|
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
|
||||||
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
||||||
ChangeTableRequestType.COLUMNFILTER, operationResult.getTrId(),
|
ChangeTableRequestType.COLUMNFILTER, operationResult.getTrId(), why);
|
||||||
why);
|
|
||||||
eventBus.fireEvent(changeTableRequestEvent);
|
eventBus.fireEvent(changeTableRequestEvent);
|
||||||
close();
|
close();
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,8 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceColumnByExpressionPanel extends FramedPanel {
|
public class ReplaceColumnByExpressionPanel extends FramedPanel {
|
||||||
|
|
|
@ -34,12 +34,11 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceColumnByMultiColumnExpressionDialog extends Window implements
|
public class ReplaceColumnByMultiColumnExpressionDialog extends Window implements MonitorDialogListener {
|
||||||
MonitorDialogListener {
|
|
||||||
private static final String WIDTH = "950px";
|
private static final String WIDTH = "950px";
|
||||||
private static final String HEIGHT = "490px";
|
private static final String HEIGHT = "490px";
|
||||||
// private static final String HEIGHT_REDUCE = "404px";
|
// private static final String HEIGHT_REDUCE = "404px";
|
||||||
|
@ -58,10 +57,12 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
*
|
*
|
||||||
* Columns must have set columnId, label, columnTypeCode and ColumnDataType
|
* Columns must have set columnId, label, columnTypeCode and ColumnDataType
|
||||||
*
|
*
|
||||||
* @param column
|
* @param columnMockUp
|
||||||
* The column selected
|
* Column mockup
|
||||||
* @param columns
|
* @param columnMockUpList
|
||||||
|
* List of column mockup
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public ReplaceColumnByMultiColumnExpressionDialog(ColumnMockUp columnMockUp,
|
public ReplaceColumnByMultiColumnExpressionDialog(ColumnMockUp columnMockUp,
|
||||||
ArrayList<ColumnMockUp> columnMockUpList, EventBus eventBus) {
|
ArrayList<ColumnMockUp> columnMockUpList, EventBus eventBus) {
|
||||||
|
@ -92,15 +93,17 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param trId
|
* @param trId
|
||||||
* @param columnName
|
* Tabular Resource id
|
||||||
|
* @param columnId
|
||||||
|
* Column id
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public ReplaceColumnByMultiColumnExpressionDialog(TRId trId, String columnId,
|
public ReplaceColumnByMultiColumnExpressionDialog(TRId trId, String columnId, EventBus eventBus) {
|
||||||
EventBus eventBus) {
|
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.trId = trId;
|
this.trId = trId;
|
||||||
if (columnId == null) {
|
if (columnId == null) {
|
||||||
column=null;
|
column = null;
|
||||||
} else {
|
} else {
|
||||||
column = new ColumnData();
|
column = new ColumnData();
|
||||||
column.setColumnId(columnId);
|
column.setColumnId(columnId);
|
||||||
|
@ -119,8 +122,7 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setHeadingText("Replace Column By Expression");
|
setHeadingText("Replace Column By Expression");
|
||||||
setClosable(true);
|
setClosable(true);
|
||||||
getHeader().setIcon(
|
getHeader().setIcon(ExpressionResources.INSTANCE.columnReplaceByExpression());
|
||||||
ExpressionResources.INSTANCE.columnReplaceByExpression());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,8 +143,8 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create() {
|
protected void create() {
|
||||||
replaceColumnByMultiColumnExpressionPanel = new ReplaceColumnByMultiColumnExpressionPanel(
|
replaceColumnByMultiColumnExpressionPanel = new ReplaceColumnByMultiColumnExpressionPanel(this, column, columns,
|
||||||
this, column, columns, eventBus, replaceExpressionType);
|
eventBus, replaceExpressionType);
|
||||||
add(replaceColumnByMultiColumnExpressionPanel);
|
add(replaceColumnByMultiColumnExpressionPanel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,59 +157,52 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
this.cConditionExpression = exp;
|
this.cConditionExpression = exp;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void applyReplaceColumnByExpression(ColumnData column,
|
protected void applyReplaceColumnByExpression(ColumnData column, boolean allRows, C_Expression cConditionExpression,
|
||||||
boolean allRows, C_Expression cConditionExpression,
|
|
||||||
String replaceValue) {
|
String replaceValue) {
|
||||||
this.column = column;
|
this.column = column;
|
||||||
this.cConditionExpression = cConditionExpression;
|
this.cConditionExpression = cConditionExpression;
|
||||||
|
|
||||||
ReplaceColumnByExpressionSession replaceColumnByExpressionSession = new ReplaceColumnByExpressionSession(
|
ReplaceColumnByExpressionSession replaceColumnByExpressionSession = new ReplaceColumnByExpressionSession(column,
|
||||||
column, allRows, cConditionExpression, replaceValue);
|
allRows, cConditionExpression, replaceValue);
|
||||||
callApplyReplaceByExpression(replaceColumnByExpressionSession);
|
callApplyReplaceByExpression(replaceColumnByExpressionSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void applyReplaceColumnByExpression(ColumnData column,
|
protected void applyReplaceColumnByExpression(ColumnData column, boolean allRows, C_Expression cConditionExpression,
|
||||||
boolean allRows, C_Expression cConditionExpression,
|
|
||||||
C_Expression cReplaceExpression) {
|
C_Expression cReplaceExpression) {
|
||||||
this.column = column;
|
this.column = column;
|
||||||
this.cConditionExpression = cConditionExpression;
|
this.cConditionExpression = cConditionExpression;
|
||||||
|
|
||||||
ReplaceColumnByExpressionSession replaceColumnByExpressionSession = new ReplaceColumnByExpressionSession(
|
ReplaceColumnByExpressionSession replaceColumnByExpressionSession = new ReplaceColumnByExpressionSession(column,
|
||||||
column, allRows, cConditionExpression, cReplaceExpression);
|
allRows, cConditionExpression, cReplaceExpression);
|
||||||
callApplyReplaceByExpression(replaceColumnByExpressionSession);
|
callApplyReplaceByExpression(replaceColumnByExpressionSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void load() {
|
protected void load() {
|
||||||
TDGWTServiceAsync.INSTANCE.getColumns(trId,
|
TDGWTServiceAsync.INSTANCE.getColumns(trId, new AsyncCallback<ArrayList<ColumnData>>() {
|
||||||
new AsyncCallback<ArrayList<ColumnData>>() {
|
|
||||||
|
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
eventBus.fireEvent(new SessionExpiredEvent(
|
eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER));
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
} else {
|
||||||
} else {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
Log.error(caught.getLocalizedMessage());
|
||||||
Log.error(caught.getLocalizedMessage());
|
UtilsGXT3.alert("Error Locked", caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error Locked",
|
} else {
|
||||||
caught.getLocalizedMessage());
|
Log.error("Error retrieving column: " + caught.getMessage());
|
||||||
} else {
|
UtilsGXT3.alert("Error retrieving column", caught.getMessage());
|
||||||
Log.error("Error retrieving column: "
|
|
||||||
+ caught.getMessage());
|
|
||||||
UtilsGXT3.alert("Error retrieving column",
|
|
||||||
caught.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void onSuccess(ArrayList<ColumnData> result) {
|
public void onSuccess(ArrayList<ColumnData> result) {
|
||||||
Log.debug("Retrived columns: " + result);
|
Log.debug("Retrived columns: " + result);
|
||||||
columns = result;
|
columns = result;
|
||||||
sanitizesColumns();
|
sanitizesColumns();
|
||||||
create();
|
create();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -215,14 +210,11 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
ArrayList<ColumnData> removableColumn = new ArrayList<ColumnData>();
|
ArrayList<ColumnData> removableColumn = new ArrayList<ColumnData>();
|
||||||
for (ColumnData c : columns) {
|
for (ColumnData c : columns) {
|
||||||
if (c.getTypeCode().compareTo(ColumnTypeCode.DIMENSION.toString()) == 0
|
if (c.getTypeCode().compareTo(ColumnTypeCode.DIMENSION.toString()) == 0
|
||||||
|| c.getTypeCode().compareTo(
|
|| c.getTypeCode().compareTo(ColumnTypeCode.TIMEDIMENSION.toString()) == 0) {
|
||||||
ColumnTypeCode.TIMEDIMENSION.toString()) == 0) {
|
|
||||||
removableColumn.add(c);
|
removableColumn.add(c);
|
||||||
} else {
|
} else {
|
||||||
if (c.getColumnId() != null && column != null
|
if (c.getColumnId() != null && column != null && column.getColumnId() != null
|
||||||
&& column.getColumnId() != null
|
&& !column.getColumnId().isEmpty() && c.getColumnId().compareTo(column.getColumnId()) == 0) {
|
||||||
&& !column.getColumnId().isEmpty()
|
|
||||||
&& c.getColumnId().compareTo(column.getColumnId()) == 0) {
|
|
||||||
column = c;
|
column = c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -230,13 +222,11 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
columns.removeAll(removableColumn);
|
columns.removeAll(removableColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void callApplyReplaceByExpression(
|
protected void callApplyReplaceByExpression(ReplaceColumnByExpressionSession replaceColumnByExpressionSession) {
|
||||||
ReplaceColumnByExpressionSession replaceColumnByExpressionSession) {
|
Log.debug("Replace Column By Expression Session " + replaceColumnByExpressionSession);
|
||||||
Log.debug("Replace Column By Expression Session "
|
|
||||||
+ replaceColumnByExpressionSession);
|
|
||||||
|
|
||||||
ExpressionServiceAsync.INSTANCE.startReplaceColumnByExpression(
|
ExpressionServiceAsync.INSTANCE.startReplaceColumnByExpression(replaceColumnByExpressionSession,
|
||||||
replaceColumnByExpressionSession, new AsyncCallback<String>() {
|
new AsyncCallback<String>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(String taskId) {
|
public void onSuccess(String taskId) {
|
||||||
|
@ -248,25 +238,21 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
eventBus.fireEvent(new SessionExpiredEvent(
|
eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER));
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error Locked",
|
UtilsGXT3.alert("Error Locked", caught.getLocalizedMessage());
|
||||||
caught.getLocalizedMessage());
|
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsFinalException) {
|
if (caught instanceof TDGWTIsFinalException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error Final",
|
UtilsGXT3.alert("Error Final", caught.getLocalizedMessage());
|
||||||
caught.getLocalizedMessage());
|
|
||||||
} else {
|
} else {
|
||||||
Log.error("Error submitting replace column by expression: "
|
Log.error("Error submitting replace column by expression: "
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
caught.printStackTrace();
|
caught.printStackTrace();
|
||||||
UtilsGXT3
|
UtilsGXT3.alert("Error submitting replace column by expression",
|
||||||
.alert("Error submitting replace column by expression",
|
caught.getLocalizedMessage());
|
||||||
caught.getLocalizedMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -291,8 +277,7 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
public void operationComplete(OperationResult operationResult) {
|
public void operationComplete(OperationResult operationResult) {
|
||||||
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
|
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
|
||||||
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
||||||
ChangeTableRequestType.COLUMNFILTER, operationResult.getTrId(),
|
ChangeTableRequestType.COLUMNFILTER, operationResult.getTrId(), why);
|
||||||
why);
|
|
||||||
eventBus.fireEvent(changeTableRequestEvent);
|
eventBus.fireEvent(changeTableRequestEvent);
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
@ -305,12 +290,10 @@ public class ReplaceColumnByMultiColumnExpressionDialog extends Window implement
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void operationStopped(OperationResult operationResult,
|
public void operationStopped(OperationResult operationResult, String reason, String details) {
|
||||||
String reason, String details) {
|
|
||||||
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
|
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
|
||||||
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
||||||
ChangeTableRequestType.COLUMNFILTER, operationResult.getTrId(),
|
ChangeTableRequestType.COLUMNFILTER, operationResult.getTrId(), why);
|
||||||
why);
|
|
||||||
eventBus.fireEvent(changeTableRequestEvent);
|
eventBus.fireEvent(changeTableRequestEvent);
|
||||||
close();
|
close();
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,8 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceColumnByMultiColumnExpressionPanel extends FramedPanel {
|
public class ReplaceColumnByMultiColumnExpressionPanel extends FramedPanel {
|
||||||
|
|
|
@ -27,18 +27,17 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceExpressionDialog extends Window implements
|
public class ReplaceExpressionDialog extends Window implements HasExpressionWrapperNotificationListener {
|
||||||
HasExpressionWrapperNotificationListener {
|
|
||||||
private static final String WIDTH = "900px";
|
private static final String WIDTH = "900px";
|
||||||
private static final String HEIGHT = "360px";
|
private static final String HEIGHT = "360px";
|
||||||
private ArrayList<ExpressionWrapperNotificationListener> listeners;
|
private ArrayList<ExpressionWrapperNotificationListener> listeners;
|
||||||
private ColumnData column;
|
private ColumnData column;
|
||||||
private ArrayList<ColumnData> columns;
|
private ArrayList<ColumnData> columns;
|
||||||
//private String columnLocalId;
|
// private String columnLocalId;
|
||||||
private TRId trId;
|
private TRId trId;
|
||||||
private EventBus eventBus;
|
private EventBus eventBus;
|
||||||
|
|
||||||
|
@ -53,14 +52,16 @@ public class ReplaceExpressionDialog extends Window implements
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param column
|
* @param column
|
||||||
|
* Column
|
||||||
* @param trId
|
* @param trId
|
||||||
|
* Tabular Resource id
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public ReplaceExpressionDialog(ColumnData column, TRId trId,
|
public ReplaceExpressionDialog(ColumnData column, TRId trId, EventBus eventBus) {
|
||||||
EventBus eventBus) {
|
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
||||||
listeners=new ArrayList<ExpressionWrapperNotificationListener>();
|
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.trId=trId;
|
this.trId = trId;
|
||||||
this.column = column;
|
this.column = column;
|
||||||
type = ReplaceExpressionType.Replace;
|
type = ReplaceExpressionType.Replace;
|
||||||
initWindow();
|
initWindow();
|
||||||
|
@ -68,23 +69,24 @@ public class ReplaceExpressionDialog extends Window implements
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* ColumnMockUp must have set columnId, label, columnTypeCode and ColumnDataType.
|
* ColumnMockUp must have set columnId, label, columnTypeCode and
|
||||||
* Column is not used to construct the expression. Columns are retrieved
|
* ColumnDataType. Column is not used to construct the expression. Columns
|
||||||
* from TRId.
|
* are retrieved from TRId.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param column
|
* @param columnMockUp
|
||||||
|
* Column mockup
|
||||||
* @param trId
|
* @param trId
|
||||||
|
* Tabular Resource id
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public ReplaceExpressionDialog(ColumnMockUp columnMockUp, TRId trId,
|
public ReplaceExpressionDialog(ColumnMockUp columnMockUp, TRId trId, EventBus eventBus) {
|
||||||
EventBus eventBus) {
|
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
||||||
listeners=new ArrayList<ExpressionWrapperNotificationListener>();
|
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.trId=trId;
|
this.trId = trId;
|
||||||
column = new ColumnData();
|
column = new ColumnData();
|
||||||
column.setId(columnMockUp.getId());
|
column.setId(columnMockUp.getId());
|
||||||
column.setColumnId(columnMockUp.getColumnId());
|
column.setColumnId(columnMockUp.getColumnId());
|
||||||
|
@ -97,20 +99,24 @@ public class ReplaceExpressionDialog extends Window implements
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* ColumnMockUp and ColumnMockUpList must have set columnId, label, columnTypeCode and
|
* ColumnMockUp and ColumnMockUpList must have set columnId, label,
|
||||||
* ColumnDataType. Column is not used to construct the expression.
|
* columnTypeCode and ColumnDataType. Column is not used to construct the
|
||||||
|
* expression.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param column
|
*
|
||||||
* @param columns
|
* @param columnMockUp
|
||||||
|
* Column mockup
|
||||||
|
* @param columnMockUpList
|
||||||
|
* List of column mockup
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public ReplaceExpressionDialog(ColumnMockUp columnMockUp,
|
public ReplaceExpressionDialog(ColumnMockUp columnMockUp, ArrayList<ColumnMockUp> columnMockUpList,
|
||||||
ArrayList<ColumnMockUp> columnMockUpList, EventBus eventBus) {
|
EventBus eventBus) {
|
||||||
listeners=new ArrayList<ExpressionWrapperNotificationListener>();
|
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
column = new ColumnData();
|
column = new ColumnData();
|
||||||
column.setId(columnMockUp.getId());
|
column.setId(columnMockUp.getId());
|
||||||
|
@ -118,22 +124,22 @@ public class ReplaceExpressionDialog extends Window implements
|
||||||
column.setLabel(columnMockUp.getLabel());
|
column.setLabel(columnMockUp.getLabel());
|
||||||
column.setDataTypeName(columnMockUp.getColumnDataType().toString());
|
column.setDataTypeName(columnMockUp.getColumnDataType().toString());
|
||||||
column.setTypeCode(columnMockUp.getColumnType().toString());
|
column.setTypeCode(columnMockUp.getColumnType().toString());
|
||||||
Log.debug("ReplaceExpressionDialog: Column: "+column);
|
Log.debug("ReplaceExpressionDialog: Column: " + column);
|
||||||
|
|
||||||
columns=new ArrayList<ColumnData>();
|
columns = new ArrayList<ColumnData>();
|
||||||
Log.debug("ReplaceExpressionDialog Columns:");
|
Log.debug("ReplaceExpressionDialog Columns:");
|
||||||
for(ColumnMockUp colMock:columnMockUpList){
|
for (ColumnMockUp colMock : columnMockUpList) {
|
||||||
ColumnData col = new ColumnData();
|
ColumnData col = new ColumnData();
|
||||||
col.setId(colMock.getId());
|
col.setId(colMock.getId());
|
||||||
col.setColumnId(colMock.getColumnId());
|
col.setColumnId(colMock.getColumnId());
|
||||||
col.setLabel(colMock.getLabel());
|
col.setLabel(colMock.getLabel());
|
||||||
col.setDataTypeName(colMock.getColumnDataType().toString());
|
col.setDataTypeName(colMock.getColumnDataType().toString());
|
||||||
col.setTypeCode(colMock.getColumnType().toString());
|
col.setTypeCode(colMock.getColumnType().toString());
|
||||||
Log.debug("Columns: "+col);
|
Log.debug("Columns: " + col);
|
||||||
columns.add(col);
|
columns.add(col);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type = ReplaceExpressionType.Template;
|
type = ReplaceExpressionType.Template;
|
||||||
initWindow();
|
initWindow();
|
||||||
sanitizesColumns();
|
sanitizesColumns();
|
||||||
|
@ -149,14 +155,10 @@ public class ReplaceExpressionDialog extends Window implements
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setHeadingText("Replace Expression");
|
setHeadingText("Replace Expression");
|
||||||
setClosable(true);
|
setClosable(true);
|
||||||
getHeader().setIcon(
|
getHeader().setIcon(ExpressionResources.INSTANCE.columnReplaceByExpression());
|
||||||
ExpressionResources.INSTANCE.columnReplaceByExpression());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void initTools() {
|
protected void initTools() {
|
||||||
super.initTools();
|
super.initTools();
|
||||||
|
@ -171,48 +173,40 @@ public class ReplaceExpressionDialog extends Window implements
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create() {
|
protected void create() {
|
||||||
replaceExpressionPanel = new ReplaceExpressionPanel(this, column,
|
replaceExpressionPanel = new ReplaceExpressionPanel(this, column, columns, type, eventBus);
|
||||||
columns, type, eventBus);
|
|
||||||
add(replaceExpressionPanel);
|
add(replaceExpressionPanel);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void applyReplaceColumnByExpression(ExpressionWrapperNotification expressionWrapperNotification)
|
protected void applyReplaceColumnByExpression(ExpressionWrapperNotification expressionWrapperNotification) {
|
||||||
{
|
|
||||||
fire(expressionWrapperNotification);
|
fire(expressionWrapperNotification);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void load() {
|
protected void load() {
|
||||||
TDGWTServiceAsync.INSTANCE.getColumns(trId,
|
TDGWTServiceAsync.INSTANCE.getColumns(trId, new AsyncCallback<ArrayList<ColumnData>>() {
|
||||||
new AsyncCallback<ArrayList<ColumnData>>() {
|
|
||||||
|
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
eventBus.fireEvent(new SessionExpiredEvent(
|
eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER));
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
} else {
|
||||||
} else {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
Log.error(caught.getLocalizedMessage());
|
||||||
Log.error(caught.getLocalizedMessage());
|
UtilsGXT3.alert("Error Locked", caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error Locked",
|
} else {
|
||||||
caught.getLocalizedMessage());
|
Log.error("Error retrieving column: " + caught.getMessage());
|
||||||
} else {
|
UtilsGXT3.alert("Error retrieving column", caught.getMessage());
|
||||||
Log.error("Error retrieving column: "
|
|
||||||
+ caught.getMessage());
|
|
||||||
UtilsGXT3.alert("Error retrieving column",
|
|
||||||
caught.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void onSuccess(ArrayList<ColumnData> result) {
|
public void onSuccess(ArrayList<ColumnData> result) {
|
||||||
Log.debug("Retrived columns: " + result);
|
Log.debug("Retrived columns: " + result);
|
||||||
columns = result;
|
columns = result;
|
||||||
sanitizesColumns();
|
sanitizesColumns();
|
||||||
create();
|
create();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,12 +214,10 @@ public class ReplaceExpressionDialog extends Window implements
|
||||||
ArrayList<ColumnData> removableColumn = new ArrayList<ColumnData>();
|
ArrayList<ColumnData> removableColumn = new ArrayList<ColumnData>();
|
||||||
for (ColumnData c : columns) {
|
for (ColumnData c : columns) {
|
||||||
if (c.getTypeCode().compareTo(ColumnTypeCode.DIMENSION.toString()) == 0
|
if (c.getTypeCode().compareTo(ColumnTypeCode.DIMENSION.toString()) == 0
|
||||||
|| c.getTypeCode().compareTo(
|
|| c.getTypeCode().compareTo(ColumnTypeCode.TIMEDIMENSION.toString()) == 0) {
|
||||||
ColumnTypeCode.TIMEDIMENSION.toString()) == 0) {
|
|
||||||
removableColumn.add(c);
|
removableColumn.add(c);
|
||||||
} else {
|
} else {
|
||||||
if (column.getColumnId() != null
|
if (column.getColumnId() != null && c.getColumnId().compareTo(column.getColumnId()) == 0) {
|
||||||
&& c.getColumnId().compareTo(column.getColumnId()) == 0) {
|
|
||||||
removableColumn.add(c);
|
removableColumn.add(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -240,42 +232,37 @@ public class ReplaceExpressionDialog extends Window implements
|
||||||
@Override
|
@Override
|
||||||
public void addExpressionWrapperNotificationListener(ExpressionWrapperNotificationListener handler) {
|
public void addExpressionWrapperNotificationListener(ExpressionWrapperNotificationListener handler) {
|
||||||
listeners.add(handler);
|
listeners.add(handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removeExpressionWrapperNotificationListener(
|
public void removeExpressionWrapperNotificationListener(ExpressionWrapperNotificationListener handler) {
|
||||||
ExpressionWrapperNotificationListener handler) {
|
|
||||||
listeners.remove(handler);
|
listeners.remove(handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void fire(ExpressionWrapperNotification notification) {
|
protected void fire(ExpressionWrapperNotification notification) {
|
||||||
for(ExpressionWrapperNotificationListener listener:listeners){
|
for (ExpressionWrapperNotificationListener listener : listeners) {
|
||||||
listener.onExpression(notification);
|
listener.onExpression(notification);
|
||||||
}
|
}
|
||||||
hide();
|
hide();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void fireAborted() {
|
protected void fireAborted() {
|
||||||
for(ExpressionWrapperNotificationListener listener:listeners){
|
for (ExpressionWrapperNotificationListener listener : listeners) {
|
||||||
listener.aborted();
|
listener.aborted();
|
||||||
}
|
}
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void fireFailed(Throwable throwable) {
|
protected void fireFailed(Throwable throwable) {
|
||||||
for(ExpressionWrapperNotificationListener listener:listeners){
|
for (ExpressionWrapperNotificationListener listener : listeners) {
|
||||||
listener.failed(throwable);;
|
listener.failed(throwable);
|
||||||
|
;
|
||||||
}
|
}
|
||||||
hide();
|
hide();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,8 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceExpressionPanel extends FramedPanel {
|
public class ReplaceExpressionPanel extends FramedPanel {
|
||||||
|
|
|
@ -32,8 +32,8 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RowsDeleteByExpressionDialog extends Window implements MonitorDialogListener {
|
public class RowsDeleteByExpressionDialog extends Window implements MonitorDialogListener {
|
||||||
|
|
|
@ -32,8 +32,8 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RowsDeleteByMultiColumnExpressionDialog extends Window implements MonitorDialogListener {
|
public class RowsDeleteByMultiColumnExpressionDialog extends Window implements MonitorDialogListener {
|
||||||
|
|
|
@ -22,8 +22,8 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleEditDialog extends Window implements
|
public class RuleEditDialog extends Window implements
|
||||||
|
|
|
@ -25,8 +25,8 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleEditPanel extends FramedPanel {
|
public class RuleEditPanel extends FramedPanel {
|
||||||
|
|
|
@ -22,8 +22,8 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleOnColumnCreateDialog extends Window implements
|
public class RuleOnColumnCreateDialog extends Window implements
|
||||||
|
@ -37,8 +37,7 @@ public class RuleOnColumnCreateDialog extends Window implements
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param columnMockUp
|
* @param eventBus Event Bus
|
||||||
* @param eventBus
|
|
||||||
*/
|
*/
|
||||||
public RuleOnColumnCreateDialog(EventBus eventBus) {
|
public RuleOnColumnCreateDialog(EventBus eventBus) {
|
||||||
listeners = new ArrayList<RuleDialogNotificationListener>();
|
listeners = new ArrayList<RuleDialogNotificationListener>();
|
||||||
|
|
|
@ -23,37 +23,36 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleOnTableCreateDialog extends Window implements
|
public class RuleOnTableCreateDialog extends Window implements HasRuleDialogNotificationListener {
|
||||||
HasRuleDialogNotificationListener {
|
|
||||||
private static final String WIDTH = "940px";
|
private static final String WIDTH = "940px";
|
||||||
private static final String HEIGHT = "388px";
|
private static final String HEIGHT = "388px";
|
||||||
private MultiColumnExpressionPanel multiColumnExpressionPanel;
|
private MultiColumnExpressionPanel multiColumnExpressionPanel;
|
||||||
private EventBus eventBus;
|
private EventBus eventBus;
|
||||||
private ArrayList<RuleDialogNotificationListener> listeners;
|
private ArrayList<RuleDialogNotificationListener> listeners;
|
||||||
private Object initialRuleDescriptionData;
|
private Object initialRuleDescriptionData;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param columnMockUp
|
* @param ruleDescriptionData
|
||||||
|
* Rule description
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public RuleOnTableCreateDialog(RuleDescriptionData ruleDescriptionData, EventBus eventBus) {
|
public RuleOnTableCreateDialog(RuleDescriptionData ruleDescriptionData, EventBus eventBus) {
|
||||||
listeners = new ArrayList<RuleDialogNotificationListener>();
|
listeners = new ArrayList<RuleDialogNotificationListener>();
|
||||||
initWindow();
|
initWindow();
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.initialRuleDescriptionData=ruleDescriptionData;
|
this.initialRuleDescriptionData = ruleDescriptionData;
|
||||||
try {
|
try {
|
||||||
multiColumnExpressionPanel = new MultiColumnExpressionPanel(this, ruleDescriptionData);
|
multiColumnExpressionPanel = new MultiColumnExpressionPanel(this, ruleDescriptionData);
|
||||||
add(multiColumnExpressionPanel);
|
add(multiColumnExpressionPanel);
|
||||||
} catch (MultiColumnExpressionPanelException e) {
|
} catch (MultiColumnExpressionPanelException e) {
|
||||||
UtilsGXT3.alert("Attention", e.getLocalizedMessage());
|
UtilsGXT3.alert("Attention", e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,34 +100,30 @@ public class RuleOnTableCreateDialog extends Window implements
|
||||||
|
|
||||||
public void saveColumnRule(RuleDescriptionData ruleDescriptionData) {
|
public void saveColumnRule(RuleDescriptionData ruleDescriptionData) {
|
||||||
|
|
||||||
ExpressionServiceAsync.INSTANCE.saveRule(ruleDescriptionData,
|
ExpressionServiceAsync.INSTANCE.saveRule(ruleDescriptionData, new AsyncCallback<String>() {
|
||||||
new AsyncCallback<String>() {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(String ruleId) {
|
public void onSuccess(String ruleId) {
|
||||||
Log.debug("Saved Rule: " + ruleId);
|
Log.debug("Saved Rule: " + ruleId);
|
||||||
UtilsGXT3.info("Save Rule", "The rule is saved!");
|
UtilsGXT3.info("Save Rule", "The rule is saved!");
|
||||||
fireNotification(ruleId);
|
fireNotification(ruleId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
eventBus.fireEvent(new SessionExpiredEvent(
|
eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER));
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
} else {
|
||||||
} else {
|
Log.error("Error saving column rule: " + caught.getLocalizedMessage());
|
||||||
Log.error("Error saving column rule: "
|
caught.printStackTrace();
|
||||||
+ caught.getLocalizedMessage());
|
UtilsGXT3.alert("Error saving column rule", caught.getLocalizedMessage());
|
||||||
caught.printStackTrace();
|
|
||||||
UtilsGXT3.alert("Error saving column rule",
|
|
||||||
caught.getLocalizedMessage());
|
|
||||||
|
|
||||||
fireFailed(caught);
|
fireFailed(caught);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,14 +132,12 @@ public class RuleOnTableCreateDialog extends Window implements
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addRuleDialogNotificationListener(
|
public void addRuleDialogNotificationListener(RuleDialogNotificationListener handler) {
|
||||||
RuleDialogNotificationListener handler) {
|
|
||||||
listeners.add(handler);
|
listeners.add(handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removeRuleDialogNotificationListener(
|
public void removeRuleDialogNotificationListener(RuleDialogNotificationListener handler) {
|
||||||
RuleDialogNotificationListener handler) {
|
|
||||||
listeners.remove(handler);
|
listeners.remove(handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,12 +30,11 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class TemplateColumnExpressionDialog extends Window implements
|
public class TemplateColumnExpressionDialog extends Window implements HasExpressionWrapperNotificationListener {
|
||||||
HasExpressionWrapperNotificationListener {
|
|
||||||
private static final String WIDTH = "670px";
|
private static final String WIDTH = "670px";
|
||||||
private static final String HEIGHT = "426px";
|
private static final String HEIGHT = "426px";
|
||||||
private ArrayList<ExpressionWrapperNotificationListener> listeners;
|
private ArrayList<ExpressionWrapperNotificationListener> listeners;
|
||||||
|
@ -48,7 +47,9 @@ public class TemplateColumnExpressionDialog extends Window implements
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param columnMockUp
|
* @param columnMockUp
|
||||||
|
* Column Mockup
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public TemplateColumnExpressionDialog(ColumnMockUp columnMockUp, EventBus eventBus) {
|
public TemplateColumnExpressionDialog(ColumnMockUp columnMockUp, EventBus eventBus) {
|
||||||
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
||||||
|
@ -66,8 +67,11 @@ public class TemplateColumnExpressionDialog extends Window implements
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param trId
|
* @param trId
|
||||||
|
* Tabular Resource id
|
||||||
* @param columnId
|
* @param columnId
|
||||||
|
* Column id
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public TemplateColumnExpressionDialog(TRId trId, String columnId, EventBus eventBus) {
|
public TemplateColumnExpressionDialog(TRId trId, String columnId, EventBus eventBus) {
|
||||||
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
||||||
|
@ -113,27 +117,18 @@ public class TemplateColumnExpressionDialog extends Window implements
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create() {
|
protected void create() {
|
||||||
if (column.getTypeCode()
|
if (column.getTypeCode().compareTo(ColumnTypeCode.ANNOTATION.toString()) == 0
|
||||||
.compareTo(ColumnTypeCode.ANNOTATION.toString()) == 0
|
|| column.getTypeCode().compareTo(ColumnTypeCode.ATTRIBUTE.toString()) == 0
|
||||||
|| column.getTypeCode().compareTo(
|
|| column.getTypeCode().compareTo(ColumnTypeCode.CODE.toString()) == 0
|
||||||
ColumnTypeCode.ATTRIBUTE.toString()) == 0
|
|| column.getTypeCode().compareTo(ColumnTypeCode.CODEDESCRIPTION.toString()) == 0
|
||||||
|| column.getTypeCode().compareTo(
|
|| column.getTypeCode().compareTo(ColumnTypeCode.CODENAME.toString()) == 0
|
||||||
ColumnTypeCode.CODE.toString()) == 0
|
|| column.getTypeCode().compareTo(ColumnTypeCode.MEASURE.toString()) == 0) {
|
||||||
|| column.getTypeCode().compareTo(
|
columnExpressionPanel = new ColumnExpressionPanel(this, column, eventBus);
|
||||||
ColumnTypeCode.CODEDESCRIPTION.toString()) == 0
|
|
||||||
|| column.getTypeCode().compareTo(
|
|
||||||
ColumnTypeCode.CODENAME.toString()) == 0
|
|
||||||
|| column.getTypeCode().compareTo(
|
|
||||||
ColumnTypeCode.MEASURE.toString()) == 0) {
|
|
||||||
columnExpressionPanel = new ColumnExpressionPanel(this, column,
|
|
||||||
eventBus);
|
|
||||||
add(columnExpressionPanel);
|
add(columnExpressionPanel);
|
||||||
} else {
|
} else {
|
||||||
HTML errorMessage = new HTML(
|
HTML errorMessage = new HTML("This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
add(errorMessage);
|
add(errorMessage);
|
||||||
AlertMessageBox d = new AlertMessageBox("Error",
|
AlertMessageBox d = new AlertMessageBox("Error", "This type of column is not supported for now!");
|
||||||
"This type of column is not supported for now!");
|
|
||||||
d.addHideHandler(new HideHandler() {
|
d.addHideHandler(new HideHandler() {
|
||||||
public void onHide(HideEvent event) {
|
public void onHide(HideEvent event) {
|
||||||
hide();
|
hide();
|
||||||
|
@ -143,60 +138,51 @@ public class TemplateColumnExpressionDialog extends Window implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onExpression(ExpressionWrapperNotification expressionWrapperNotification){
|
protected void onExpression(ExpressionWrapperNotification expressionWrapperNotification) {
|
||||||
fireNotification(expressionWrapperNotification);
|
fireNotification(expressionWrapperNotification);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void load() {
|
protected void load() {
|
||||||
TDGWTServiceAsync.INSTANCE.getColumn(columnId, trId,
|
TDGWTServiceAsync.INSTANCE.getColumn(columnId, trId, new AsyncCallback<ColumnData>() {
|
||||||
new AsyncCallback<ColumnData>() {
|
|
||||||
|
|
||||||
public void onFailure(Throwable caught) {
|
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
|
||||||
eventBus.fireEvent(new SessionExpiredEvent(
|
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
|
||||||
} else {
|
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
|
||||||
Log.error(caught.getLocalizedMessage());
|
|
||||||
UtilsGXT3.alert("Error Locked",
|
|
||||||
caught.getLocalizedMessage());
|
|
||||||
} else {
|
|
||||||
Log.error("Error retrieving column: "
|
|
||||||
+ caught.getMessage());
|
|
||||||
UtilsGXT3.alert(
|
|
||||||
"Error",
|
|
||||||
"Error retrieving column: "
|
|
||||||
+ caught.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fireFailed(caught);
|
|
||||||
|
|
||||||
|
public void onFailure(Throwable caught) {
|
||||||
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
|
eventBus.fireEvent(new SessionExpiredEvent(SessionExpiredType.EXPIREDONSERVER));
|
||||||
|
} else {
|
||||||
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
|
Log.error(caught.getLocalizedMessage());
|
||||||
|
UtilsGXT3.alert("Error Locked", caught.getLocalizedMessage());
|
||||||
|
} else {
|
||||||
|
Log.error("Error retrieving column: " + caught.getMessage());
|
||||||
|
UtilsGXT3.alert("Error", "Error retrieving column: " + caught.getMessage());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
fireFailed(caught);
|
||||||
|
|
||||||
public void onSuccess(ColumnData result) {
|
}
|
||||||
Log.debug("Retrived column: " + result);
|
|
||||||
column = result;
|
|
||||||
create();
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
public void onSuccess(ColumnData result) {
|
||||||
|
Log.debug("Retrived column: " + result);
|
||||||
|
column = result;
|
||||||
|
create();
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addExpressionWrapperNotificationListener(
|
public void addExpressionWrapperNotificationListener(ExpressionWrapperNotificationListener handler) {
|
||||||
ExpressionWrapperNotificationListener handler) {
|
|
||||||
listeners.add(handler);
|
listeners.add(handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removeExpressionWrapperNotificationListener(
|
public void removeExpressionWrapperNotificationListener(ExpressionWrapperNotificationListener handler) {
|
||||||
ExpressionWrapperNotificationListener handler) {
|
|
||||||
listeners.remove(handler);
|
listeners.remove(handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fireNotification(ExpressionWrapperNotification expressionWrapperNotification) {
|
private void fireNotification(ExpressionWrapperNotification expressionWrapperNotification) {
|
||||||
if (listeners != null) {
|
if (listeners != null) {
|
||||||
for (ExpressionWrapperNotificationListener listener : listeners) {
|
for (ExpressionWrapperNotificationListener listener : listeners) {
|
||||||
|
@ -224,6 +210,5 @@ public class TemplateColumnExpressionDialog extends Window implements
|
||||||
hide();
|
hide();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,11 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class TemplateMultiColumnExpressionDialog extends Window implements
|
public class TemplateMultiColumnExpressionDialog extends Window implements HasExpressionWrapperNotificationListener {
|
||||||
HasExpressionWrapperNotificationListener {
|
|
||||||
private static final String WIDTH = "940px";
|
private static final String WIDTH = "940px";
|
||||||
private static final String HEIGHT = "388px";
|
private static final String HEIGHT = "388px";
|
||||||
private ArrayList<ExpressionWrapperNotificationListener> listeners;
|
private ArrayList<ExpressionWrapperNotificationListener> listeners;
|
||||||
|
@ -35,10 +34,11 @@ public class TemplateMultiColumnExpressionDialog extends Window implements
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param columnsMockUp
|
* @param columnsMockUp
|
||||||
|
* Columns mockup
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
|
* Event bus
|
||||||
*/
|
*/
|
||||||
public TemplateMultiColumnExpressionDialog(
|
public TemplateMultiColumnExpressionDialog(ArrayList<ColumnMockUp> columnsMockUp, EventBus eventBus) {
|
||||||
ArrayList<ColumnMockUp> columnsMockUp, EventBus eventBus) {
|
|
||||||
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
listeners = new ArrayList<ExpressionWrapperNotificationListener>();
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
columns = new ArrayList<ColumnData>();
|
columns = new ArrayList<ColumnData>();
|
||||||
|
@ -58,18 +58,18 @@ public class TemplateMultiColumnExpressionDialog extends Window implements
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void sanitizesColumns() {
|
protected void sanitizesColumns() {
|
||||||
ArrayList<ColumnData> removableColumn=new ArrayList<ColumnData>();
|
ArrayList<ColumnData> removableColumn = new ArrayList<ColumnData>();
|
||||||
for(ColumnData c:columns){
|
for (ColumnData c : columns) {
|
||||||
if(c.getTypeCode().compareTo(ColumnTypeCode.DIMENSION.toString())==0||
|
if (c.getTypeCode().compareTo(ColumnTypeCode.DIMENSION.toString()) == 0
|
||||||
c.getTypeCode().compareTo(ColumnTypeCode.TIMEDIMENSION.toString())==0 ){
|
|| c.getTypeCode().compareTo(ColumnTypeCode.TIMEDIMENSION.toString()) == 0) {
|
||||||
removableColumn.add(c);
|
removableColumn.add(c);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
columns.removeAll(removableColumn);
|
columns.removeAll(removableColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void initWindow() {
|
protected void initWindow() {
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
|
@ -104,42 +104,37 @@ public class TemplateMultiColumnExpressionDialog extends Window implements
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create() {
|
protected void create() {
|
||||||
if(columns.size()>0){
|
if (columns.size() > 0) {
|
||||||
multiColumnExpressionPanel = new MultiColumnExpressionPanel(this,columns,
|
multiColumnExpressionPanel = new MultiColumnExpressionPanel(this, columns, eventBus);
|
||||||
eventBus);
|
|
||||||
add(multiColumnExpressionPanel);
|
add(multiColumnExpressionPanel);
|
||||||
} else {
|
} else {
|
||||||
HTML errorMessage = new HTML(
|
HTML errorMessage = new HTML(
|
||||||
"Attention no columns with a type supported(Dimension and TimeDimension is not supported)!");
|
"Attention no columns with a type supported(Dimension and TimeDimension is not supported)!");
|
||||||
add(errorMessage);
|
add(errorMessage);
|
||||||
close();
|
close();
|
||||||
UtilsGXT3.alert("Attention","Attention no columns with a type supported(Dimension and TimeDimension is not supported)!");
|
UtilsGXT3.alert("Attention",
|
||||||
|
"Attention no columns with a type supported(Dimension and TimeDimension is not supported)!");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onExpression(
|
protected void onExpression(ExpressionWrapperNotification expressionWrapperNotification) {
|
||||||
ExpressionWrapperNotification expressionWrapperNotification) {
|
|
||||||
fireNotification(expressionWrapperNotification);
|
fireNotification(expressionWrapperNotification);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addExpressionWrapperNotificationListener(
|
public void addExpressionWrapperNotificationListener(ExpressionWrapperNotificationListener handler) {
|
||||||
ExpressionWrapperNotificationListener handler) {
|
|
||||||
listeners.add(handler);
|
listeners.add(handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removeExpressionWrapperNotificationListener(
|
public void removeExpressionWrapperNotificationListener(ExpressionWrapperNotificationListener handler) {
|
||||||
ExpressionWrapperNotificationListener handler) {
|
|
||||||
listeners.remove(handler);
|
listeners.remove(handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fireNotification(
|
private void fireNotification(ExpressionWrapperNotification expressionWrapperNotification) {
|
||||||
ExpressionWrapperNotification expressionWrapperNotification) {
|
|
||||||
if (listeners != null) {
|
if (listeners != null) {
|
||||||
for (ExpressionWrapperNotificationListener listener : listeners) {
|
for (ExpressionWrapperNotificationListener listener : listeners) {
|
||||||
listener.onExpression(expressionWrapperNotification);
|
listener.onExpression(expressionWrapperNotification);
|
||||||
|
|
|
@ -13,8 +13,8 @@ import com.sencha.gxt.core.client.dom.XElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class DefaultAppearance implements IconButtonAppearance {
|
public class DefaultAppearance implements IconButtonAppearance {
|
||||||
|
|
|
@ -16,8 +16,8 @@ import com.sencha.gxt.widget.core.client.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class IconButton extends Component implements HasClickHandlers {
|
public class IconButton extends Component implements HasClickHandlers {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import com.sencha.gxt.core.client.dom.XElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface IconButtonAppearance {
|
public interface IconButtonAppearance {
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.client.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MultiColumnExpressionPanelException extends Exception {
|
public class MultiColumnExpressionPanelException extends Exception {
|
||||||
|
|
|
@ -53,8 +53,8 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ConditionOnMultiColumnWidget extends SimpleContainer {
|
public class ConditionOnMultiColumnWidget extends SimpleContainer {
|
||||||
|
|
|
@ -48,8 +48,8 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ConditionWidget extends SimpleContainer {
|
public class ConditionWidget extends SimpleContainer {
|
||||||
|
|
|
@ -45,8 +45,8 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceWidget extends SimpleContainer {
|
public class ReplaceWidget extends SimpleContainer {
|
||||||
|
|
|
@ -12,6 +12,11 @@ import com.sencha.gxt.core.client.XTemplates;
|
||||||
import com.sencha.gxt.core.client.dom.XDOM;
|
import com.sencha.gxt.core.client.dom.XDOM;
|
||||||
import com.sencha.gxt.core.client.dom.XElement;
|
import com.sencha.gxt.core.client.dom.XElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Giancarlo Panichi
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class HelpReplaceColumnByExpression {
|
public class HelpReplaceColumnByExpression {
|
||||||
public interface HelpReplaceByExpTemplate extends XTemplates {
|
public interface HelpReplaceByExpTemplate extends XTemplates {
|
||||||
@XTemplate(source = "HelpReplaceByExp.html")
|
@XTemplate(source = "HelpReplaceByExp.html")
|
||||||
|
|
|
@ -9,8 +9,8 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class HelpReplaceColumnByExpressionDialog extends Window {
|
public class HelpReplaceColumnByExpressionDialog extends Window {
|
||||||
|
|
|
@ -23,8 +23,8 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class HelpReplaceColumnByExpressionPanel extends FramedPanel {
|
public class HelpReplaceColumnByExpressionPanel extends FramedPanel {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum ArgType {
|
public enum ArgType {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ArgTypePropertiesCombo extends
|
public interface ArgTypePropertiesCombo extends
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.client.multicolumn;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class DepthOfExpressionElement {
|
public class DepthOfExpressionElement {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface DepthOfExpressionElementPropertiesCombo extends
|
public interface DepthOfExpressionElementPropertiesCombo extends
|
||||||
|
|
|
@ -5,8 +5,8 @@ import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class DepthOfExpressionStore implements Serializable {
|
public class DepthOfExpressionStore implements Serializable {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum DepthOfExpressionType {
|
public enum DepthOfExpressionType {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class LogicalDepth implements Serializable {
|
public class LogicalDepth implements Serializable {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.expression.Expression
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExpressionWrapperNotification {
|
public class ExpressionWrapperNotification {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package org.gcube.portlets.user.td.expressionwidget.client.notification;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleDialogNotification {
|
public class RuleDialogNotification {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package org.gcube.portlets.user.td.expressionwidget.client.notification;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleEditDialogNotification {
|
public class RuleEditDialogNotification {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import org.gcube.portlets.user.td.expressionwidget.shared.model.C_OperatorType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class Operation implements Serializable {
|
public class Operation implements Serializable {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface OperationProperties extends PropertyAccess<Operation> {
|
public interface OperationProperties extends PropertyAccess<Operation> {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class OperationsStore {
|
public class OperationsStore {
|
||||||
|
|
|
@ -9,8 +9,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ColumnDataProperties extends
|
public interface ColumnDataProperties extends
|
||||||
|
|
|
@ -9,8 +9,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ColumnDataPropertiesCombo extends
|
public interface ColumnDataPropertiesCombo extends
|
||||||
|
|
|
@ -11,8 +11,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ColumnDataTypeProperties extends
|
public interface ColumnDataTypeProperties extends
|
||||||
|
|
|
@ -12,8 +12,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ColumnTypeCodeProperties extends
|
public interface ColumnTypeCodeProperties extends
|
||||||
|
|
|
@ -10,8 +10,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface LocaleTypeProperties extends
|
public interface LocaleTypeProperties extends
|
||||||
|
|
|
@ -6,8 +6,8 @@ import org.gcube.portlets.user.td.expressionwidget.shared.replace.ReplaceType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceElement implements Serializable {
|
public class ReplaceElement implements Serializable {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ReplaceElementProperties extends PropertyAccess<ReplaceElement> {
|
public interface ReplaceElementProperties extends PropertyAccess<ReplaceElement> {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import org.gcube.portlets.user.td.expressionwidget.shared.replace.ReplaceType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceElementStore {
|
public class ReplaceElementStore {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface RuleColumnPlaceHolderDescriptorProperties extends
|
public interface RuleColumnPlaceHolderDescriptorProperties extends
|
||||||
|
|
|
@ -11,8 +11,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface TabResourceProperties extends PropertyAccess<TabResource> {
|
public interface TabResourceProperties extends PropertyAccess<TabResource> {
|
||||||
|
|
|
@ -9,8 +9,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface TabResourcePropertiesCombo extends
|
public interface TabResourcePropertiesCombo extends
|
||||||
|
|
|
@ -6,8 +6,8 @@ import com.google.gwt.resources.client.ImageResource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ExpressionResources extends ClientBundle {
|
public interface ExpressionResources extends ClientBundle {
|
||||||
|
|
|
@ -26,68 +26,45 @@ import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
||||||
*
|
*
|
||||||
* Implements the basic interfaces generate and submit Expression on service.
|
* Implements the basic interfaces generate and submit Expression on service.
|
||||||
*
|
*
|
||||||
* <p>
|
* Allows Generate Expression
|
||||||
* Allows:
|
|
||||||
* <ul>
|
|
||||||
* <li>Generate Expression</li>
|
|
||||||
* <ul>
|
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
*
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
* @author Giancarlo Panichi
|
||||||
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@RemoteServiceRelativePath("ExpressionService")
|
@RemoteServiceRelativePath("ExpressionService")
|
||||||
public interface ExpressionService extends RemoteService {
|
public interface ExpressionService extends RemoteService {
|
||||||
|
|
||||||
/**
|
public String startFilterColumn(FilterColumnSession filterColumnSession) throws TDGWTServiceException;
|
||||||
* Submit Column Filter Operation
|
|
||||||
*
|
|
||||||
* @param columnFilterSession
|
|
||||||
* @throws ExpressionServiceException
|
|
||||||
*/
|
|
||||||
public String startFilterColumn(FilterColumnSession filterColumnSession)
|
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
|
||||||
public String startReplaceColumnByExpression(
|
public String startReplaceColumnByExpression(
|
||||||
ReplaceColumnByExpressionSession replaceColumnByExpressionColumnSession)
|
ReplaceColumnByExpressionSession replaceColumnByExpressionColumnSession) throws TDGWTServiceException;
|
||||||
|
|
||||||
|
public String startAddColumn(AddColumnSession addColumnSession) throws TDGWTServiceException;
|
||||||
|
|
||||||
|
public ArrayList<RuleDescriptionData> getRules() throws TDGWTServiceException;
|
||||||
|
|
||||||
|
public ArrayList<RuleDescriptionData> getRules(RuleScopeType scope) throws TDGWTServiceException;
|
||||||
|
|
||||||
|
public ArrayList<RuleDescriptionData> getApplicableBaseColumnRules(ColumnData columnData)
|
||||||
throws TDGWTServiceException;
|
throws TDGWTServiceException;
|
||||||
|
|
||||||
public String startAddColumn(AddColumnSession addColumnSession)
|
public String saveRule(RuleDescriptionData ruleDescriptionData) throws TDGWTServiceException;
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
|
||||||
public ArrayList<RuleDescriptionData> getRules()
|
public void updateColumnRule(RuleDescriptionData ruleDescriptionData) throws TDGWTServiceException;
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
|
||||||
public ArrayList<RuleDescriptionData> getRules(RuleScopeType scope)
|
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
|
||||||
public ArrayList<RuleDescriptionData> getApplicableBaseColumnRules(
|
|
||||||
ColumnData columnData) throws TDGWTServiceException;
|
|
||||||
|
|
||||||
public String saveRule(RuleDescriptionData ruleDescriptionData)
|
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
|
||||||
public void updateColumnRule(RuleDescriptionData ruleDescriptionData)
|
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
|
||||||
public void removeRulesById(ArrayList<RuleDescriptionData> rules) throws TDGWTServiceException;
|
public void removeRulesById(ArrayList<RuleDescriptionData> rules) throws TDGWTServiceException;
|
||||||
|
|
||||||
public String startApplyAndDetachColumnRules(ApplyAndDetachColumnRulesSession applyColumnRulesSession)
|
public String startApplyAndDetachColumnRules(ApplyAndDetachColumnRulesSession applyColumnRulesSession)
|
||||||
throws TDGWTServiceException;
|
throws TDGWTServiceException;
|
||||||
|
|
||||||
public void setDetachColumnRules(DetachColumnRulesSession detachColumnRulesSession)
|
public void setDetachColumnRules(DetachColumnRulesSession detachColumnRulesSession) throws TDGWTServiceException;
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
public void setDetachTableRules(DetachTableRulesSession detachTableRulesSession) throws TDGWTServiceException;
|
||||||
public void setDetachTableRules(DetachTableRulesSession detachTableRulesSession)
|
|
||||||
throws TDGWTServiceException;
|
public String startApplyTableRule(ApplyTableRuleSession applyTableRuleSession) throws TDGWTServiceException;
|
||||||
|
|
||||||
|
public AppliedRulesResponseData getActiveRulesByTabularResourceId(TRId trId) throws TDGWTServiceException;
|
||||||
public String startApplyTableRule(ApplyTableRuleSession applyTableRuleSession)
|
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
|
||||||
|
|
||||||
public AppliedRulesResponseData getActiveRulesByTabularResourceId(TRId trId)
|
|
||||||
throws TDGWTServiceException;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,8 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ColumnDataTypeElement {
|
public class ColumnDataTypeElement {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ColumnDataTypeStore implements Serializable {
|
public class ColumnDataTypeStore implements Serializable {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnTypeC
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ColumnTypeCodeElement {
|
public class ColumnTypeCodeElement {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import com.allen_sauer.gwt.log.client.Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ColumnTypeCodeStore implements Serializable {
|
public class ColumnTypeCodeStore implements Serializable {
|
||||||
|
@ -127,10 +127,7 @@ public class ColumnTypeCodeStore implements Serializable {
|
||||||
return store;
|
return store;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static ArrayList<ColumnTypeCodeElement> getColumnTypeCodesForGeneric() {
|
public static ArrayList<ColumnTypeCodeElement> getColumnTypeCodesForGeneric() {
|
||||||
store = new ArrayList<ColumnTypeCodeElement>();
|
store = new ArrayList<ColumnTypeCodeElement>();
|
||||||
store.add(annotation);
|
store.add(annotation);
|
||||||
|
|
|
@ -4,8 +4,8 @@ import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class LocaleTypeElement implements Serializable {
|
public class LocaleTypeElement implements Serializable {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class Threshold implements Serializable {
|
public class Threshold implements Serializable {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import com.sencha.gxt.data.shared.PropertyAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ThresholdProperties extends PropertyAccess<Threshold> {
|
public interface ThresholdProperties extends PropertyAccess<Threshold> {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ThresholdStore {
|
public class ThresholdStore {
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.client.type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum ReplaceExpressionType {
|
public enum ReplaceExpressionType {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import com.sencha.gxt.widget.core.client.box.MessageBox;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class InfoMessageBox extends MessageBox {
|
public class InfoMessageBox extends MessageBox {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class UtilsGXT3 {
|
public class UtilsGXT3 {
|
||||||
|
|
|
@ -25,8 +25,8 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CExpressionMapServlet extends HttpServlet {
|
public class CExpressionMapServlet extends HttpServlet {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -49,8 +49,8 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExpressionServiceImpl extends TDGWTServiceImpl implements
|
public class ExpressionServiceImpl extends TDGWTServiceImpl implements
|
||||||
|
|
|
@ -15,8 +15,8 @@ import org.gcube.portlets.user.td.gwtservice.shared.tr.column.ReplaceColumnByExp
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExpressionSession {
|
public class ExpressionSession {
|
||||||
|
|
|
@ -16,8 +16,8 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class AppliedRulesResponseMap {
|
public class AppliedRulesResponseMap {
|
||||||
|
|
|
@ -20,8 +20,8 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleDescriptionMap {
|
public class RuleDescriptionMap {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import org.gcube.portlets.user.td.gwtservice.shared.rule.RuleScopeType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleScopeMap {
|
public class RuleScopeMap {
|
||||||
|
|
|
@ -25,8 +25,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.DimensionRe
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleTypeMap {
|
public class RuleTypeMap {
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.shared;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author Giancarlo Panichi
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class Constants {
|
public class Constants {
|
||||||
|
|
|
@ -44,8 +44,8 @@ import com.allen_sauer.gwt.log.client.Log;
|
||||||
/**
|
/**
|
||||||
* ConditionTypeMap creates a C_Expression usable client-side
|
* ConditionTypeMap creates a C_Expression usable client-side
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ConditionOnMultiColumnTypeMap {
|
public class ConditionOnMultiColumnTypeMap {
|
||||||
|
|
|
@ -42,8 +42,8 @@ import com.allen_sauer.gwt.log.client.Log;
|
||||||
/**
|
/**
|
||||||
* ConditionTypeMap creates a C_Expression usable client-side
|
* ConditionTypeMap creates a C_Expression usable client-side
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ConditionTypeMap {
|
public class ConditionTypeMap {
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.shared.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ConditionTypeMapException extends Exception {
|
public class ConditionTypeMapException extends Exception {
|
||||||
|
@ -18,17 +18,23 @@ public class ConditionTypeMapException extends Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @param message
|
* @param message
|
||||||
|
* Message
|
||||||
*/
|
*/
|
||||||
public ConditionTypeMapException(String message) {
|
public ConditionTypeMapException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
public ConditionTypeMapException(String message,Throwable t) {
|
*
|
||||||
super(message,t);
|
* @param message
|
||||||
|
* Message
|
||||||
|
* @param throwable
|
||||||
|
* Error
|
||||||
|
*/
|
||||||
|
public ConditionTypeMapException(String message, Throwable throwable) {
|
||||||
|
super(message, throwable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.shared.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExpressionParserException extends Exception {
|
public class ExpressionParserException extends Exception {
|
||||||
|
@ -15,14 +15,23 @@ public class ExpressionParserException extends Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @param message
|
* @param message
|
||||||
|
* Message
|
||||||
*/
|
*/
|
||||||
public ExpressionParserException(String message) {
|
public ExpressionParserException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ExpressionParserException(String message, Throwable t) {
|
/**
|
||||||
super(message, t);
|
*
|
||||||
|
* @param message
|
||||||
|
* Message
|
||||||
|
* @param throwable
|
||||||
|
* Error
|
||||||
|
*/
|
||||||
|
public ExpressionParserException(String message, Throwable throwable) {
|
||||||
|
super(message, throwable);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.shared.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExpressionServiceException extends Exception {
|
public class ExpressionServiceException extends Exception {
|
||||||
|
@ -19,16 +19,21 @@ public class ExpressionServiceException extends Exception {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param message
|
* @param message
|
||||||
|
* Message
|
||||||
*/
|
*/
|
||||||
public ExpressionServiceException(String message) {
|
public ExpressionServiceException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
public ExpressionServiceException(String message,Throwable t) {
|
*
|
||||||
super(message,t);
|
* @param message
|
||||||
|
* Message
|
||||||
|
* @param throwable
|
||||||
|
* Error
|
||||||
|
*/
|
||||||
|
public ExpressionServiceException(String message, Throwable throwable) {
|
||||||
|
super(message, throwable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.shared.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ReplaceTypeMapException extends Exception {
|
public class ReplaceTypeMapException extends Exception {
|
||||||
|
@ -18,17 +18,23 @@ public class ReplaceTypeMapException extends Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @param message
|
* @param message
|
||||||
|
* Message
|
||||||
*/
|
*/
|
||||||
public ReplaceTypeMapException(String message) {
|
public ReplaceTypeMapException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
public ReplaceTypeMapException(String message,Throwable t) {
|
*
|
||||||
super(message,t);
|
* @param message
|
||||||
|
* Message
|
||||||
|
* @param throwable
|
||||||
|
* Error
|
||||||
|
*/
|
||||||
|
public ReplaceTypeMapException(String message, Throwable throwable) {
|
||||||
|
super(message, throwable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.shared.model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author Giancarlo Panichi
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum C_OperatorType {
|
public enum C_OperatorType {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Avg extends C_AggregationExpression {
|
public class C_Avg extends C_AggregationExpression {
|
||||||
|
@ -18,10 +18,7 @@ public class C_Avg extends C_AggregationExpression {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param argument
|
|
||||||
*/
|
|
||||||
public C_Avg(C_Expression argument) {
|
public C_Avg(C_Expression argument) {
|
||||||
this.argument = argument;
|
this.argument = argument;
|
||||||
if (argument != null) {
|
if (argument != null) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Count extends C_AggregationExpression {
|
public class C_Count extends C_AggregationExpression {
|
||||||
|
@ -18,10 +18,7 @@ public class C_Count extends C_AggregationExpression {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param argument
|
|
||||||
*/
|
|
||||||
public C_Count(C_Expression argument) {
|
public C_Count(C_Expression argument) {
|
||||||
this.argument = argument;
|
this.argument = argument;
|
||||||
if (argument != null) {
|
if (argument != null) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Max extends C_AggregationExpression {
|
public class C_Max extends C_AggregationExpression {
|
||||||
|
@ -18,10 +18,7 @@ public class C_Max extends C_AggregationExpression {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param argument
|
|
||||||
*/
|
|
||||||
public C_Max(C_Expression argument) {
|
public C_Max(C_Expression argument) {
|
||||||
this.argument = argument;
|
this.argument = argument;
|
||||||
if (argument != null) {
|
if (argument != null) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Min extends C_AggregationExpression {
|
public class C_Min extends C_AggregationExpression {
|
||||||
|
@ -18,10 +18,7 @@ public class C_Min extends C_AggregationExpression {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param argument
|
|
||||||
*/
|
|
||||||
public C_Min(C_Expression argument) {
|
public C_Min(C_Expression argument) {
|
||||||
this.argument = argument;
|
this.argument = argument;
|
||||||
if (argument != null) {
|
if (argument != null) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_ST_Extent extends C_AggregationExpression {
|
public class C_ST_Extent extends C_AggregationExpression {
|
||||||
|
@ -17,15 +17,11 @@ public class C_ST_Extent extends C_AggregationExpression {
|
||||||
public C_ST_Extent() {
|
public C_ST_Extent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param argument
|
|
||||||
*/
|
|
||||||
public C_ST_Extent(C_Expression argument) {
|
public C_ST_Extent(C_Expression argument) {
|
||||||
this.argument = argument;
|
this.argument = argument;
|
||||||
if (argument != null) {
|
if (argument != null) {
|
||||||
this.readableExpression = "ST_Extent("
|
this.readableExpression = "ST_Extent(" + argument.getReadableExpression() + ")";
|
||||||
+ argument.getReadableExpression() + ")";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Sum extends C_AggregationExpression {
|
public class C_Sum extends C_AggregationExpression {
|
||||||
|
@ -18,10 +18,7 @@ public class C_Sum extends C_AggregationExpression {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param argument
|
|
||||||
*/
|
|
||||||
public C_Sum(C_Expression argument) {
|
public C_Sum(C_Expression argument) {
|
||||||
this.argument = argument;
|
this.argument = argument;
|
||||||
if (argument != null) {
|
if (argument != null) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Addition extends C_ArithmeticExpression {
|
public class C_Addition extends C_ArithmeticExpression {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_ArithmeticExpression extends C_Expression {
|
public class C_ArithmeticExpression extends C_Expression {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Division extends C_ArithmeticExpression {
|
public class C_Division extends C_ArithmeticExpression {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Exponentiation extends C_ArithmeticExpression {
|
public class C_Exponentiation extends C_ArithmeticExpression {
|
||||||
|
@ -18,10 +18,7 @@ public class C_Exponentiation extends C_ArithmeticExpression {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param argument
|
|
||||||
*/
|
|
||||||
public C_Exponentiation(C_Expression leftArgument,
|
public C_Exponentiation(C_Expression leftArgument,
|
||||||
C_Expression rightArgument) {
|
C_Expression rightArgument) {
|
||||||
this.leftArgument = leftArgument;
|
this.leftArgument = leftArgument;
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Modulus extends C_ArithmeticExpression {
|
public class C_Modulus extends C_ArithmeticExpression {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Multiplication extends C_ArithmeticExpression {
|
public class C_Multiplication extends C_ArithmeticExpression {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo email: <a
|
* @author Giancarlo Panichi
|
||||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class C_Subtraction extends C_ArithmeticExpression {
|
public class C_Subtraction extends C_ArithmeticExpression {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue