com.vaadin.ui.
Class CheckBox.CheckBoxInputElement
- java.lang.Object
-
- com.vaadin.ui.CheckBox.CheckBoxInputElement
-
All Implemented Interfaces:
Enclosing class:
public static class CheckBox.CheckBoxInputElement extends Object implements HasStyleNames
The inner input element of the CheckBox.
See Also:
-
-
Method Summary
All Methods Modifier and Type Method 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.
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.ui.HasStyleNames
addStyleNames, removeStyleNames, setStyleName
-
-
-
-
Method Detail
-
getStyleName
public String getStyleName()
Description copied from interface:
HasStyleNames
Gets all user-defined CSS style names of a component. If the component has multiple style names defined, the return string is a space-separated list of style names. Built-in style names defined in Vaadin or GWT are not returned.
The style names are returned only in the basic form in which they were added.
Specified by:
getStyleName
in interfaceHasStyleNames
Returns:
the style name or a space-separated list of user-defined style names of the component
See Also:
HasStyleNames.setStyleName(String)
,HasStyleNames.addStyleName(String)
,HasStyleNames.removeStyleName(String)
-
setStyleName
public void setStyleName(String style)
Description copied from interface:
HasStyleNames
Sets one or more user-defined style names of the component, replacing any previous user-defined styles. Multiple styles can be specified as a space-separated list of style names. The style names must be valid CSS class names.
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.Specified by:
setStyleName
in interfaceHasStyleNames
Parameters:
style
- the new style or styles of the component as a space-separated listSee Also:
HasStyleNames.getStyleName()
,HasStyleNames.addStyleName(String)
,HasStyleNames.removeStyleName(String)
-
addStyleName
public void addStyleName(String style)
Description copied from interface:
HasStyleNames
Adds one or more style names to this component. Multiple styles can be specified as a space-separated list of style names. The style name will be rendered as a HTML class name, which can be used in a CSS definition.
Specified by:
addStyleName
in interfaceHasStyleNames
Parameters:
style
- the new style to be added to the componentSee Also:
HasStyleNames.getStyleName()
,HasStyleNames.setStyleName(String)
,HasStyleNames.removeStyleName(String)
-
removeStyleName
public void removeStyleName(String style)
Description copied from interface:
HasStyleNames
Removes one or more style names from component. Multiple styles can be specified as a space-separated list of style names.
The parameter must be a valid CSS style name. Only user-defined style names added with
addStyleName()
orsetStyleName()
can be removed; built-in style names defined in Vaadin or GWT can not be removed.Specified by:
removeStyleName
in interfaceHasStyleNames
Parameters:
style
- the style name or style names to be removedSee Also:
HasStyleNames.getStyleName()
,HasStyleNames.setStyleName(String)
,HasStyleNames.addStyleName(String)
-
-