Minor Updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@113856 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f6022594e7
commit
859af7b4e8
|
@ -520,7 +520,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
change = new TextButton("Change");
|
change = new TextButton("Change");
|
||||||
change.setIcon(ResourceBundle.INSTANCE.columnType());
|
change.setIcon(ResourceBundle.INSTANCE.columnType());
|
||||||
change.setIconAlign(IconAlign.RIGHT);
|
change.setIconAlign(IconAlign.RIGHT);
|
||||||
change.setTitle("Change Column Type");
|
change.setToolTip("Change Column Type");
|
||||||
|
|
||||||
SelectHandler changeHandler = new SelectHandler() {
|
SelectHandler changeHandler = new SelectHandler() {
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,7 @@ public class DeleteColumnPanel extends FramedPanel implements
|
||||||
delete = new TextButton("Delete");
|
delete = new TextButton("Delete");
|
||||||
delete.setIcon(ResourceBundle.INSTANCE.columnDelete());
|
delete.setIcon(ResourceBundle.INSTANCE.columnDelete());
|
||||||
delete.setIconAlign(IconAlign.RIGHT);
|
delete.setIconAlign(IconAlign.RIGHT);
|
||||||
delete.setTitle("Delete Column");
|
delete.setToolTip("Delete Column");
|
||||||
|
|
||||||
SelectHandler deleteHandler = new SelectHandler() {
|
SelectHandler deleteHandler = new SelectHandler() {
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@ public class LabelColumnPanel extends FramedPanel implements
|
||||||
change = new TextButton("Change");
|
change = new TextButton("Change");
|
||||||
change.setIcon(ResourceBundle.INSTANCE.columnLabel());
|
change.setIcon(ResourceBundle.INSTANCE.columnLabel());
|
||||||
change.setIconAlign(IconAlign.RIGHT);
|
change.setIconAlign(IconAlign.RIGHT);
|
||||||
change.setTitle("Change Column Label");
|
change.setToolTip("Change Column Label");
|
||||||
|
|
||||||
change.addSelectHandler(new SelectHandler() {
|
change.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ public class PositionColumnPanel extends FramedPanel {
|
||||||
reorder = new TextButton("Apply");
|
reorder = new TextButton("Apply");
|
||||||
reorder.setIcon(ResourceBundle.INSTANCE.columnReorder());
|
reorder.setIcon(ResourceBundle.INSTANCE.columnReorder());
|
||||||
reorder.setIconAlign(IconAlign.RIGHT);
|
reorder.setIconAlign(IconAlign.RIGHT);
|
||||||
reorder.setTitle("Apply Position Columns");
|
reorder.setToolTip("Apply Position Columns");
|
||||||
|
|
||||||
SelectHandler deleteHandler = new SelectHandler() {
|
SelectHandler deleteHandler = new SelectHandler() {
|
||||||
|
|
||||||
|
|
|
@ -270,7 +270,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
||||||
btnConnect = new TextButton();
|
btnConnect = new TextButton();
|
||||||
btnConnect.setIcon(ResourceBundle.INSTANCE.codelistLink24());
|
btnConnect.setIcon(ResourceBundle.INSTANCE.codelistLink24());
|
||||||
btnConnect.setIconAlign(IconAlign.TOP);
|
btnConnect.setIconAlign(IconAlign.TOP);
|
||||||
btnConnect.setTitle("Connect");
|
btnConnect.setToolTip("Connect");
|
||||||
btnConnect.addSelectHandler(new SelectHandler() {
|
btnConnect.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -290,7 +290,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
||||||
btnDisconnect
|
btnDisconnect
|
||||||
.setIcon(ResourceBundle.INSTANCE.codelistLinkBreak24());
|
.setIcon(ResourceBundle.INSTANCE.codelistLinkBreak24());
|
||||||
btnDisconnect.setIconAlign(IconAlign.TOP);
|
btnDisconnect.setIconAlign(IconAlign.TOP);
|
||||||
btnDisconnect.setTitle("Disconnect");
|
btnDisconnect.setToolTip("Disconnect");
|
||||||
btnDisconnect.addSelectHandler(new SelectHandler() {
|
btnDisconnect.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -465,7 +465,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
||||||
btnSave = new TextButton("Save");
|
btnSave = new TextButton("Save");
|
||||||
btnSave.setIcon(ResourceBundle.INSTANCE.save());
|
btnSave.setIcon(ResourceBundle.INSTANCE.save());
|
||||||
btnSave.setIconAlign(IconAlign.RIGHT);
|
btnSave.setIconAlign(IconAlign.RIGHT);
|
||||||
btnSave.setTitle("Save");
|
btnSave.setToolTip("Save");
|
||||||
btnSave.addSelectHandler(new SelectHandler() {
|
btnSave.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -479,7 +479,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
||||||
btnClose = new TextButton("Close");
|
btnClose = new TextButton("Close");
|
||||||
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
||||||
btnClose.setIconAlign(IconAlign.RIGHT);
|
btnClose.setIconAlign(IconAlign.RIGHT);
|
||||||
btnClose.setTitle("Close");
|
btnClose.setToolTip("Close");
|
||||||
btnClose.addSelectHandler(new SelectHandler() {
|
btnClose.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
|
|
@ -89,7 +89,7 @@ public class SingleValueReplacePanel extends FramedPanel {
|
||||||
btnApply = new TextButton("Replace");
|
btnApply = new TextButton("Replace");
|
||||||
btnApply.setIcon(ResourceBundle.INSTANCE.replace());
|
btnApply.setIcon(ResourceBundle.INSTANCE.replace());
|
||||||
btnApply.setIconAlign(IconAlign.RIGHT);
|
btnApply.setIconAlign(IconAlign.RIGHT);
|
||||||
btnApply.setTitle("Replace Value");
|
btnApply.setToolTip("Replace Value");
|
||||||
btnApply.addSelectHandler(new SelectHandler() {
|
btnApply.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -102,7 +102,7 @@ public class SingleValueReplacePanel extends FramedPanel {
|
||||||
btnClose = new TextButton("Close");
|
btnClose = new TextButton("Close");
|
||||||
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
||||||
btnClose.setIconAlign(IconAlign.RIGHT);
|
btnClose.setIconAlign(IconAlign.RIGHT);
|
||||||
btnClose.setTitle("Close");
|
btnClose.setToolTip("Close");
|
||||||
btnClose.addSelectHandler(new SelectHandler() {
|
btnClose.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
|
|
@ -85,8 +85,10 @@ import com.sencha.gxt.widget.core.client.info.Info;
|
||||||
*/
|
*/
|
||||||
public class AddColumnPanel extends FramedPanel implements
|
public class AddColumnPanel extends FramedPanel implements
|
||||||
CodelistSelectionListener, MonitorDialogListener {
|
CodelistSelectionListener, MonitorDialogListener {
|
||||||
//private static final String GEOMETRY_REGEXPR = "(\\s*POINT\\s*\\(\\s*(-)?\\d+(\\.\\d+)?\\s+(-)?\\d+(\\.\\d+)?\\s*\\)\\s*$)"
|
// private static final String GEOMETRY_REGEXPR =
|
||||||
// + "|(\\s*LINESTRING\\s*\\((\\s*(-)?\\d+(\\.\\d+)?\\s+(-)?\\d+(\\.\\d+)?\\s*,)+\\s*((-)?\\d+(\\.\\d+)?\\s+(-)?\\d+(\\.\\d+)?\\s*)\\)\\s*$)";
|
// "(\\s*POINT\\s*\\(\\s*(-)?\\d+(\\.\\d+)?\\s+(-)?\\d+(\\.\\d+)?\\s*\\)\\s*$)"
|
||||||
|
// +
|
||||||
|
// "|(\\s*LINESTRING\\s*\\((\\s*(-)?\\d+(\\.\\d+)?\\s+(-)?\\d+(\\.\\d+)?\\s*,)+\\s*((-)?\\d+(\\.\\d+)?\\s+(-)?\\d+(\\.\\d+)?\\s*)\\)\\s*$)";
|
||||||
|
|
||||||
private static final String WIDTH = "640px";
|
private static final String WIDTH = "640px";
|
||||||
private static final String HEIGHT = "520px";
|
private static final String HEIGHT = "520px";
|
||||||
|
@ -131,6 +133,7 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
private ExpressionWrapper exWrapper;
|
private ExpressionWrapper exWrapper;
|
||||||
private TextButton btnRemoveExpression;
|
private TextButton btnRemoveExpression;
|
||||||
|
private TextButton btnAddExpression;
|
||||||
|
|
||||||
// private DateTimeFormat sdf = DateTimeFormat.getFormat("yyyy-MM-dd");
|
// private DateTimeFormat sdf = DateTimeFormat.getFormat("yyyy-MM-dd");
|
||||||
|
|
||||||
|
@ -176,16 +179,16 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
// Label
|
// Label
|
||||||
label = new TextField();
|
label = new TextField();
|
||||||
|
|
||||||
|
// Flow Expression
|
||||||
//Flow Expression
|
|
||||||
HBoxLayoutContainer flowExpression = new HBoxLayoutContainer();
|
HBoxLayoutContainer flowExpression = new HBoxLayoutContainer();
|
||||||
flowExpression.setHBoxLayoutAlign(HBoxLayoutAlign.MIDDLE);
|
flowExpression.setHBoxLayoutAlign(HBoxLayoutAlign.MIDDLE);
|
||||||
flowExpression.setPack(BoxLayoutPack.START);
|
flowExpression.setPack(BoxLayoutPack.START);
|
||||||
flowExpression.setAdjustForFlexRemainder(true);
|
flowExpression.setAdjustForFlexRemainder(true);
|
||||||
|
|
||||||
// Default Value
|
// Default Value
|
||||||
defaultValueString = new TextField();
|
defaultValueString = new TextField();
|
||||||
//defaultValueString.setWidth("166px");
|
defaultValueString.setReadOnly(true);
|
||||||
|
// defaultValueString.setWidth("166px");
|
||||||
defaultValueString.addDomHandler(new ClickHandler() {
|
defaultValueString.addDomHandler(new ClickHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -194,10 +197,24 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
}
|
}
|
||||||
}, ClickEvent.getType());
|
}, ClickEvent.getType());
|
||||||
|
|
||||||
|
|
||||||
|
btnAddExpression = new TextButton();
|
||||||
|
btnAddExpression.setIcon(ExpressionResources.INSTANCE.add());
|
||||||
|
btnAddExpression.setToolTip("Add expression");
|
||||||
|
btnAddExpression.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
|
public void onSelect(SelectEvent event) {
|
||||||
|
Log.debug("Pressed Add Expression");
|
||||||
|
openReplaceExpressionDialog();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
btnAddExpression.setVisible(true);
|
||||||
|
|
||||||
|
|
||||||
btnRemoveExpression = new TextButton();
|
btnRemoveExpression = new TextButton();
|
||||||
btnRemoveExpression.setIcon(ExpressionResources.INSTANCE.delete());
|
btnRemoveExpression.setIcon(ExpressionResources.INSTANCE.delete());
|
||||||
btnRemoveExpression.setTitle("Remove expression");
|
btnRemoveExpression.setToolTip("Remove expression");
|
||||||
btnRemoveExpression.addSelectHandler(new SelectHandler() {
|
btnRemoveExpression.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -206,22 +223,19 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
btnRemoveExpression.setVisible(false);
|
btnRemoveExpression.setVisible(false);
|
||||||
|
|
||||||
BoxLayoutData flex1 = new BoxLayoutData(new Margins(0));
|
BoxLayoutData flex1 = new BoxLayoutData(new Margins(0));
|
||||||
flex1.setFlex(0);
|
flex1.setFlex(0);
|
||||||
|
|
||||||
BoxLayoutData flex2 = new BoxLayoutData(new Margins(0));
|
BoxLayoutData flex2 = new BoxLayoutData(new Margins(0));
|
||||||
flex2.setFlex(1);
|
flex2.setFlex(1);
|
||||||
|
|
||||||
|
flowExpression.add(btnAddExpression, flex1);
|
||||||
flowExpression.add(btnRemoveExpression, flex1);
|
flowExpression.add(btnRemoveExpression, flex1);
|
||||||
flowExpression.add(defaultValueString, flex2);
|
flowExpression.add(defaultValueString, flex2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
defaultStringLabel = new FieldLabel(flowExpression, "Expression");
|
defaultStringLabel = new FieldLabel(flowExpression, "Expression");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// comboColumnTypeCode
|
// comboColumnTypeCode
|
||||||
ColumnTypeCodeProperties propsColumnTypeCode = GWT
|
ColumnTypeCodeProperties propsColumnTypeCode = GWT
|
||||||
.create(ColumnTypeCodeProperties.class);
|
.create(ColumnTypeCodeProperties.class);
|
||||||
|
@ -383,7 +397,7 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
btnAddColumn = new TextButton("Add");
|
btnAddColumn = new TextButton("Add");
|
||||||
btnAddColumn.setIcon(ResourceBundle.INSTANCE.columnAdd());
|
btnAddColumn.setIcon(ResourceBundle.INSTANCE.columnAdd());
|
||||||
btnAddColumn.setIconAlign(IconAlign.RIGHT);
|
btnAddColumn.setIconAlign(IconAlign.RIGHT);
|
||||||
btnAddColumn.setTitle("Add Column");
|
btnAddColumn.setToolTip("Add Column");
|
||||||
|
|
||||||
SelectHandler changeHandler = new SelectHandler() {
|
SelectHandler changeHandler = new SelectHandler() {
|
||||||
|
|
||||||
|
@ -429,9 +443,11 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void removeExpression() {
|
protected void removeExpression() {
|
||||||
exWrapper=null;
|
exWrapper = null;
|
||||||
defaultValueString.reset();
|
defaultValueString.reset();
|
||||||
|
defaultValueString.removeToolTip();
|
||||||
btnRemoveExpression.setVisible(false);
|
btnRemoveExpression.setVisible(false);
|
||||||
|
btnAddExpression.setVisible(true);
|
||||||
forceLayout();
|
forceLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -451,11 +467,17 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
if (exWrapper.isReplaceByValue()) {
|
if (exWrapper.isReplaceByValue()) {
|
||||||
defaultValueString.setValue(exWrapper
|
defaultValueString.setValue(exWrapper
|
||||||
.getReplaceValue());
|
.getReplaceValue());
|
||||||
|
defaultValueString.setToolTip(exWrapper
|
||||||
|
.getReplaceValue());
|
||||||
} else {
|
} else {
|
||||||
defaultValueString.setValue(exWrapper
|
defaultValueString.setValue(exWrapper
|
||||||
.getReplaceExpressionContainer()
|
.getReplaceExpressionContainer()
|
||||||
.getReadableExpression());
|
.getReadableExpression());
|
||||||
|
defaultValueString.setToolTip(exWrapper
|
||||||
|
.getReplaceExpressionContainer()
|
||||||
|
.getReadableExpression());
|
||||||
}
|
}
|
||||||
|
btnAddExpression.setVisible(false);
|
||||||
btnRemoveExpression.setVisible(true);
|
btnRemoveExpression.setVisible(true);
|
||||||
forceLayout();
|
forceLayout();
|
||||||
|
|
||||||
|
@ -465,8 +487,7 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
public void failed(Throwable throwable) {
|
public void failed(Throwable throwable) {
|
||||||
Log.error("Error in AddColumn during expression creation:"
|
Log.error("Error in AddColumn during expression creation:"
|
||||||
+ throwable.getLocalizedMessage());
|
+ throwable.getLocalizedMessage());
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -643,11 +664,12 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
comboDimensionTypeLabel.setVisible(false);
|
comboDimensionTypeLabel.setVisible(false);
|
||||||
comboColumnReferenceTypeLabel.setVisible(false);
|
comboColumnReferenceTypeLabel.setVisible(false);
|
||||||
comboTimeDimensionTypeLabel.setVisible(false);
|
comboTimeDimensionTypeLabel.setVisible(false);
|
||||||
exWrapper=null;
|
exWrapper = null;
|
||||||
defaultValueString.reset();
|
defaultValueString.reset();
|
||||||
btnRemoveExpression.setVisible(false);
|
btnRemoveExpression.setVisible(false);
|
||||||
|
btnAddExpression.setVisible(true);
|
||||||
|
defaultValueString.removeToolTip();
|
||||||
defaultStringLabel.setVisible(true);
|
defaultStringLabel.setVisible(true);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case ATTRIBUTE:
|
case ATTRIBUTE:
|
||||||
comboLocaleTypeLabel.setVisible(false);
|
comboLocaleTypeLabel.setVisible(false);
|
||||||
|
@ -694,9 +716,11 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
comboDimensionTypeLabel.setVisible(false);
|
comboDimensionTypeLabel.setVisible(false);
|
||||||
comboColumnReferenceTypeLabel.setVisible(false);
|
comboColumnReferenceTypeLabel.setVisible(false);
|
||||||
comboTimeDimensionTypeLabel.setVisible(false);
|
comboTimeDimensionTypeLabel.setVisible(false);
|
||||||
exWrapper=null;
|
exWrapper = null;
|
||||||
defaultValueString.reset();
|
defaultValueString.reset();
|
||||||
btnRemoveExpression.setVisible(false);
|
btnRemoveExpression.setVisible(false);
|
||||||
|
btnAddExpression.setVisible(true);
|
||||||
|
defaultValueString.removeToolTip();
|
||||||
defaultStringLabel.setVisible(true);
|
defaultStringLabel.setVisible(true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -706,18 +730,22 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
protected void updateMeasureType(ColumnDataType type) {
|
protected void updateMeasureType(ColumnDataType type) {
|
||||||
Log.debug("Update ColumnTypeCode " + type);
|
Log.debug("Update ColumnTypeCode " + type);
|
||||||
exWrapper=null;
|
exWrapper = null;
|
||||||
defaultValueString.reset();
|
defaultValueString.reset();
|
||||||
btnRemoveExpression.setVisible(false);
|
btnRemoveExpression.setVisible(false);
|
||||||
|
btnAddExpression.setVisible(true);
|
||||||
|
defaultValueString.removeToolTip();
|
||||||
defaultStringLabel.setVisible(true);
|
defaultStringLabel.setVisible(true);
|
||||||
forceLayout();
|
forceLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void updateAttributeType(ColumnDataType type) {
|
protected void updateAttributeType(ColumnDataType type) {
|
||||||
Log.debug("Update ColumnTypeCode " + type);
|
Log.debug("Update ColumnTypeCode " + type);
|
||||||
exWrapper=null;
|
exWrapper = null;
|
||||||
defaultValueString.reset();
|
defaultValueString.reset();
|
||||||
btnRemoveExpression.setVisible(false);
|
btnRemoveExpression.setVisible(false);
|
||||||
|
btnAddExpression.setVisible(true);
|
||||||
|
defaultValueString.removeToolTip();
|
||||||
defaultStringLabel.setVisible(true);
|
defaultStringLabel.setVisible(true);
|
||||||
forceLayout();
|
forceLayout();
|
||||||
|
|
||||||
|
@ -865,12 +893,14 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (defaultV == null || defaultV.isEmpty()) {
|
if (defaultV == null || defaultV.isEmpty()) {
|
||||||
columnMockUp = new ColumnMockUp(null, null,
|
columnMockUp = new ColumnMockUp(null,
|
||||||
labelS, type, dataType, defaultV);
|
null, labelS, type, dataType,
|
||||||
|
defaultV);
|
||||||
} else {
|
} else {
|
||||||
if (exWrapper.isReplaceByValue()) {
|
if (exWrapper.isReplaceByValue()) {
|
||||||
columnMockUp = new ColumnMockUp(null, null,
|
columnMockUp = new ColumnMockUp(
|
||||||
labelS, type, dataType,
|
null, null, labelS, type,
|
||||||
|
dataType,
|
||||||
exWrapper.getReplaceValue());
|
exWrapper.getReplaceValue());
|
||||||
} else {
|
} else {
|
||||||
columnMockUp = new ColumnMockUp(
|
columnMockUp = new ColumnMockUp(
|
||||||
|
@ -885,8 +915,8 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addColumnSession = new AddColumnSession(trId,
|
addColumnSession = new AddColumnSession(
|
||||||
columnMockUp);
|
trId, columnMockUp);
|
||||||
callAddColumm();
|
callAddColumm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -903,29 +933,23 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
break;
|
break;
|
||||||
case CODE:
|
case CODE:
|
||||||
case CODEDESCRIPTION:
|
case CODEDESCRIPTION:
|
||||||
case ANNOTATION:
|
case ANNOTATION:
|
||||||
if (defaultV == null || defaultV.isEmpty()) {
|
if (defaultV == null || defaultV.isEmpty()) {
|
||||||
columnMockUp = new ColumnMockUp(null, null,
|
columnMockUp = new ColumnMockUp(null, null, labelS,
|
||||||
labelS, type, defaultV);
|
type, defaultV);
|
||||||
} else {
|
} else {
|
||||||
if (exWrapper.isReplaceByValue()) {
|
if (exWrapper.isReplaceByValue()) {
|
||||||
columnMockUp = new ColumnMockUp(null, null,
|
columnMockUp = new ColumnMockUp(null, null, labelS,
|
||||||
labelS, type,
|
type, exWrapper.getReplaceValue());
|
||||||
exWrapper.getReplaceValue());
|
|
||||||
} else {
|
} else {
|
||||||
columnMockUp = new ColumnMockUp(
|
columnMockUp = new ColumnMockUp(null, null, labelS,
|
||||||
null,
|
type, exWrapper
|
||||||
null,
|
|
||||||
labelS,
|
|
||||||
type,
|
|
||||||
exWrapper
|
|
||||||
.getReplaceExpressionContainer()
|
.getReplaceExpressionContainer()
|
||||||
.getExp());
|
.getExp());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addColumnSession = new AddColumnSession(trId,
|
addColumnSession = new AddColumnSession(trId, columnMockUp);
|
||||||
columnMockUp);
|
|
||||||
callAddColumm();
|
callAddColumm();
|
||||||
break;
|
break;
|
||||||
case CODENAME:
|
case CODENAME:
|
||||||
|
@ -933,8 +957,8 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
.getCurrentValue();
|
.getCurrentValue();
|
||||||
if (locale != null) {
|
if (locale != null) {
|
||||||
if (defaultV == null || defaultV.isEmpty()) {
|
if (defaultV == null || defaultV.isEmpty()) {
|
||||||
columnMockUp = new ColumnMockUp(null, null,
|
columnMockUp = new ColumnMockUp(null, null, labelS,
|
||||||
labelS, type,locale.getLocaleName(), defaultV);
|
type, locale.getLocaleName(), defaultV);
|
||||||
} else {
|
} else {
|
||||||
if (exWrapper.isReplaceByValue()) {
|
if (exWrapper.isReplaceByValue()) {
|
||||||
columnMockUp = new ColumnMockUp(null, null,
|
columnMockUp = new ColumnMockUp(null, null,
|
||||||
|
@ -945,7 +969,8 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
labelS,
|
labelS,
|
||||||
type,locale.getLocaleName(),
|
type,
|
||||||
|
locale.getLocaleName(),
|
||||||
exWrapper
|
exWrapper
|
||||||
.getReplaceExpressionContainer()
|
.getReplaceExpressionContainer()
|
||||||
.getExp());
|
.getExp());
|
||||||
|
@ -959,7 +984,7 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
UtilsGXT3.alert("Attention", "No locale selected!");
|
UtilsGXT3.alert("Attention", "No locale selected!");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DIMENSION:
|
case DIMENSION:
|
||||||
ColumnData columnReference = comboColumnReferenceType
|
ColumnData columnReference = comboColumnReferenceType
|
||||||
.getCurrentValue();
|
.getCurrentValue();
|
||||||
|
@ -1054,7 +1079,7 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
break;
|
break;
|
||||||
case CODE:
|
case CODE:
|
||||||
case CODEDESCRIPTION:
|
case CODEDESCRIPTION:
|
||||||
case ANNOTATION:
|
case ANNOTATION:
|
||||||
columnMockUp = new ColumnMockUp(null, null, labelS, type,
|
columnMockUp = new ColumnMockUp(null, null, labelS, type,
|
||||||
"");
|
"");
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -212,7 +212,7 @@ public class CreateDefColumnPanel extends FramedPanel {
|
||||||
btnSave = new TextButton("Save");
|
btnSave = new TextButton("Save");
|
||||||
btnSave.setIcon(ResourceBundle.INSTANCE.save());
|
btnSave.setIcon(ResourceBundle.INSTANCE.save());
|
||||||
btnSave.setIconAlign(IconAlign.RIGHT);
|
btnSave.setIconAlign(IconAlign.RIGHT);
|
||||||
btnSave.setTitle("Save");
|
btnSave.setToolTip("Save");
|
||||||
btnSave.addSelectHandler(new SelectHandler() {
|
btnSave.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -226,7 +226,7 @@ public class CreateDefColumnPanel extends FramedPanel {
|
||||||
btnClose = new TextButton("Close");
|
btnClose = new TextButton("Close");
|
||||||
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
||||||
btnClose.setIconAlign(IconAlign.RIGHT);
|
btnClose.setIconAlign(IconAlign.RIGHT);
|
||||||
btnClose.setTitle("Close");
|
btnClose.setToolTip("Close");
|
||||||
btnClose.addSelectHandler(new SelectHandler() {
|
btnClose.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
|
|
@ -25,6 +25,9 @@ public class ActionButtonCell extends ResizeCell<String> implements HasSelectHan
|
||||||
private final ActionButtonCellAppearance appearance;
|
private final ActionButtonCellAppearance appearance;
|
||||||
private ImageResource icon;
|
private ImageResource icon;
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public ActionButtonCell() {
|
public ActionButtonCell() {
|
||||||
this(GWT.<ActionButtonCellAppearance> create(ActionButtonCellAppearance.class));
|
this(GWT.<ActionButtonCellAppearance> create(ActionButtonCellAppearance.class));
|
||||||
|
@ -33,6 +36,7 @@ public class ActionButtonCell extends ResizeCell<String> implements HasSelectHan
|
||||||
public ActionButtonCell(ActionButtonCellAppearance appearance) {
|
public ActionButtonCell(ActionButtonCellAppearance appearance) {
|
||||||
super("click");
|
super("click");
|
||||||
this.appearance = appearance;
|
this.appearance = appearance;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIcon(ImageResource icon) {
|
public void setIcon(ImageResource icon) {
|
||||||
|
@ -43,6 +47,8 @@ public class ActionButtonCell extends ResizeCell<String> implements HasSelectHan
|
||||||
this.title = title;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HandlerRegistration addSelectHandler(SelectHandler handler) {
|
public HandlerRegistration addSelectHandler(SelectHandler handler) {
|
||||||
return addHandler(handler, SelectEvent.getType());
|
return addHandler(handler, SelectEvent.getType());
|
||||||
|
@ -79,6 +85,7 @@ public class ActionButtonCell extends ResizeCell<String> implements HasSelectHan
|
||||||
fireEvent(context, new SelectEvent(context));
|
fireEvent(context, new SelectEvent(context));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -36,6 +36,7 @@ public class ActionButtonCellAppearance {
|
||||||
|
|
||||||
public ImageResource icon;
|
public ImageResource icon;
|
||||||
public String title;
|
public String title;
|
||||||
|
public String toolTip;
|
||||||
|
|
||||||
public ActionButtonCellAppearance(){
|
public ActionButtonCellAppearance(){
|
||||||
this((Resources) GWT.create(Resources.class));
|
this((Resources) GWT.create(Resources.class));
|
||||||
|
|
|
@ -124,7 +124,7 @@ public class ConnectCodelistDialog extends Window implements
|
||||||
btnApply = new TextButton("Connect");
|
btnApply = new TextButton("Connect");
|
||||||
btnApply.setIcon(ResourceBundle.INSTANCE.codelistLink());
|
btnApply.setIcon(ResourceBundle.INSTANCE.codelistLink());
|
||||||
btnApply.setIconAlign(IconAlign.RIGHT);
|
btnApply.setIconAlign(IconAlign.RIGHT);
|
||||||
btnApply.setTitle("Connect");
|
btnApply.setToolTip("Connect");
|
||||||
btnApply.addSelectHandler(new SelectHandler() {
|
btnApply.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -138,7 +138,7 @@ public class ConnectCodelistDialog extends Window implements
|
||||||
btnClose = new TextButton("Close");
|
btnClose = new TextButton("Close");
|
||||||
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
||||||
btnClose.setIconAlign(IconAlign.RIGHT);
|
btnClose.setIconAlign(IconAlign.RIGHT);
|
||||||
btnClose.setTitle("Close");
|
btnClose.setToolTip("Close");
|
||||||
btnClose.addSelectHandler(new SelectHandler() {
|
btnClose.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
|
|
@ -123,7 +123,7 @@ public class ColumnMappingPanel extends FramedPanel {
|
||||||
btnSave = new TextButton("Save");
|
btnSave = new TextButton("Save");
|
||||||
btnSave.setIcon(ResourceBundle.INSTANCE.save());
|
btnSave.setIcon(ResourceBundle.INSTANCE.save());
|
||||||
btnSave.setIconAlign(IconAlign.RIGHT);
|
btnSave.setIconAlign(IconAlign.RIGHT);
|
||||||
btnSave.setTitle("Save");
|
btnSave.setToolTip("Save");
|
||||||
btnSave.addSelectHandler(new SelectHandler() {
|
btnSave.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -137,7 +137,7 @@ public class ColumnMappingPanel extends FramedPanel {
|
||||||
btnClose = new TextButton("Close");
|
btnClose = new TextButton("Close");
|
||||||
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
||||||
btnClose.setIconAlign(IconAlign.RIGHT);
|
btnClose.setIconAlign(IconAlign.RIGHT);
|
||||||
btnClose.setTitle("Close");
|
btnClose.setToolTip("Close");
|
||||||
btnClose.addSelectHandler(new SelectHandler() {
|
btnClose.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
|
|
@ -180,7 +180,7 @@ public class ReplaceAllPanel extends FramedPanel implements
|
||||||
btnApply = new TextButton("Replace");
|
btnApply = new TextButton("Replace");
|
||||||
btnApply.setIcon(ResourceBundle.INSTANCE.replaceAll());
|
btnApply.setIcon(ResourceBundle.INSTANCE.replaceAll());
|
||||||
btnApply.setIconAlign(IconAlign.RIGHT);
|
btnApply.setIconAlign(IconAlign.RIGHT);
|
||||||
btnApply.setTitle("Replace Value");
|
btnApply.setToolTip("Replace Value");
|
||||||
btnApply.addSelectHandler(new SelectHandler() {
|
btnApply.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -193,7 +193,7 @@ public class ReplaceAllPanel extends FramedPanel implements
|
||||||
btnClose = new TextButton("Close");
|
btnClose = new TextButton("Close");
|
||||||
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
||||||
btnClose.setIconAlign(IconAlign.RIGHT);
|
btnClose.setIconAlign(IconAlign.RIGHT);
|
||||||
btnClose.setTitle("Close");
|
btnClose.setToolTip("Close");
|
||||||
btnClose.addSelectHandler(new SelectHandler() {
|
btnClose.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -258,7 +258,7 @@ public class ReplaceAllPanel extends FramedPanel implements
|
||||||
btnApply = new TextButton("Replace");
|
btnApply = new TextButton("Replace");
|
||||||
btnApply.setIcon(ResourceBundle.INSTANCE.replace());
|
btnApply.setIcon(ResourceBundle.INSTANCE.replace());
|
||||||
btnApply.setIconAlign(IconAlign.RIGHT);
|
btnApply.setIconAlign(IconAlign.RIGHT);
|
||||||
btnApply.setTitle("Replace Value");
|
btnApply.setToolTip("Replace Value");
|
||||||
btnApply.addSelectHandler(new SelectHandler() {
|
btnApply.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
|
Loading…
Reference in New Issue