buttons in the title bar

9 views
Skip to first unread message

erico_m...@hotmail.com

unread,
Sep 24, 2009, 2:18:01 PM9/24/09
to Google Web Toolkit

I want to create a window with eight buttons in the title bar using
the GWT.
The buttons do not need to have any event.
Four are on the left side and four on the right.

Could someone help me?

thanks!

Parvez Shah

unread,
Sep 25, 2009, 4:13:56 AM9/25/09
to google-we...@googlegroups.com

maybe this will help you
put the title area on top of your window; that add code will depend on what kind of layout you are using on window

HorizontalPanel titleArea = new HorizontalPanel();
titleArea .setSize("100%","100%");

HorizontalPanel leftSide= new HorizontalPanel();
leftSide.setSpacing(5);
leftSide.add(new PushButton("button)):
leftSide.add(new PushButton("button)):
leftSide.add(new PushButton("button)):
leftSide.add(new PushButton("button)):

titleArea .add(leftSide);

HorizontalPanel rightSide= new HorizontalPanel();
rightSide.setSpacing(5);
rightSide.add(new PushButton("button)):
rightSide.add(new PushButton("button)):
rightSide.add(new PushButton("button)):
rightSide.add(new PushButton("button)):

titleArea .add(rightSide);
titleArea .setCellHorizontalAlignment(rightSide, HasHorizontalAlignment.ALIGN_RIGHT);

erico_m...@hotmail.com

unread,
Sep 25, 2009, 1:18:30 PM9/25/09
to Google Web Toolkit

This code, you add the time or had already done?
What GWT libraries you care?
For code that you sent me I can not find.
There are some parts that still accuse error here in my IDE.


thanks!

On 25 set, 05:13, Parvez Shah <parvezs...@gmail.com> wrote:
> maybe this will help you
> put the title area on top of your window; that add code will depend on what
> kind of layout you are using on window
>
> HorizontalPanel titleArea = new HorizontalPanel();
> titleArea .setSize("100%","100%");
>
> HorizontalPanel leftSide= new HorizontalPanel();
> leftSide.setSpacing(5);
> leftSide.add(new PushButton("button)):
> leftSide.add(new PushButton("button)):
> leftSide.add(new PushButton("button)):
> leftSide.add(new PushButton("button)):
>
> titleArea .add(leftSide);
>
> HorizontalPanel rightSide= new HorizontalPanel();
> rightSide.setSpacing(5);
> rightSide.add(new PushButton("button)):
> rightSide.add(new PushButton("button)):
> rightSide.add(new PushButton("button)):
> rightSide.add(new PushButton("button)):
>
> titleArea .add(rightSide);
> titleArea .setCellHorizontalAlignment(rightSide,
> HasHorizontalAlignment.ALIGN_RIGHT);
>
> On Thu, Sep 24, 2009 at 11:48 PM, erico_morta...@hotmail.com <
Reply all
Reply to author
Forward
0 new messages