How to use HorizontalPanel#setVerticalAlignment() ?

406 views
Skip to first unread message

dhoffer

unread,
Mar 26, 2012, 4:12:24 PM3/26/12
to Google Web Toolkit
GWT 2.4. Why are VerticalAlignmentConstant fields package private in
HasVerticalAlignment and constructor is private? This makes it
impossible to use in other packages such as
HorizontalPanel#setVerticalAlignment() or am I missing something?

Jens

unread,
Mar 27, 2012, 4:17:04 AM3/27/12
to google-we...@googlegroups.com
Just use the constants defined in HasVerticalAlignment.

horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP)

-- J.

dhoffer

unread,
Mar 27, 2012, 9:52:24 AM3/27/12
to Google Web Toolkit
Yup, my brain and IDE were in park yesterday I guess, thanks.

-Dave

Jim Douglas

unread,
Mar 27, 2012, 11:36:50 AM3/27/12
to Google Web Toolkit
FWIW, the sample code I added to the other thread also shows setting
vertical alignment.

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/ae382844d84c20e9#
Reply all
Reply to author
Forward
0 new messages