Class WRadioButtonSelect

    • Constructor Detail

      • WRadioButtonSelect

        public WRadioButtonSelect()
        Creates an empty WRadioButtonSelect.
      • WRadioButtonSelect

        public WRadioButtonSelect​(Object[] options)
        Creates a WRadioButtonSelect with the specified options.
        Parameters:
        options - the radio button options.
      • WRadioButtonSelect

        public WRadioButtonSelect​(List options)
        Creates a WRadioButtonSelect with the specified options.
        Parameters:
        options - the radio button options.
      • WRadioButtonSelect

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

      • setButtonLayout

        public void setButtonLayout​(WRadioButtonSelect.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 rendered.
      • setFrameless

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

        public boolean isAjax()
        Indicates whether this component is AJAX enabled. A list is an AJAX list if it has a target set.
        Overrides:
        isAjax in class AbstractWSelectList
        Returns:
        true if this list is AJAX enabled, false otherwise.
      • setAjaxTarget

        public void setAjaxTarget​(AjaxTarget ajaxTarget)
        Sets the default AJAX target for this list. If a target is supplied, an AJAX request is made rather than a round-trip to the server. The AJAX response will only contain the (possibly updated) target element rather than the entire UI.
        Overrides:
        setAjaxTarget in class AbstractWSelectList
        Parameters:
        ajaxTarget - the AJAX target.
      • getOrCreateComponentModel

        protected WRadioButtonSelect.RadioButtonSelectModel 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 AbstractWSelectList
        Returns:
        the model for this component