check if layout already exists in main layout

15 views
Skip to first unread message

Jaggernat

unread,
Sep 18, 2012, 12:30:14 AM9/18/12
to google-we...@googlegroups.com
hi guys
I am working on GWT and i have something like

public class QuickSearch extends Canvas
{
private HLayout mainBodyLayout = new HLayout(); //the main layout containing other layouts.

//button layout
private Layout getButtonLayout()
{
//here i want to check IF mainBodyLayout already contains
getButtonLayout() , if it does not contain only then add it like
mainBodyLayout.addMember(getButtonLayout());
Any idea how i can check if getButtonLayout() is already present in mainBodyLayout ?

return VLayout;
}

thanks in advance.
Reply all
Reply to author
Forward
0 new messages