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/document-metadata.html#the-style-element"><style></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="style") 027public class Style extends HtmlElementRawText { 028 029 /** 030 * <a class="doclink" href="https://www.w3.org/TR/html5/document-metadata.html#attr-style-media">media</a> attribute. 031 * 032 * <p> 033 * Applicable media. 034 * 035 * @param media The new value for this attribute. 036 * @return This object (for method chaining). 037 */ 038 public final Style media(String media) { 039 attr("media", media); 040 return this; 041 } 042 043 /** 044 * <a class="doclink" href="https://www.w3.org/TR/html5/document-metadata.html#attr-style-type">type</a> attribute. 045 * 046 * <p> 047 * Type of embedded resource. 048 * 049 * @param type The new value for this attribute. 050 * @return This object (for method chaining). 051 */ 052 public final Style type(String type) { 053 attr("type", type); 054 return this; 055 } 056 057 058 //-------------------------------------------------------------------------------- 059 // Overridden methods 060 //-------------------------------------------------------------------------------- 061 062 @Override /* HtmlElement */ 063 public final Style _class(String _class) { 064 super._class(_class); 065 return this; 066 } 067 068 @Override /* HtmlElement */ 069 public final Style style(String style) { 070 super.style(style); 071 return this; 072 } 073 074 @Override /* HtmlElement */ 075 public final Style id(String id) { 076 super.id(id); 077 return this; 078 } 079 080 @Override /* HtmlElementText */ 081 public final Style text(Object text) { 082 super.text(text); 083 return this; 084 } 085}