Monday, December 24, 2012

How can I shorten cells created with a flextable?

I create cells in a Flextable with the following code:

    Label label1=new Label(tipo);
    Label label2=new Label(articulo);
    label1.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
    label2.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

   
    if (checkBox.isChecked())
    {
        fTable.setWidget(nfilas,0, label1);
        fTable.setWidget(nfilas,1, label2);
       
        fTable.getFlexCellFormatter().setStyleName(nfilas, 0, "flexTable-cell2");
        fTable.getFlexCellFormatter().setStyleName(nfilas, 1, "flexTable-cell2");
       
       
    }

But the problem is that cells created this way are much bigger that what I need for my app. How can be defined the heigth and width every cell has to have individually?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WAmTNEf8RL4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment