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 {@doc ExtHTML5.tabular-data#the-colgroup-element <colgroup>} 019 * element. 020 * 021 * <ul class='seealso'> 022 * <li class='link'>{@doc DtoHtml5} 023 * </ul> 024 */ 025@Bean(typeName="colgroup") 026public class Colgroup extends HtmlElementContainer { 027 028 /** 029 * Creates an empty {@link Colgroup} element. 030 */ 031 public Colgroup() {} 032 033 /** 034 * Creates a {@link Colgroup} element with the specified child nodes. 035 * 036 * @param children The child nodes. 037 */ 038 public Colgroup(Object...children) { 039 children(children); 040 } 041 042 /** 043 * {@doc ExtHTML5.tabular-data#attr-colgroup-span span} attribute. 044 * 045 * <p> 046 * Number of columns spanned by the element. 047 * 048 * @param span 049 * The new value for this attribute. 050 * Typically a {@link Number} or {@link String}. 051 * @return This object (for method chaining). 052 */ 053 public final Colgroup span(Object span) { 054 attr("span", span); 055 return this; 056 } 057 058 059 //----------------------------------------------------------------------------------------------------------------- 060 // Overridden methods 061 //----------------------------------------------------------------------------------------------------------------- 062 063 @Override /* HtmlElement */ 064 public final Colgroup _class(String _class) { 065 super._class(_class); 066 return this; 067 } 068 069 @Override /* HtmlElement */ 070 public final Colgroup id(String id) { 071 super.id(id); 072 return this; 073 } 074 075 @Override /* HtmlElement */ 076 public final Colgroup style(String style) { 077 super.style(style); 078 return this; 079 } 080 081 @Override /* HtmlElementContainer */ 082 public final Colgroup children(Object...children) { 083 super.children(children); 084 return this; 085 } 086 087 @Override /* HtmlElementContainer */ 088 public final Colgroup child(Object child) { 089 super.child(child); 090 return this; 091 } 092}