Fixed Label bug
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@101293 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
be9230db4d
commit
457239ee9e
|
@ -194,7 +194,12 @@ public class LabelColumnPanel extends FramedPanel implements
|
|||
if (col.getLabel() != null && !col.getLabel().isEmpty()) {
|
||||
TextField text = new TextField();
|
||||
text.setValue(col.getLabel());
|
||||
textLabel = new FieldLabel(text, col.getLabel());
|
||||
String lab=col.getLabel();
|
||||
if(lab.length()>23){
|
||||
lab=lab.substring(0, 21);
|
||||
lab=lab+"...";
|
||||
}
|
||||
textLabel = new FieldLabel(text, lab);
|
||||
textLabel.setLabelWidth(LABELWIDTH);
|
||||
textLabel.setId(col.getColumnId());
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue