Java Code Examples for com.vaadin.ui.Component.addStyleName()

The following are Jave code examples for showing how to use addStyleName() of the com.vaadin.ui.Component class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: md-stepper   File: StepLabel.java   Source Code and License Vote up 5 votes
private void toggleStyleName(Component component, String styleName, boolean enable) {
  if (enable) {
    component.addStyleName(styleName);
  } else {
    component.removeStyleName(styleName);
  }
}