Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@111554 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-01-30 11:11:48 +00:00 committed by Giancarlo Panichi
parent 7dfc182473
commit 6c62640187
2 changed files with 9 additions and 8 deletions

View File

@ -93,10 +93,10 @@ public class ChangeTableTypePanel extends FramedPanel implements
comboTableType.setEditable(false);
comboTableType.setTriggerAction(TriggerAction.ALL);
change = new TextButton("Change");
change = new TextButton("Apply");
change.setIcon(ResourceBundle.INSTANCE.tableType());
change.setIconAlign(IconAlign.RIGHT);
change.setTitle("Change Table Type");
change.setTitle("Apply Table Type");
change.addSelectHandler(new SelectHandler() {

View File

@ -83,6 +83,7 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
private static final String HEIGHT = "370px";
private static final String CONTAINERHEIGHT = "370px";
private static final int LABELSIZE = 120;
private static final int LABEL_SIZE_IN_CHAR = 17;
private static final String FIELDSETWIDTH = "640px";
private EditRowDialog parent;
@ -240,11 +241,10 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
fieldSetLayout.add(fl, new VerticalLayoutData(1, -1,
new Margins(0)));
}
v.add(fieldSet, new VerticalLayoutData(1, -1, new Margins(1)));
}
container.add(v, new MarginData(0));
container.forceLayout();
@ -293,9 +293,9 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
String label = new String();
if (col != null && col.getLabel() != null) {
label = SafeHtmlUtils.htmlEscape(col.getLabel());
if (label.length() > LABELSIZE - 1) {
label = label.substring(0, LABELSIZE - 3);
label += "..";
if (label.length() > LABEL_SIZE_IN_CHAR + 2) {
label = label.substring(0, LABEL_SIZE_IN_CHAR);
label += "...";
}
}
if (!col.isViewColumn()) {
@ -800,7 +800,8 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
}
@Override
public void operationStopped(OperationResult operationResult, String reason, String details) {
public void operationStopped(OperationResult operationResult,
String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.EDITROW, operationResult.getTrId(), why);