Something like...
ListBox box = new ListBox();
box.addItem("Hello");
box.addItem("World!");
final PushButton button = new PushButton("Hidden");
FocusPanel p = new FocusPanel();
p.addFocusHandler(new FocusHandler() {
@Override
public void onFocus(FocusEvent event) {
button.setVisible(true);
}
});
p.addBlurHandler(new BlurHandler() {
@Override
public void onBlur(BlurEvent event) {
button.setVisible(false);
}
});
FlowPanel f = new FlowPanel();
f.add(box);
f.add(button);
p.add(f);
Cheers,
Dave
On Jan 21, 4:54 pm, PaulBee <[email protected]> wrote:
> I think that would be a good solution but neither FlexTable nor Panel
> (be it Horizontal or Vertical) have OnFocus and Blur handlers...
>
> Do you have any container to suggest?
>
> Thank you,
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.