Class WCheckBoxSelect

    • Constructor Detail

      • WCheckBoxSelect

        public WCheckBoxSelect()
        Creates an empty WCheckBoxSelect.
      • WCheckBoxSelect

        public WCheckBoxSelect​(Object[] options)
        Creates a WCheckBoxSelect with the specified options.
        Parameters:
        options - the check box options.
      • WCheckBoxSelect

        public WCheckBoxSelect​(List options)
        Creates a WCheckBoxSelect with the specified options.
        Parameters:
        options - the check box options.
      • WCheckBoxSelect

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

      • setButtonLayout

        public void setButtonLayout​(WCheckBoxSelect.Layout layout)
        Sets the layout.
        Parameters:
        layout - the layout.
      • setButtonColumns

        public void setButtonColumns​(int numColumns)
        Sets the layout to be a certain number of columns.
        Parameters:
        numColumns - the number of columns.
      • getButtonColumns

        public int getButtonColumns()
        Returns:
        the number of columns for layout. Only applies to LAYOUT_COLUMNS layout.
      • isFrameless

        public boolean isFrameless()
        Returns:
        true if the frame should not be rendererd.
      • setFrameless

        public void setFrameless​(boolean frameless)
        Parameters:
        frameless - if true, the frame will not be rendered.
      • toggleSelection

        public void toggleSelection​(boolean selected)
        Description copied from interface: SelectionToggleable
        Sets the selections for this component.
        Specified by:
        toggleSelection in interface SelectionToggleable
        Parameters:
        selected - if true, select everything. If false, deselect everything.
      • getOrCreateComponentModel

        protected WCheckBoxSelect.CheckBoxSelectModel 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 AbstractWMultiSelectList
        Returns:
        the model for this component