Package com.vaadin.ui

Class ColorPicker

    • Constructor Detail

      • ColorPicker

        public ColorPicker()
        Instantiates a new color picker.
      • ColorPicker

        public ColorPicker​(java.lang.String popupCaption)
        Instantiates a new color picker.
        Parameters:
        popupCaption - caption of the color select popup
      • ColorPicker

        public ColorPicker​(java.lang.String popupCaption,
                           com.vaadin.shared.ui.colorpicker.Color initialColor)
        Instantiates a new color picker.
        Parameters:
        popupCaption - caption of the color select popup
        initialColor - the initial color
    • Method Detail

      • getState

        protected com.vaadin.shared.ui.colorpicker.ColorPickerState getState()
        Description copied from class: AbstractComponent
        Returns the shared state bean with information to be sent from the server to the client. Subclasses should override this method and set any relevant fields of the state returned by super.getState().
        Overrides:
        getState in class AbstractColorPicker
        Returns:
        updated component shared state
      • getState

        protected com.vaadin.shared.ui.colorpicker.ColorPickerState getState​(boolean markAsDirty)
        Description copied from class: AbstractClientConnector
        Returns the shared state for this connector.
        Overrides:
        getState in class AbstractColorPicker
        Parameters:
        markAsDirty - true if the connector should automatically be marked dirty, false otherwise
        Returns:
        The shared state for this connector. Never null.
        See Also:
        AbstractClientConnector.getState()