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:
parent
7dfc182473
commit
6c62640187
|
@ -93,10 +93,10 @@ public class ChangeTableTypePanel extends FramedPanel implements
|
||||||
comboTableType.setEditable(false);
|
comboTableType.setEditable(false);
|
||||||
comboTableType.setTriggerAction(TriggerAction.ALL);
|
comboTableType.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
change = new TextButton("Change");
|
change = new TextButton("Apply");
|
||||||
change.setIcon(ResourceBundle.INSTANCE.tableType());
|
change.setIcon(ResourceBundle.INSTANCE.tableType());
|
||||||
change.setIconAlign(IconAlign.RIGHT);
|
change.setIconAlign(IconAlign.RIGHT);
|
||||||
change.setTitle("Change Table Type");
|
change.setTitle("Apply Table Type");
|
||||||
|
|
||||||
change.addSelectHandler(new SelectHandler() {
|
change.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
|
||||||
private static final String HEIGHT = "370px";
|
private static final String HEIGHT = "370px";
|
||||||
private static final String CONTAINERHEIGHT = "370px";
|
private static final String CONTAINERHEIGHT = "370px";
|
||||||
private static final int LABELSIZE = 120;
|
private static final int LABELSIZE = 120;
|
||||||
|
private static final int LABEL_SIZE_IN_CHAR = 17;
|
||||||
private static final String FIELDSETWIDTH = "640px";
|
private static final String FIELDSETWIDTH = "640px";
|
||||||
|
|
||||||
private EditRowDialog parent;
|
private EditRowDialog parent;
|
||||||
|
@ -241,7 +242,6 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
|
||||||
new Margins(0)));
|
new Margins(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
v.add(fieldSet, new VerticalLayoutData(1, -1, new Margins(1)));
|
v.add(fieldSet, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,9 +293,9 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
|
||||||
String label = new String();
|
String label = new String();
|
||||||
if (col != null && col.getLabel() != null) {
|
if (col != null && col.getLabel() != null) {
|
||||||
label = SafeHtmlUtils.htmlEscape(col.getLabel());
|
label = SafeHtmlUtils.htmlEscape(col.getLabel());
|
||||||
if (label.length() > LABELSIZE - 1) {
|
if (label.length() > LABEL_SIZE_IN_CHAR + 2) {
|
||||||
label = label.substring(0, LABELSIZE - 3);
|
label = label.substring(0, LABEL_SIZE_IN_CHAR);
|
||||||
label += "..";
|
label += "...";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!col.isViewColumn()) {
|
if (!col.isViewColumn()) {
|
||||||
|
@ -800,7 +800,8 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void operationStopped(OperationResult operationResult, String reason, String details) {
|
public void operationStopped(OperationResult operationResult,
|
||||||
|
String reason, String details) {
|
||||||
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
|
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
|
||||||
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
|
||||||
ChangeTableRequestType.EDITROW, operationResult.getTrId(), why);
|
ChangeTableRequestType.EDITROW, operationResult.getTrId(), why);
|
||||||
|
|
Loading…
Reference in New Issue