public static class CheckBox.CheckBoxLabelElement extends Object implements HasStyleNames
| Modifier and Type | Method and Description |
|---|---|
void |
addStyleName(String style)
Adds one or more style names to this component.
|
String |
getStyleName()
Gets all user-defined CSS style names of a component.
|
void |
removeStyleName(String style)
Removes one or more style names from component.
|
void |
setStyleName(String style)
Sets one or more user-defined style names of the component, replacing any
previous user-defined styles.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStyleNames, removeStyleNames, setStyleNamepublic String getStyleName()
HasStyleNamesThe style names are returned only in the basic form in which they were added.
getStyleName in interface HasStyleNamesHasStyleNames.setStyleName(String),
HasStyleNames.addStyleName(String),
HasStyleNames.removeStyleName(String)public void setStyleName(String style)
HasStyleNames
It is normally a good practice to use addStyleName() rather than this setter, as different software
abstraction layers can then add their own styles without accidentally
removing those defined in other layers.
setStyleName in interface HasStyleNamesstyle - the new style or styles of the component as a space-separated
listHasStyleNames.getStyleName(),
HasStyleNames.addStyleName(String),
HasStyleNames.removeStyleName(String)public void addStyleName(String style)
HasStyleNamesaddStyleName in interface HasStyleNamesstyle - the new style to be added to the componentHasStyleNames.getStyleName(),
HasStyleNames.setStyleName(String),
HasStyleNames.removeStyleName(String)public void removeStyleName(String style)
HasStyleNames
The parameter must be a valid CSS style name. Only user-defined style
names added with addStyleName() or
setStyleName() can be removed; built-in
style names defined in Vaadin or GWT can not be removed.
removeStyleName in interface HasStyleNamesstyle - the style name or style names to be removedHasStyleNames.getStyleName(),
HasStyleNames.setStyleName(String),
HasStyleNames.addStyleName(String)Copyright © 2021 Vaadin Ltd. All rights reserved.