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.grouping-content#the-ol-element <ol>} 019 * element. 020 * 021 * <ul class='seealso'> 022 * <li class='link'>{@doc DtoHtml5} 023 * </ul> 024 */ 025@Bean(typeName="ol") 026public class Ol extends HtmlElementContainer { 027 028 /** 029 * Creates an empty {@link Ol} element. 030 */ 031 public Ol() {} 032 033 /** 034 * Creates an {@link Ol} element with the specified child nodes. 035 * 036 * @param children The child nodes. 037 */ 038 public Ol(Object...children) { 039 children(children); 040 } 041 042 /** 043 * {@doc ExtHTML5.grouping-content#attr-ol-reversed reversed} 044 * attribute. 045 * 046 * <p> 047 * Number the list backwards.. 048 * 049 * @param reversed 050 * The new value for this attribute. 051 * Typically a {@link Boolean} or {@link String}. 052 * @return This object (for method chaining). 053 */ 054 public final Ol reversed(Object reversed) { 055 attr("reversed", deminimize(reversed, "reversed")); 056 return this; 057 } 058 059 /** 060 * {@doc ExtHTML5.grouping-content#attr-ol-start start} attribute. 061 * 062 * <p> 063 * Ordinal value of the first item. 064 * 065 * @param start 066 * The new value for this attribute. 067 * Typically a {@link Number} or {@link String}. 068 * @return This object (for method chaining). 069 */ 070 public final Ol start(Object start) { 071 attr("start", start); 072 return this; 073 } 074 075 /** 076 * {@doc ExtHTML5.grouping-content#attr-ol-type type} attribute. 077 * 078 * <p> 079 * Kind of list marker. 080 * 081 * @param type The new value for this attribute. 082 * @return This object (for method chaining). 083 */ 084 public final Ol type(String type) { 085 attr("type", type); 086 return this; 087 } 088 089 090 //----------------------------------------------------------------------------------------------------------------- 091 // Overridden methods 092 //----------------------------------------------------------------------------------------------------------------- 093 094 @Override /* HtmlElement */ 095 public final Ol _class(String _class) { 096 super._class(_class); 097 return this; 098 } 099 100 @Override /* HtmlElement */ 101 public final Ol id(String id) { 102 super.id(id); 103 return this; 104 } 105 106 @Override /* HtmlElement */ 107 public final Ol style(String style) { 108 super.style(style); 109 return this; 110 } 111 112 @Override /* HtmlElementContainer */ 113 public final Ol children(Object...children) { 114 super.children(children); 115 return this; 116 } 117 118 @Override /* HtmlElementContainer */ 119 public final Ol child(Object child) { 120 super.child(child); 121 return this; 122 } 123}