Package com.vaadin.ui

Class CheckBox

    • Constructor Detail

      • CheckBox

        public CheckBox()
        Creates a new checkbox.
      • CheckBox

        public CheckBox​(String caption)
        Creates a new checkbox with a set caption.
        Parameters:
        caption - the Checkbox caption.
      • CheckBox

        public CheckBox​(String caption,
                        boolean initialState)
        Creates a new checkbox with a caption and a set initial state.
        Parameters:
        caption - the caption of the checkbox
        initialState - the initial state of the checkbox
      • CheckBox

        public CheckBox​(String caption,
                        Property<?> dataSource)
        Creates a new checkbox that is connected to a boolean property.
        Parameters:
        state - the Initial state of the switch-button.
        dataSource -