Friday, October 9, 2015

Re: uncaught java.lang.indexoutofboundsexception

have someone any idea please ??

Le vendredi 9 octobre 2015 16:49:40 UTC+2, NewbieGwtUser a écrit :
I forgot to specify that mosaiqueContainer is a LayoutPanel in my ui.xml file.

Le vendredi 9 octobre 2015 16:39:25 UTC+2, NewbieGwtUser a écrit :
I have finally could display my view, but not as I expected, so that I get all the rows stacked each one over the other, 
have some one an idea how can I get them inserted each one after the other to look as a table.


there is my code:

public void fillContainer(){
int nbMenuItems = subMenuItemsContainer.getWidgetCount();
int i=0;
int nbRow= mosaiqueContainer.getWidgetCount();
while (i<nbMenuItems){
// MaterialToast.alert("ok"+ subMenuItemsContainer.getWidget(i).getElement().getInnerText());
MaterialRow row = new MaterialRow();
MaterialColumn col1=new MaterialColumn(12, 6, 3);
MaterialLink item = new MaterialLink();

item.setText(subMenuItemsContainer.getWidget(i).getElement().getInnerText());
col1.add(item);

row.add(col1);
row.addStyleName("mosaique-row-style");
mosaiqueContainer.add(row);
i++;
         }
}



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment