Class DrawerToggle

    • Constructor Detail

      • DrawerToggle

        public DrawerToggle()
    • Method Detail

      • setIcon

        public void setIcon​(Component icon)
        Description copied from class: Button
        Sets the given component as the icon of this button.

        Even though you can use almost any component as an icon, some good options are Icon and Image.

        Use Button.setIconAfterText(boolean) to change the icon's position relative to the button's text content.

        This method also sets or removes this button's theme=icon attribute based on whether this button contains only an icon after this operation or not.

        Overrides:
        setIcon in class Button
        Parameters:
        icon - component to be used as an icon, may be null to only remove the current icon, can't be a text-node