I am new to vaadin. I have one button it should look like a link. I have created button like,
Button title = new Button(item.getSubmissionTitle());
title.setStyleName(BaseTheme.BUTTON_LINK);
I also tried using
title.setStyleName("link);
but still I am getting look and feel of button. Is there any way to change the button using css Or any alternative ways by wich the button should appear as a link.
EDIT
I just found out The button is getting css from Table. And overriding the button style. For table, it has written
table.setDebugId("submissionsTable_id");
css for button in table is:
#submissionsTable_id .v-table-cell-wrapper .v-button-caption{white-space:normal !important;text-decoration:none;}
#submissionsTable_id .submission-content{width:350px;}
#submissionsTable_id .v-table-cell-wrapper .v-button-caption:hover
{
background:#3F1A7D;
color: #FFFFFF;
}
#submissionsTable_id .v-button-caption:hover
{
background:#3F1A7D;
color: #FFFFFF;
}
Now, How can i exclude my Link button to override the table's style or how can I add new style to button which should not inherit the style of the table.
A future reference for anyone else with this issue. According to the Book of Vaadin online: https://vaadin.com/book/vaadin7/-/page/components.button.html#figure.component.button.basic
If you are using the Reindeer theme the code would be: