Uses of Class
com.flowingcode.vaadin.addons.togglebutton.ToggleButton
-
Uses of ToggleButton in com.flowingcode.vaadin.addons.togglebutton
Methods in com.flowingcode.vaadin.addons.togglebutton that return ToggleButtonModifier and TypeMethodDescriptionToggleButton.setItemLabelGenerator(ItemLabelGenerator<Boolean> itemLabelGenerator) Sets a generator that provides labels for the checked (true) and unchecked (false) states.ToggleButton.setLeftIcon(Component icon) Sets the icon displayed on the left side of the toggle switch.ToggleButton.setLeftLabel(String label) Sets the label displayed on the left side of the toggle switch.ToggleButton.setRightIcon(Component icon) Sets the icon displayed on the right side of the toggle switch.ToggleButton.setRightLabel(String label) Sets the label displayed on the right side of the toggle switch.ToggleButton.withHighlightLabel()ToggleButton.withIconsInside()Places icons adjacent to the switch and labels on the outer edges, producing the layout[left-label] [left-icon] [switch] [right-icon] [right-label].ToggleButton.withIconsOutside()Restores the default layout where icons are on the outer edges and labels are adjacent to the switch:[left-icon] [left-label] [switch] [right-label] [right-icon].ToggleButton.withoutHighlightLabel()Disables label highlighting so both labels are rendered with the same color regardless of the toggle state.