ClickableLabel
ClickableLabel
The addon contains a 'ClickableLabel' widget which is displayed as a simple label but triggers the same events like a button.
For example:
final ClickableLabel myLabel = new ClickableLabel("The caption"); myLabel.addListener(new Button.ClickListener() { @Override public void buttonClick(final Button.ClickEvent event) { .... } });
Sample code
new ClickableLabel("My Caption").addListener(new Button.ClickListener() { @Override public void buttonClick(final Button.ClickEvent event) { //... } });
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- Released
- 2013-01-31
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 6.0+
- Vaadin 7.0+
- Browser
- Browser Independent
ClickableLabel - Vaadin Add-on Directory
ClickableLabelThe addon contains a 'ClickableLabel' widget which is displayed as a simple label but triggers the same events like a button.
For example:
final ClickableLabel myLabel = new ClickableLabel("The caption");
myLabel.addListener(new Button.ClickListener() {
@Override
public void buttonClick(final Button.ClickEvent event) {
....
}
});