Class NativeSelect

    • Constructor Detail

      • NativeSelect

        public NativeSelect()
        Deprecated.
      • NativeSelect

        public NativeSelect​(java.lang.String caption,
                            java.util.Collection<?> options)
        Deprecated.
      • NativeSelect

        public NativeSelect​(java.lang.String caption,
                            Container dataSource)
        Deprecated.
      • NativeSelect

        public NativeSelect​(java.lang.String caption)
        Deprecated.
    • Method Detail

      • setColumns

        @Deprecated
        public void setColumns​(int columns)
        Deprecated.
        As of 7.0. "Columns" does not reflect the exact number of characters that will be displayed. It is better to use setWidth together with "em" to control the width of the field.
        Sets the width of the component so that it can display approximately the given number of letters.

        Calling setColumns(10); is equivalent to calling setWidth("10em");

        Parameters:
        columns - the number of columns to set.
      • getColumns

        @Deprecated
        public int getColumns()
        Deprecated.
        As of 7.0. "Columns" does not reflect the exact number of characters that will be displayed. It is better to use setWidth together with "em" to control the width of the field.
        Gets the number of columns for the component.
        See Also:
        setColumns(int)
      • paintContent

        public void paintContent​(com.vaadin.server.PaintTarget target)
                          throws com.vaadin.server.PaintException
        Deprecated.
        Description copied from class: AbstractSelect
        Paints the content of this component.
        Specified by:
        paintContent in interface com.vaadin.ui.LegacyComponent
        Overrides:
        paintContent in class AbstractSelect
        Parameters:
        target - the Paint Event.
        Throws:
        com.vaadin.server.PaintException - if the paint operation failed.
      • setMultiSelect

        public void setMultiSelect​(boolean multiSelect)
                            throws java.lang.UnsupportedOperationException
        Deprecated.
        Description copied from class: AbstractSelect
        Sets the multiselect mode. Setting multiselect mode false may lose selection information: if selected items set contains one or more selected items, only one of the selected items is kept as selected. Subclasses of AbstractSelect can choose not to support changing the multiselect mode, and may throw UnsupportedOperationException.
        Overrides:
        setMultiSelect in class AbstractSelect
        Parameters:
        multiSelect - the New value of property multiSelect.
        Throws:
        java.lang.UnsupportedOperationException
      • setNewItemsAllowed

        public void setNewItemsAllowed​(boolean allowNewOptions)
                                throws java.lang.UnsupportedOperationException
        Deprecated.
        Description copied from class: AbstractSelect
        Enables or disables possibility to add new options by the user.
        Overrides:
        setNewItemsAllowed in class AbstractSelect
        Parameters:
        allowNewOptions - the New value of property allowNewOptions.
        Throws:
        java.lang.UnsupportedOperationException
      • addFocusListener

        public void addFocusListener​(com.vaadin.event.FieldEvents.FocusListener listener)
        Deprecated.
        Description copied from interface: FieldEvents.FocusNotifier
        Adds a FocusListener to the Component which gets fired when a Field receives keyboard focus.
        Specified by:
        addFocusListener in interface FieldEvents.FocusNotifier
        See Also:
        FieldEvents.FocusListener
      • addBlurListener

        public void addBlurListener​(com.vaadin.event.FieldEvents.BlurListener listener)
        Deprecated.
        Description copied from interface: FieldEvents.BlurNotifier
        Adds a BlurListener to the Component which gets fired when a Field loses keyboard focus.
        Specified by:
        addBlurListener in interface FieldEvents.BlurNotifier
        See Also:
        FieldEvents.BlurListener
      • removeBlurListener

        public void removeBlurListener​(com.vaadin.event.FieldEvents.BlurListener listener)
        Deprecated.
        Description copied from interface: FieldEvents.BlurNotifier
        Removes a BlurListener from the Component.
        Specified by:
        removeBlurListener in interface FieldEvents.BlurNotifier
        See Also:
        FieldEvents.BlurListener