Class WMultiSelectPair

    • Field Detail

      • DEFAULT_ROWS

        public static final int DEFAULT_ROWS
        The default number of rows to display in the list boxes.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WMultiSelectPair

        public WMultiSelectPair()
        Creates an empty WMultiSelectPair.
      • WMultiSelectPair

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

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

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

      • getAvailableListName

        public String getAvailableListName()
        Returns:
        Returns the available list name.
      • setAvailableListName

        public void setAvailableListName​(String availableListName)
        Sets the available list name.
        Parameters:
        availableListName - The availableListName to set.
      • getSelectedListName

        public String getSelectedListName()
        Returns:
        Returns the selectedListName.
      • setSelectedListName

        public void setSelectedListName​(String selectedListName)
        Sets the selected list name.
        Parameters:
        selectedListName - The selectedListName to set.
      • isShuffle

        public boolean isShuffle()
        Indicates whether options in the selection list can be re-ordered (shuffled). The default value is false (no shuffle).
        Returns:
        true if shuffle is enabled, false otherwise.
      • setShuffle

        public void setShuffle​(boolean shuffle)
        Sets whether options in the selection list can be re-ordered (shuffled).
        Parameters:
        shuffle - true if shuffle is enabled, false otherwise.
      • isSelectionOrderable

        protected boolean isSelectionOrderable()
        Override to return true if shuffle is enabled.
        Overrides:
        isSelectionOrderable in class AbstractWSelectList
        Returns:
        true if shuffle is enabled, false otherwise.
      • getOrCreateComponentModel

        protected WMultiSelectPair.MultiSelectPairModel getOrCreateComponentModel()
        Retrieves the model for this component so that it can be modified. If this method is called during request processing, and a session specific model does not yet exist, then a new model is created. Subclasses may override this method to narrow the return type to their specific model type.
        Overrides:
        getOrCreateComponentModel in class WMultiSelect
        Returns:
        the model for this component