com.vaadin.ui.

Class ColorPickerArea

    • Constructor Detail

      • ColorPickerArea

        public ColorPickerArea()

        Instantiates a new color picker.

      • ColorPickerArea

        public ColorPickerArea​(String popupCaption)

        Instantiates a new color picker.

        Parameters:

        popupCaption - caption of the color select popup

      • ColorPickerArea

        public ColorPickerArea​(String popupCaption,
                               Color initialColor)

        Instantiates a new color picker.

        Parameters:

        popupCaption - caption of the color select popup

        initialColor - the initial color

    • Method Detail

      • beforeClientResponse

        public void beforeClientResponse​(boolean initial)

        Description copied from interface: ClientConnector

        Called before the shared state and RPC invocations are sent to the client. Gives the connector an opportunity to set computed/dynamic state values or to invoke last minute RPC methods depending on other component features.

        Specified by:

        beforeClientResponse in interface ClientConnector

        Overrides:

        beforeClientResponse in class AbstractComponent

        Parameters:

        initial - true if the client-side connector will be created and initialized after this method has been invoked. false if there is already an initialized client-side connector.

      • getState

        protected ColorPickerAreaState 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