简体   繁体   中英

Gwt - Showing a pop up panel when user's touch more than one widget or link

I am creating a panel showing many different kind of widgets such as button. The panel allows to zoom in and zoom out. It is required to show whole panel in the beginning. However, some users may touch more than one button when the panel is too small.

I want to handler the situation like chrome in Android. When the user touches more than one link, a pop up panel will be showing. What library or APIs may I use? Thanks!

You could place your Buttons in a FocusPanel implementing a ClickHandler to open your desired popup- thus when your user clicked between two buttons the click is registered and you can handle it.

Note, you will have to place a FlowPanel in that FocusPanel to place more than one button inside.

If you want to react on hover instead of on click, use HoverHandler instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM