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/embedded-content-0.html#the-map-element">&lt;map&gt;</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 &gt; juneau-dto &gt; HTML5</a>
024 * </ul>
025 */
026@Bean(typeName="map")
027public class Map extends HtmlElementContainer {
028
029   /**
030    * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-map-name">name</a> attribute.
031    * 
032    * <p>
033    * Name of image map to reference from the usemap attribute.
034    * 
035    * @param name The new value for this attribute.
036    * @return This object (for method chaining).
037    */
038   public final Map name(String name) {
039      attr("name", name);
040      return this;
041   }
042
043
044   //--------------------------------------------------------------------------------
045   // Overridden methods
046   //--------------------------------------------------------------------------------
047
048   @Override /* HtmlElement */
049   public final Map _class(String _class) {
050      super._class(_class);
051      return this;
052   }
053
054   @Override /* HtmlElement */
055   public final Map id(String id) {
056      super.id(id);
057      return this;
058   }
059
060   @Override /* HtmlElement */
061   public final Map style(String style) {
062      super.style(style);
063      return this;
064   }
065
066   @Override /* HtmlElementContainer */
067   public final Map children(Object...children) {
068      super.children(children);
069      return this;
070   }
071
072   @Override /* HtmlElementContainer */
073   public final Map child(Object child) {
074      super.child(child);
075      return this;
076   }
077}