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-progress-element <progress>}
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="progress")
027public class Progress extends HtmlElementMixed {
028
029   /**
030    * {@doc HTML5.forms#attr-progress-max max} attribute.
031    *
032    * <p>
033    * Upper bound of range.
034    *
035    * @param max
036    *    The new value for this attribute.
037    *    Typically a {@link Number} or {@link String}.
038    * @return This object (for method chaining).
039    */
040   public final Progress max(Object max) {
041      attr("max", max);
042      return this;
043   }
044
045   /**
046    * {@doc HTML5.forms#attr-progress-value value} attribute.
047    *
048    * <p>
049    * Current value of the element.
050    *
051    * @param value
052    *    The new value for this attribute.
053    *    Typically a {@link Number} or {@link String}.
054    * @return This object (for method chaining).
055    */
056   public final Progress value(Object value) {
057      attr("value", value);
058      return this;
059   }
060
061
062   //-----------------------------------------------------------------------------------------------------------------
063   // Overridden methods
064   //-----------------------------------------------------------------------------------------------------------------
065
066   @Override /* HtmlElement */
067   public final Progress _class(String _class) {
068      super._class(_class);
069      return this;
070   }
071
072   @Override /* HtmlElement */
073   public final Progress id(String id) {
074      super.id(id);
075      return this;
076   }
077
078   @Override /* HtmlElement */
079   public final Progress style(String style) {
080      super.style(style);
081      return this;
082   }
083
084   @Override /* HtmlElementMixed */
085   public Progress children(Object...children) {
086      super.children(children);
087      return this;
088   }
089
090   @Override /* HtmlElementMixed */
091   public Progress child(Object child) {
092      super.child(child);
093      return this;
094   }
095}