Create components like Gmail

60 views
Skip to first unread message

hezjing

unread,
Mar 3, 2008, 9:37:00 PM3/3/08
to Google-We...@googlegroups.com
Hi

How can we create the UI component like the Gmail's Chat, Labels and
"Invite a friend" on the left of Gmail?

For example, we can expand/collapse the Labels.


--

Hez

freemonhuul

unread,
Mar 3, 2008, 10:34:10 PM3/3/08
to Google Web Toolkit
In my opinion we can create UI component like Gmail's chat and so on
with using DockPanel.
We need to add click listener to the content of the DockPanel.NORTH
side and then
When clicked on the the content, we could show and hide the content of
the DockPanel.CENTER side.
Of course use some CSS.

Carl Scott

unread,
Mar 5, 2008, 12:59:18 AM3/5/08
to Google Web Toolkit
Agreed, though the DockPanel is not necessary, the concept is
foolproof -- two panels, one with a listener, you click the thing the
listener is attached to to hide the other panel. I am not 100% sure
if this exists in an out-the-box way in GWT, but check out MyGWT --
there are some nice widgets there that do just what you are describing
out-the-box, and they look great, too!

--
Carl Scott
Software Developer, Solertium Corporation
> > Hez- Hide quoted text -
>
> - Show quoted text -

Isaac Truett

unread,
Mar 5, 2008, 5:27:04 PM3/5/08
to Google-We...@googlegroups.com
Is the DisclosurePanel what you're looking for?

sss0220

unread,
Mar 5, 2008, 8:36:59 PM3/5/08
to Google-We...@googlegroups.com
 
 I have the save problem
anyone help?

2008年500强企业最新高薪职位,赶快了解一下

Carl Scott

unread,
Mar 5, 2008, 8:43:51 PM3/5/08
to Google Web Toolkit
I'm not a particular fan of the implementation, but yes, for a quick
and easy solution use DisclosurePanel:

http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/user/client/ui/DisclosurePanel.html

Click and read :)

--
Carl Scott
Software Developer, Solertium Corporation

On Mar 5, 8:36 pm, sss0220 <sss0...@163.com> wrote:
> I have the save problem
> anyone help?
>
> 在2008-03-06,"Isaac Truett" <itru...@gmail.com> 写道:
>
> Is the DisclosurePanel what you're looking for?
>
>
>
> On Mon, Mar 3, 2008 at 9:37 PM, hezjing <hezj...@gmail.com> wrote:
>
> > Hi
>
> > How can we create the UI component like the Gmail's Chat, Labels and
> > "Invite a friend" on the left of Gmail?
>
> > For example, we can expand/collapse the Labels.
>
> > --
>
Reply all
Reply to author
Forward
0 new messages