Class CheckBoxSelector

    • Constructor Detail

      • CheckBoxSelector

        public CheckBoxSelector​(java.lang.String id)
        Parameters:
        id - The component ID
        See Also:
        getCheckBoxes()
      • CheckBoxSelector

        public CheckBoxSelector​(java.lang.String id,
                                CheckBox... boxes)
        Parameters:
        id - The component ID
        boxes - checkBoxes this selector will control
    • Method Detail

      • getFindCheckboxesFunction

        protected java.lang.CharSequence getFindCheckboxesFunction()
        Description copied from class: AbstractCheckSelector
        Concrete subclasses must override this to provide a Javascript function that returns the IDs of all checkboxes that should be controlled by this selector.
        Specified by:
        getFindCheckboxesFunction in class AbstractCheckSelector
        Returns:
        a String containing a Javascript expression that evaluates to a function(!). This function must return an array containing the IDs of all checkbox input elements that this selector should control.
      • getCheckBoxes

        protected java.lang.Iterable<? extends CheckBox> getCheckBoxes()
        Override this method to control a dynamic collection of CheckBoxes.
        Returns:
        by default returns the checkBoxes passed to the constructor
      • collectCheckBoxes

        public static final java.lang.Iterable<CheckBox> collectCheckBoxes​(WebMarkupContainer container)
        Utility method to collect all CheckBoxes inside a container.
        Parameters:
        container - container with checkBoxes
        Returns:
        all contained checkBoxes