Friday, November 28, 2014

How to wrap horizontal panel

My requirement is that i need to find segregate hyperlink and text and wrap them into panel currently using horizontal panel but couldn't able to wrap.

Please help here is code snippet 


for (String splitedComment : splitedComments) {

if(!(splitedComment.matches(urlPathPattern) || splitedComment.matches(UNCPathPattern))){

if(splitedComment.length()>0) {

HTML txt=new HTML();

txt.setHTML(splitedComment + " ");

//lbl = new Label(splitedComment+" ");

}

});

hyperlinkPanel.add(txt);

}

} else {

link0 = new Anchor();

link0.setText(splitedComment);

link0.setHref(splitedComment);

link0.setTarget("_blank");

HTML txt=new HTML();

txt.setHTML(" ");

hyperlinkPanel.add(link0);

hyperlinkPanel.add(txt);

}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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