Class WMultiDropdown

    • Constructor Detail

      • WMultiDropdown

        public WMultiDropdown()
        Creates an empty WMultiDropdown.
      • WMultiDropdown

        public WMultiDropdown​(List aList)
        Creates a WMultiDropdown with the specified list of options.
        Parameters:
        aList - the list of available options.
      • WMultiDropdown

        public WMultiDropdown​(Object[] options)
        Creates a WMultiDropdown with the specified list of options.
        Parameters:
        options - the list of available options.
      • WMultiDropdown

        public WMultiDropdown​(Object table)
        Creates a WMultiDropdown with the options provided by the given table.
        Parameters:
        table - the table to obtain the list's options from.
    • Method Detail

      • setMaxInputs

        @Deprecated
        public void setMaxInputs​(int maxInputs)
        Sets the maximum allowable number of inputs.
        Parameters:
        maxInputs - the maximum allowable number of inputs, or <=0 for unlimited inputs.
      • getNewSelections

        protected List getNewSelections​(Request request)
        Override getNewSelections to ensure that the max number of inputs is honoured and that there are no duplicates. This should not normally occur, as the client side js should prevent it.
        Overrides:
        getNewSelections in class AbstractWMultiSelectList
        Parameters:
        request - the current request
        Returns:
        a list of selections that have been added in the given request.