Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@95700 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
23162b1dcd
commit
2b466883b7
|
@ -27,6 +27,7 @@ import com.google.gwt.user.client.ui.HorizontalPanel;
|
|||
import com.google.web.bindery.event.shared.EventBus;
|
||||
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
||||
import com.sencha.gxt.cell.core.client.form.ComboBoxCell.TriggerAction;
|
||||
import com.sencha.gxt.core.client.dom.ScrollSupport.ScrollMode;
|
||||
import com.sencha.gxt.core.client.util.Margins;
|
||||
import com.sencha.gxt.core.client.util.ToggleGroup;
|
||||
import com.sencha.gxt.data.shared.ListStore;
|
||||
|
@ -58,7 +59,8 @@ public class EditRowPanel extends FramedPanel {
|
|||
protected String WIDTH = "560px";
|
||||
protected String HEIGHT = "400px";
|
||||
protected String FIELDSHEIGHT = "400px";
|
||||
|
||||
protected int LABELSIZE=140;
|
||||
|
||||
protected EditRowDialog parent;
|
||||
protected TRId trId;
|
||||
protected EventBus eventBus;
|
||||
|
@ -99,6 +101,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
container.setHeight(FIELDSHEIGHT);
|
||||
|
||||
VerticalLayoutContainer v = new VerticalLayoutContainer();
|
||||
v.setScrollMode(ScrollMode.AUTO);
|
||||
container.add(v);
|
||||
|
||||
btnSave = new TextButton("Save");
|
||||
|
@ -139,6 +142,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
v.add(fl, new VerticalLayoutData(1, -1, new Margins(1)));
|
||||
|
||||
}
|
||||
|
||||
|
||||
VerticalLayoutContainer vPanel = new VerticalLayoutContainer();
|
||||
vPanel.add(container, new VerticalLayoutData(1, -1));
|
||||
|
@ -186,6 +190,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
ColumnTypeCode.TIMEDIMENSION.toString()) == 0) {
|
||||
|
||||
FieldLabel dimensionLabel = retrieveDimensionLabel(col);
|
||||
dimensionLabel.setLabelWidth(LABELSIZE);
|
||||
fields.add(dimensionLabel);
|
||||
} else {
|
||||
if (col.getDataTypeName().compareTo(
|
||||
|
@ -211,6 +216,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
|
||||
FieldLabel booleanLabel = new FieldLabel(hp,
|
||||
col.getLabel());
|
||||
booleanLabel.setLabelWidth(LABELSIZE);
|
||||
booleanLabel.setId(col.getColumnId());
|
||||
fields.add(booleanLabel);
|
||||
} else {
|
||||
|
@ -229,6 +235,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
}
|
||||
FieldLabel dateLabel = new FieldLabel(date,
|
||||
col.getLabel());
|
||||
dateLabel.setLabelWidth(LABELSIZE);
|
||||
dateLabel.setId(col.getColumnId());
|
||||
fields.add(dateLabel);
|
||||
} else {
|
||||
|
@ -246,6 +253,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
});
|
||||
FieldLabel textLabel = new FieldLabel(text,
|
||||
col.getLabel());
|
||||
textLabel.setLabelWidth(LABELSIZE);
|
||||
textLabel.setId(col.getColumnId());
|
||||
fields.add(textLabel);
|
||||
} else {
|
||||
|
@ -263,6 +271,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
});
|
||||
FieldLabel geometryLabel = new FieldLabel(
|
||||
geometry, col.getLabel());
|
||||
geometryLabel.setLabelWidth(LABELSIZE);
|
||||
geometryLabel.setId(col.getColumnId());
|
||||
fields.add(geometryLabel);
|
||||
} else {
|
||||
|
@ -280,6 +289,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
});
|
||||
FieldLabel integLabel = new FieldLabel(
|
||||
integ, col.getLabel());
|
||||
integLabel.setLabelWidth(LABELSIZE);
|
||||
integLabel.setId(col.getColumnId());
|
||||
fields.add(integLabel);
|
||||
} else {
|
||||
|
@ -299,6 +309,7 @@ public class EditRowPanel extends FramedPanel {
|
|||
});
|
||||
FieldLabel numericLabel = new FieldLabel(
|
||||
numeric, col.getLabel());
|
||||
numericLabel.setLabelWidth(LABELSIZE);
|
||||
numericLabel.setId(col
|
||||
.getColumnId());
|
||||
fields.add(numericLabel);
|
||||
|
|
Loading…
Reference in New Issue