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 HTML5.forms#the-output-element <output>}
019 * element.
020 *
021 * <h5 class='section'>See Also:</h5>
022 * <ul class='doctree'>
023 *    <li class='link'>{@doc juneau-dto.HTML5}
024 * </ul>
025 */
026@Bean(typeName="output")
027public class Output extends HtmlElementMixed {
028
029   /**
030    * {@doc HTML5.forms#attr-output-for for} attribute.
031    *
032    * <p>
033    * Specifies controls from which the output was calculated.
034    *
035    * @param _for The new value for this attribute.
036    * @return This object (for method chaining).
037    */
038   public final Output _for(String _for) {
039      attr("for", _for);
040      return this;
041   }
042
043   /**
044    * {@doc HTML5.forms#attr-fae-form form} attribute.
045    *
046    * <p>
047    * Associates the control with a form element.
048    *
049    * @param form The new value for this attribute.
050    * @return This object (for method chaining).
051    */
052   public final Output form(String form) {
053      attr("form", form);
054      return this;
055   }
056
057   /**
058    * {@doc HTML5.forms#attr-fe-name name} attribute.
059    *
060    * <p>
061    * Name of form control to use for form submission and in the form.elements API.
062    *
063    * @param name The new value for this attribute.
064    * @return This object (for method chaining).
065    */
066   public final Output name(String name) {
067      attr("name", name);
068      return this;
069   }
070
071
072   //-----------------------------------------------------------------------------------------------------------------
073   // Overridden methods
074   //-----------------------------------------------------------------------------------------------------------------
075
076   @Override /* HtmlElement */
077   public final Output _class(String _class) {
078      super._class(_class);
079      return this;
080   }
081
082   @Override /* HtmlElement */
083   public final Output id(String id) {
084      super.id(id);
085      return this;
086   }
087
088   @Override /* HtmlElement */
089   public final Output style(String style) {
090      super.style(style);
091      return this;
092   }
093
094   @Override /* HtmlElementMixed */
095   public Output children(Object...children) {
096      super.children(children);
097      return this;
098   }
099
100   @Override /* HtmlElementMixed */
101   public Output child(Object child) {
102      super.child(child);
103      return this;
104   }
105}