using a composite on a docking panel

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

using a composite on a docking panel

Postby BoothMartin » Sat Apr 12, 2008 12:40 pm

using a composite on a docking panel:

This is pretty basic, but I am just learning and can't figure out where to look for the answer.

I have a docking panel with various widgets on it. One of those widgets is a composite panel made of a stacking panel with check boxes; another widget is a composite placed on the center panel of the docking panel.

I can not figure out how to have something happen on the composite panel on the center panel of the docking panel when a check box is checked on the stacking panel.

Here is the code I am trying to use:

Code: Select all
checkBox.addClickListener(new ClickListener() {
   public void onClick(final Widget sender) {
      final Frame frame = new Frame("query.txt");
      absolutePanel.add(frame, 20, 65);
      frame.setSize("800", "500");
   }
});
BoothMartin
 
Posts: 1
Joined: Fri Apr 11, 2008 12:10 pm

Re: using a composite on a docking panel

Postby Eric Clayberg » Sat Apr 12, 2008 5:03 pm

BoothMartin wrote:I am just learning and can't figure out where to look for the answer.

The best place to get answers to general GWT questions is Google's GWT forum.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: using a composite on a docking panel

Postby peterblazejewicz » Sun Apr 13, 2008 4:47 am

hi Martin,

If I understand well problem you simply should expose your subcomponents from composite so they are available in design view for custom event assignment, see docs:
viewtopic.php?t=1045
and option "expose widget" description,

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: using a composite on a docking panel

Postby Eric Clayberg » Sun Apr 13, 2008 5:46 am

Google's GWT forum is still the best place to go to get answers to general GWT questions like this.

For questions specific to GWT Designer, I would recommend starting with the GWT Designer docs and flash movies.

The docs and associated flash movies show how to expose individual widgets and properties from custom composites.

Note that exposing widgets or properties from a Composite (or any class) is a basic Java concept that can be easily addressed via hand-coding as well.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests