001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.dto.html5; 014 015import org.apache.juneau.annotation.*; 016 017/** 018 * DTO for an HTML <a class="doclink" href="https://www.w3.org/TR/html5/forms.html#the-optgroup-element"><optgroup></a> 019 * element. 020 * 021 * <h5 class='section'>See Also:</h5> 022 * <ul class='doctree'> 023 * <li class='link'><a class='doclink' href='../../../../../overview-summary.html#juneau-dto.HTML5'>Overview > juneau-dto > HTML5</a> 024 * </ul> 025 */ 026@Bean(typeName="optgroup") 027public class Optgroup extends HtmlElementContainer { 028 029 /** 030 * <a class="doclink" href="https://www.w3.org/TR/html5/forms.html#attr-optgroup-disabled">disabled</a> attribute. 031 * 032 * <p> 033 * Whether the form control is disabled. 034 * 035 * @param disabled 036 * The new value for this attribute. 037 * Typically a {@link Boolean} or {@link String}. 038 * @return This object (for method chaining). 039 */ 040 public final Optgroup disabled(Object disabled) { 041 attr("disabled", disabled); 042 return this; 043 } 044 045 /** 046 * <a class="doclink" href="https://www.w3.org/TR/html5/forms.html#attr-optgroup-label">label</a> attribute. 047 * 048 * <p> 049 * User-visible label. 050 * 051 * @param label The new value for this attribute. 052 * @return This object (for method chaining). 053 */ 054 public final Optgroup label(String label) { 055 attr("label", label); 056 return this; 057 } 058 059 060 //-------------------------------------------------------------------------------- 061 // Overridden methods 062 //-------------------------------------------------------------------------------- 063 064 @Override /* HtmlElement */ 065 public final Optgroup _class(String _class) { 066 super._class(_class); 067 return this; 068 } 069 070 @Override /* HtmlElement */ 071 public final Optgroup id(String id) { 072 super.id(id); 073 return this; 074 } 075 076 @Override /* HtmlElement */ 077 public final Optgroup style(String style) { 078 super.style(style); 079 return this; 080 } 081 082 @Override /* HtmlElementContainer */ 083 public final Optgroup children(Object...children) { 084 super.children(children); 085 return this; 086 } 087 088 @Override /* HtmlElementContainer */ 089 public final Optgroup child(Object child) { 090 super.child(child); 091 return this; 092 } 093}