javax.faces.model

Class SelectItemGroup

  • All Implemented Interfaces:
    Serializable

    public class SelectItemGroup
    extends SelectItem

    SelectItemGroup is a subclass of SelectItem that identifies a set of options that will be made available as a subordinate "submenu" or "options list", depending upon the requirements of the UISelectMany or UISelectOne renderer that is actually used. In general, the value property of this instance will be ignored, and the label property of this instance will be used to label the submenu.

    Although it is feasible to incorporate SelectItemGroup instances in he selectItems property of this instance (thereby creating a data structure suitable for cascading submenus), some renderers may place restrictions on the level of nesting they support. For example, HTML based renderers that create an <select> element will typically render this instance as an <optgroup> element, but the HTML 4.01 Specification disallows nested option groups.

    See Also:
    Serialized Form
    • Constructor Detail

      • SelectItemGroup

        public SelectItemGroup()

        Construct a SelectItemGroup with no initialized property values.

      • SelectItemGroup

        public SelectItemGroup(String label)

        Construct a SelectItemGroup with the specified label and no associated selectItems. The value property will be set to a zero-length String, the description property will be set to null, and the disabled property will be set to false.

        Parameters:
        label - Label to be rendered for this group in the response
        Throws:
        NullPointerException - if label is false
      • SelectItemGroup

        public SelectItemGroup(String label,
                               String description,
                               boolean disabled,
                               SelectItem[] selectItems)

        Construct a SelectItemGroup with the specified properties. The value property will be set to a zero-length String.

        Parameters:
        label - Label to be rendered for this group in the response
        description - Description of this group, for use in tools
        disabled - Flag indicating that this group is disabled
        selectItems - Array of SelectItem describing the items available in this group
        Throws:
        NullPointerException - if label or selectItems is false
    • Method Detail

      • getSelectItems

        public SelectItem[] getSelectItems()

        Return the set of subordinate SelectItems for this group.

      • setSelectItems

        public void setSelectItems(SelectItem[] selectItems)

        Set the set of subordinate SelectItems for this group.

        Parameters:
        selectItems - The new set of subordinate items
        Throws:
        NullPointerException - if selectItems is null

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/faces/model/selectitemgroup.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.