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-table-element"><table></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="table") 027public class Table extends HtmlElementContainer { 028 029 /** 030 * <a class="doclink" href="https://www.w3.org/TR/html5/tabular-data.html#attr-table-border">border</a> attribute. 031 * 032 * @param border 033 * The new value for this attribute. 034 * Typically a {@link Number} or {@link String}. 035 * @return This object (for method chaining). 036 */ 037 public final Table border(Object border) { 038 attr("border", border); 039 return this; 040 } 041 042 043 //-------------------------------------------------------------------------------- 044 // Overridden methods 045 //-------------------------------------------------------------------------------- 046 047 @Override /* HtmlElement */ 048 public final Table _class(String _class) { 049 super._class(_class); 050 return this; 051 } 052 053 @Override /* HtmlElement */ 054 public final Table id(String id) { 055 super.id(id); 056 return this; 057 } 058 059 @Override /* HtmlElement */ 060 public final Table style(String style) { 061 super.style(style); 062 return this; 063 } 064 065 @Override /* HtmlElementContainer */ 066 public final Table children(Object...children) { 067 super.children(children); 068 return this; 069 } 070 071 @Override /* HtmlElementContainer */ 072 public final Table child(Object child) { 073 super.child(child); 074 return this; 075 } 076}