com.vaadin.client.ui.combobox.

Class ComboBoxConnector

    • Constructor Detail

      • ComboBoxConnector

        public ComboBoxConnector()
    • Method Detail

      • init

        protected void init()

        Description copied from class: AbstractConnector

        Called when the connector has been initialized. Override this method to perform initialization of the connector.

        Overrides:

        init in class AbstractConnector

      • sendNewItem

        public void sendNewItem​(String itemValue)

        Send a message about a newly created item to the server. This method is for internal use only and may be removed in future versions.

        Parameters:

        itemValue - user entered string value for the new item

        Since:

        8.0

      • setFilter

        protected void setFilter​(String filter)

        Send a message to the server set the current filter. This method is for internal use only and may be removed in future versions.

        Parameters:

        filter - the current filter string

        Since:

        8.0

      • requestPage

        public void requestPage​(int page,
                                String filter)

        Send a message to the server to request a page of items with the current filter. This method is for internal use only and may be removed in future versions.

        Parameters:

        page - the page number to get or -1 to let the server/connector decide based on current selection (possibly loading more data from the server)

        filter - the filter to apply, never null

        Since:

        8.0

      • sendSelection

        public void sendSelection​(String selectionKey)

        Send a message to the server updating the current selection. This method is for internal use only and may be removed in future versions.

        Parameters:

        selectionKey - the current selected item key

        Since:

        8.0

      • sendFocusEvent

        public void sendFocusEvent()

        Notify the server that the combo box received focus. For timing reasons, ConnectorFocusAndBlurHandler is not used at the moment. This method is for internal use only and may be removed in future versions.

        Since:

        8.0

      • sendBlurEvent

        public void sendBlurEvent()

        Notify the server that the combo box lost focus. For timing reasons, ConnectorFocusAndBlurHandler is not used at the moment. This method is for internal use only and may be removed in future versions.

        Since:

        8.0

      • clearNewItemHandlingIfMatch

        public void clearNewItemHandlingIfMatch​(String value)

        Clears the new item handling variables if the given value matches the pending value. This method is for internal use only and may be removed in future versions.

        Parameters:

        value - already handled value