Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@111614 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-02-03 13:22:05 +00:00
parent a59bcdab73
commit 375b99f0fb
1 changed files with 18 additions and 15 deletions

View File

@ -60,19 +60,22 @@ import com.sencha.gxt.widget.core.client.form.TextField;
*/
public class ReplacePanel extends FramedPanel implements
DimensionRowSelectionListener, MonitorDialogListener {
private static final String REPLACEMENT = "Replacement";
private static final String CURRENT_VALUE = "Current Value";
private DateTimeFormat sdf = DateTimeFormat.getFormat("yyyy-MM-dd");
protected String WIDTH = "500px";
protected String HEIGHT = "150px";
protected EventBus eventBus;
protected TRId trId;
protected CellData cellData;
protected ReplaceDialog parent;
protected ColumnData column;
private String WIDTH = "500px";
private String HEIGHT = "150px";
private EventBus eventBus;
private TRId trId;
private CellData cellData;
private ReplaceDialog parent;
private ColumnData column;
protected DimensionRow dimensionRow;
private DimensionRow dimensionRow;
protected ReplaceColumnSession replaceColumnSession;
private ReplaceColumnSession replaceColumnSession;
private ComboBox<DimensionRow> comboDimensionType;
private FieldLabel comboDimensionTypeLabel;
@ -211,13 +214,13 @@ public class ReplacePanel extends FramedPanel implements
VerticalLayoutContainer v = new VerticalLayoutContainer();
if (column.getDataTypeName().compareTo("Date") == 0) {
v.add(new FieldLabel(valueDate, "Value"), new VerticalLayoutData(1,
v.add(new FieldLabel(valueDate, CURRENT_VALUE), new VerticalLayoutData(1,
-1));
v.add(new FieldLabel(replaceValueDate, "Replace"),
v.add(new FieldLabel(replaceValueDate, REPLACEMENT),
new VerticalLayoutData(1, -1));
} else {
v.add(new FieldLabel(value, "Value"), new VerticalLayoutData(1, -1));
v.add(new FieldLabel(replaceValue, "Replace"),
v.add(new FieldLabel(value, CURRENT_VALUE), new VerticalLayoutData(1, -1));
v.add(new FieldLabel(replaceValue, REPLACEMENT),
new VerticalLayoutData(1, -1));
}
v.add(flowButton, new VerticalLayoutData(1, 36,
@ -249,7 +252,7 @@ public class ReplacePanel extends FramedPanel implements
comboDimensionType.setEditable(false);
comboDimensionType.setTriggerAction(TriggerAction.ALL);
comboDimensionTypeLabel = new FieldLabel(comboDimensionType, "Replace");
comboDimensionTypeLabel = new FieldLabel(comboDimensionType, REPLACEMENT);
//
btnApply = new TextButton("Replace");
@ -287,7 +290,7 @@ public class ReplacePanel extends FramedPanel implements
flowButton.add(btnClose, boxLayoutData);
VerticalLayoutContainer v = new VerticalLayoutContainer();
v.add(new FieldLabel(value, "Value"), new VerticalLayoutData(1, -1));
v.add(new FieldLabel(value, CURRENT_VALUE), new VerticalLayoutData(1, -1));
v.add(comboDimensionTypeLabel, new VerticalLayoutData(1, -1));
v.add(flowButton, new VerticalLayoutData(1, 36,
new Margins(5, 2, 5, 2)));