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/tabular-data.html#the-col-element">&lt;col&gt;</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 &gt; juneau-dto &gt; HTML5</a>
024 * </ul>
025 */
026@Bean(typeName="col")
027public class Col extends HtmlElementVoid {
028
029   /**
030    * <a class="doclink" href="https://www.w3.org/TR/html5/tabular-data.html#attr-col-span">span</a> attribute.
031    * 
032    * <p>
033    * Number of columns spanned by the element.
034    * 
035    * @param span
036    *    The new value for this attribute.
037    *    Typically a {@link Number} or {@link String}.
038    * @return This object (for method chaining).
039    */
040   public final Col span(Object span) {
041      attr("span", span);
042      return this;
043   }
044
045
046   //--------------------------------------------------------------------------------
047   // Overridden methods
048   //--------------------------------------------------------------------------------
049
050   @Override /* HtmlElement */
051   public final Col _class(String _class) {
052      super._class(_class);
053      return this;
054   }
055
056   @Override /* HtmlElement */
057   public final Col id(String id) {
058      super.id(id);
059      return this;
060   }
061
062   @Override /* HtmlElement */
063   public final Col style(String style) {
064      super.style(style);
065      return this;
066   }
067}