Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Native Button Problem
Hi,
I placed my native button in a absolute layout.. Both native button and layout have their own click events.. Now the problem is when i click on native button layout's event also triggering how can i solve this problem..
(instead of native button i used Button but i getting problem in Theme)
Anyone can help me..
Regards,
Parthipan R
Last updated on Apr, 20th 2012
You can check the type of the clicked component:
layout.addListener(new LayoutClickListener() {
public void layoutClick(LayoutClickEvent event) {
if (event.getChildComponent() instanceof NativeButton) {
// Native button clicked, do nothing
return;
}
...
}
});
Last updated on
You cannot reply to this thread.