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/grouping-content.html#the-ol-element"><ol></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="ol") 027public class Ol extends HtmlElementContainer { 028 029 /** 030 * <a class="doclink" href="https://www.w3.org/TR/html5/grouping-content.html#attr-ol-reversed">reversed</a> 031 * attribute. 032 * 033 * <p> 034 * Number the list backwards.. 035 * 036 * @param reversed 037 * The new value for this attribute. 038 * Typically a {@link Boolean} or {@link String}. 039 * @return This object (for method chaining). 040 */ 041 public final Ol reversed(Object reversed) { 042 attr("reversed", reversed); 043 return this; 044 } 045 046 /** 047 * <a class="doclink" href="https://www.w3.org/TR/html5/grouping-content.html#attr-ol-start">start</a> attribute. 048 * 049 * <p> 050 * Ordinal value of the first item. 051 * 052 * @param start 053 * The new value for this attribute. 054 * Typically a {@link Number} or {@link String}. 055 * @return This object (for method chaining). 056 */ 057 public final Ol start(Object start) { 058 attr("start", start); 059 return this; 060 } 061 062 /** 063 * <a class="doclink" href="https://www.w3.org/TR/html5/grouping-content.html#attr-ol-type">type</a> attribute. 064 * 065 * <p> 066 * Kind of list marker. 067 * 068 * @param type The new value for this attribute. 069 * @return This object (for method chaining). 070 */ 071 public final Ol type(String type) { 072 attr("type", type); 073 return this; 074 } 075 076 077 //-------------------------------------------------------------------------------- 078 // Overridden methods 079 //-------------------------------------------------------------------------------- 080 081 @Override /* HtmlElement */ 082 public final Ol _class(String _class) { 083 super._class(_class); 084 return this; 085 } 086 087 @Override /* HtmlElement */ 088 public final Ol id(String id) { 089 super.id(id); 090 return this; 091 } 092 093 @Override /* HtmlElement */ 094 public final Ol style(String style) { 095 super.style(style); 096 return this; 097 } 098 099 @Override /* HtmlElementContainer */ 100 public final Ol children(Object...children) { 101 super.children(children); 102 return this; 103 } 104 105 @Override /* HtmlElementContainer */ 106 public final Ol child(Object child) { 107 super.child(child); 108 return this; 109 } 110}