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
Get value of Label In Clickable layout
Hi sir,
In my vaadin application , i add the Layout.clicklistener to more absoluteLayouts. Each absolutelayout contain same components.
Each are same but particular label value is different. I need to get the value of the label in the absoluteLayout when it is clicked by the user.
I need the label value for further processing. How do i get the particual absolutelayout reference.
How can i get this ?
Last updated on
The following should work:
layout.addListener(new LayoutClickListener() {
public void layoutClick(LayoutClickEvent event) {
if (event.getChildComponent() instanceof Label) {
Label label = (Label) event.getChildComponent();
System.out.println(label.getValue());
}
}
});
-Henri
Last updated on
You cannot reply to this thread.