Package com.vaadin.ui

Class AbstractSelect.AcceptItem

    • Constructor Detail

      • AcceptItem

        public AcceptItem​(AbstractSelect select,
                          Object... itemId)
        Parameters:
        select - the select from which the item id's are checked
        itemId - the item identifier(s) of the select that are accepted
    • Method Detail

      • accept

        public boolean accept​(DragAndDropEvent dragEvent)
        Description copied from interface: AcceptCriterion
        Validates the data in event to be appropriate for the DropHandler.drop(DragAndDropEvent) method.

        Note that even if your criterion is validated on client side, you should always validate the data on server side too.

        Returns: