Whr are these methods written? - public Panel leftPanel(String s) & public
Panel centerPanel(String s)

On Fri, Dec 5, 2008 at 3:48 PM, rajasekhar <[EMAIL PROTECTED]> wrote:

>
> Hi Preeth,
>
>              In my case it is diffrent because I am adding these two
> classes to main class.
>
>  LeftSide class is :
>
> public Panel leftPanel(String s)
> {
>         Panel  panel=new Panel();
>         final CheckBox emailCheckBox=new CheckBox();
>         emailCheckBox.setText("");
>         emailCheckBox.setChecked(true);
>         panel.add(emailCheckBox);
>         west=new Button("West");
>         west.addClickListener(this);
>         panel.add( west);
>         return panel;
> }
>
> Center Classs is :
> public Panel centerPanel(String s)
> {
>       Panel  panel=new Panel();
>         panel.add(new Button("Center"));
>        return panel;
> }
>
> Main class is:
>                westPanel.setHtml("<p>west panel</p>");
>                westPanel.setTitle("West");
>                westPanel.setBodyStyle("background-color:#EEEEEE");
>                westPanel.setCollapsible(true);
>                westPanel.setWidth(200);
>
>                westPanel.add(westPart.leftPanel("WEST"));//adding leftpanel
> class
>
>
>                west1=new Button("west1");
>                west1.addClickListener(this);
>                westPanel.add(west1);
>
>                BorderLayoutData westData = new BorderLayoutData
> (RegionPosition.WEST);
>                westData.setSplit(true);
>
>                westData.setMinSize(175);
>                westData.setMaxSize(400);
>                westData.setMargins(new Margins(0, 5, 0, 0));
>
>                borderPanel.add(westPanel, westData);
>                  borderPanel.add(centerPanel, new BorderLayoutData
> (RegionPosition.CENTER));//adding right panel        class
>
> }
>
> left and center classes are returning panels. Not the buttons
> (widgets).
>
> Please let me know how where I can implement the click functionality I
> mean in main class or leftside class.If the button is in same class I
> am able to refresh the center part.
>
>
> Please help me on this regard how to achieve this.
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to