http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Audio.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Audio.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Audio.java new file mode 100644 index 0000000..5f244ee --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Audio.java @@ -0,0 +1,127 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/embedded-content-0.html#the-audio-element'><audio></a> element. + * <p> + */ +@Bean(typeName="audio") +public class Audio extends HtmlElementEmpty { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-autoplay'>autoplay</a> attribute. + * Hint that the media resource can be started automatically when the page is loaded. + * @param autoplay - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Audio autoplay(String autoplay) { + attrs.put("autoplay", autoplay); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-controls'>controls</a> attribute. + * Show user agent controls. + * @param controls - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Audio controls(String controls) { + attrs.put("controls", controls); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-crossorigin'>crossorigin</a> attribute. + * How the element handles crossorigin requests. + * @param crossorigin - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Audio crossorigin(String crossorigin) { + attrs.put("crossorigin", crossorigin); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-loop'>loop</a> attribute. + * Whether to loop the media resource. + * @param loop - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Audio loop(String loop) { + attrs.put("loop", loop); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-mediagroup'>mediagroup</a> attribute. + * Groups media elements together with an implicit MediaController. + * @param mediagroup - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Audio mediagroup(String mediagroup) { + attrs.put("mediagroup", mediagroup); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-muted'>muted</a> attribute. + * Whether to mute the media resource by default. + * @param muted - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Audio muted(String muted) { + attrs.put("muted", muted); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-preload'>preload</a> attribute. + * Hints how much buffering the media resource will likely need. + * @param preload - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Audio preload(String preload) { + attrs.put("preload", preload); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-src'>src</a> attribute. + * Address of the resource. + * @param src - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Audio src(String src) { + attrs.put("src", src); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Audio _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Audio id(String id) { + super.id(id); + return this; + } +}
http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/B.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/B.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/B.java new file mode 100644 index 0000000..03bf02b --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/B.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-b-element'><b></a> element. + * <p> + */ +@Bean(typeName="b") +@SuppressWarnings("hiding") +public class B extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final B _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final B id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public B children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public B child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Base.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Base.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Base.java new file mode 100644 index 0000000..c85c2c0 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Base.java @@ -0,0 +1,61 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/document-metadata.html#the-base-element'><base></a> element. + * <p> + */ +@Bean(typeName="base") +public class Base extends HtmlElementEmpty { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/document-metadata.html#attr-base-href'>href</a> attribute. + * Document base URL. + * @param href - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Base href(String href) { + attrs.put("href", href); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/document-metadata.html#attr-base-target'>target</a> attribute. + * Default browsing context for hyperlink navigation and form submission. + * @param target - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Base target(String target) { + attrs.put("target", target); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Base _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Base id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Bdi.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Bdi.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Bdi.java new file mode 100644 index 0000000..901da66 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Bdi.java @@ -0,0 +1,45 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-bdi-element'><bdi></a> element. + * <p> + */ +@Bean(typeName="bdi") +public class Bdi extends HtmlElementText { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Bdi _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Bdi id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementText */ + public Bdi text(Object text) { + super.text(text); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Bdo.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Bdo.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Bdo.java new file mode 100644 index 0000000..b462628 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Bdo.java @@ -0,0 +1,58 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-bdo-element'><bdo></a> element. + * <p> + */ +@Bean(typeName="bdo") +@SuppressWarnings("hiding") +public class Bdo extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Bdo _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public Bdo dir(String dir) { + super.dir(dir); + return this; + } + + @Override /* HtmlElement */ + public final Bdo id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Bdo children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Bdo child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Blockquote.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Blockquote.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Blockquote.java new file mode 100644 index 0000000..baa02c9 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Blockquote.java @@ -0,0 +1,63 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/grouping-content.html#the-blockquote-element'><blockquote></a> element. + * <p> + */ +@Bean(typeName="blockquote") +@SuppressWarnings("hiding") +public class Blockquote extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/grouping-content.html#attr-blockquote-cite'>cite</a> attribute. + * Link to the source of the quotation.. + * @param cite - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Blockquote cite(String cite) { + attrs.put("cite", cite); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Blockquote _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Blockquote id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Blockquote children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Blockquote child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Body.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Body.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Body.java new file mode 100644 index 0000000..2eaad5a --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Body.java @@ -0,0 +1,118 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/sections.html#the-body-element'><body></a> element. + * <p> + */ +@Bean(typeName="body") +@SuppressWarnings("hiding") +public class Body extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/webappapis.html#handler-window-onafterprint'>onafterprint</a> attribute. + * //onbeforeprint https://www.w3.org/TR/html5/webappapis.html#handler-window-onbeforeprint. + * @param onafterprint - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Body onafterprint(String onafterprint) { + attrs.put("onafterprint", onafterprint); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/webappapis.html#handler-window-onbeforeunload'>onbeforeunload</a> attribute. + * //onhashchange https://www.w3.org/TR/html5/webappapis.html#handler-window-onhashchange. + * @param onbeforeunload - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Body onbeforeunload(String onbeforeunload) { + attrs.put("onbeforeunload", onbeforeunload); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/webappapis.html#handler-window-onmessage'>onmessage</a> attribute. + * //onoffline https://www.w3.org/TR/html5/webappapis.html#handler-window-onoffline. + * @param onmessage - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Body onmessage(String onmessage) { + attrs.put("onmessage", onmessage); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/webappapis.html#handler-window-ononline'>ononline</a> attribute. + * //onpagehide https://www.w3.org/TR/html5/webappapis.html#handler-window-onpagehide. + * @param ononline - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Body ononline(String ononline) { + attrs.put("ononline", ononline); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/webappapis.html#handler-window-onpageshow'>onpageshow</a> attribute. + * //onpopstate https://www.w3.org/TR/html5/webappapis.html#handler-window-onpopstate. + * @param onpageshow - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Body onpageshow(String onpageshow) { + attrs.put("onpageshow", onpageshow); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/webappapis.html#handler-window-onstorage'>onstorage</a> attribute. + * //onunload https://www.w3.org/TR/html5/webappapis.html#handler-window-onunload. + * @param onstorage - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Body onstorage(String onstorage) { + attrs.put("onstorage", onstorage); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Body _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Body id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Body children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Body child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Br.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Br.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Br.java new file mode 100644 index 0000000..03a8fea --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Br.java @@ -0,0 +1,39 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-br-element'><br></a> element. + * <p> + */ +@Bean(typeName="br") +public class Br extends HtmlElementEmpty { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Br _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Br id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Button.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Button.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Button.java new file mode 100644 index 0000000..8974a85 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Button.java @@ -0,0 +1,184 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/forms.html#the-button-element'><button></a> element. + * <p> + */ +@Bean(typeName="button") +@SuppressWarnings("hiding") +public class Button extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fe-autofocus'>autofocus</a> attribute. + * Automatically focus the form control when the page is loaded. + * @param autofocus - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button autofocus(String autofocus) { + attrs.put("autofocus", autofocus); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fe-disabled'>disabled</a> attribute. + * Whether the form control is disabled. + * @param disabled - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button disabled(String disabled) { + attrs.put("disabled", disabled); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fae-form'>form</a> attribute. + * Associates the control with a form element. + * @param form - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button form(String form) { + attrs.put("form", form); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-formaction'>formaction</a> attribute. + * URL to use for form submission. + * @param formaction - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button formaction(String formaction) { + attrs.put("formaction", formaction); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-formenctype'>formenctype</a> attribute. + * Form data set encoding type to use for form submission. + * @param formenctype - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button formenctype(String formenctype) { + attrs.put("formenctype", formenctype); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-formmethod'>formmethod</a> attribute. + * HTTP method to use for form submission. + * @param formmethod - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button formmethod(String formmethod) { + attrs.put("formmethod", formmethod); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-formnovalidate'>formnovalidate</a> attribute. + * Bypass form control validation for form submission. + * @param formnovalidate - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button formnovalidate(String formnovalidate) { + attrs.put("formnovalidate", formnovalidate); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-formtarget'>formtarget</a> attribute. + * Browsing context for form submission. + * @param formtarget - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button formtarget(String formtarget) { + attrs.put("formtarget", formtarget); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-menu'>menu</a> attribute. + * Specifies the element's designated pop-up menu. + * @param menu - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button menu(String menu) { + attrs.put("menu", menu); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fe-name'>name</a> attribute. + * Name of form control to use for form submission and in the form.elements API. + * @param name - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button name(String name) { + attrs.put("name", name); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-button-type'>type</a> attribute. + * Type of button. + * @param type - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button type(String type) { + attrs.put("type", type); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-button-value'>value</a> attribute. + * Value to be used for form submission. + * @param value - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Button value(String value) { + attrs.put("value", value); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Button _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Button id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Button children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Button child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Canvas.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Canvas.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Canvas.java new file mode 100644 index 0000000..21db9dd --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Canvas.java @@ -0,0 +1,61 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/scripting-1.html#the-canvas-element'><canvas></a> element. + * <p> + */ +@Bean(typeName="canvas") +public class Canvas extends HtmlElementContainer { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/scripting-1.html#attr-canvas-height'>height</a> attribute. + * Vertical dimension. + * @param height - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Canvas height(long height) { + attrs.put("height", height); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/scripting-1.html#attr-canvas-width'>width</a> attribute. + * Horizontal dimension. + * @param width - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Canvas width(long width) { + attrs.put("width", width); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Canvas _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Canvas id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Caption.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Caption.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Caption.java new file mode 100644 index 0000000..1b7b9d8 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Caption.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-caption-element'><caption></a> element. + * <p> + */ +@Bean(typeName="caption") +@SuppressWarnings("hiding") +public class Caption extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Caption _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Caption id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Caption children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Caption child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Cite.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Cite.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Cite.java new file mode 100644 index 0000000..00245eb --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Cite.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-cite-element'><cite></a> element. + * <p> + */ +@Bean(typeName="cite") +@SuppressWarnings("hiding") +public class Cite extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Cite _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Cite id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Cite children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Cite child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Code.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Code.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Code.java new file mode 100644 index 0000000..af5cc19 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Code.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-code-element'><code></a> element. + * <p> + */ +@Bean(typeName="code") +@SuppressWarnings("hiding") +public class Code extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Code _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Code id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Code children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Code child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Col.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Col.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Col.java new file mode 100644 index 0000000..94502c2 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Col.java @@ -0,0 +1,50 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-col-element'><col></a> element. + * <p> + */ +@Bean(typeName="col") +public class Col extends HtmlElementEmpty { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-col-span'>span</a> attribute. + * Number of columns spanned by the element. + * @param span - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Col span(long span) { + attrs.put("span", span); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Col _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Col id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Colgroup.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Colgroup.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Colgroup.java new file mode 100644 index 0000000..b404ca4 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Colgroup.java @@ -0,0 +1,57 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-colgroup-element'><colgroup></a> element. + * <p> + */ +@Bean(typeName="colgroup") +@SuppressWarnings("hiding") +public class Colgroup extends HtmlElementContainer { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-colgroup-span'>span</a> attribute. + * Number of columns spanned by the element. + * @param span - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Colgroup span(long span) { + attrs.put("span", span); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Colgroup children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Colgroup _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Colgroup id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Data.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Data.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Data.java new file mode 100644 index 0000000..5f7de70 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Data.java @@ -0,0 +1,63 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-data-element'><data></a> element. + * <p> + */ +@Bean(typeName="data") +@SuppressWarnings("hiding") +public class Data extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/text-level-semantics.html#attr-data-value'>value</a> attribute. + * Machine-readable value. + * @param value - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Data value(String value) { + attrs.put("value", value); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Data _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Data id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Data children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Data child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Datalist.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Datalist.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Datalist.java new file mode 100644 index 0000000..1034344 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Datalist.java @@ -0,0 +1,46 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/forms.html#the-datalist-element'><datalist></a> element. + * <p> + */ +@Bean(typeName="datalist") +@SuppressWarnings("hiding") +public class Datalist extends HtmlElementContainer { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Datalist children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Datalist _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Datalist id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dd.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dd.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dd.java new file mode 100644 index 0000000..a86567e --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dd.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/grouping-content.html#the-dd-element'><dd></a> element. + * <p> + */ +@Bean(typeName="dd") +@SuppressWarnings("hiding") +public class Dd extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Dd _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Dd id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Dd children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Dd child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Del.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Del.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Del.java new file mode 100644 index 0000000..4037fff --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Del.java @@ -0,0 +1,74 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/edits.html#the-del-element'><del></a> element. + * <p> + */ +@Bean(typeName="del") +@SuppressWarnings("hiding") +public class Del extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/edits.html#attr-mod-cite'>cite</a> attribute. + * Link to the source of the quotation or more information about the edit. + * @param cite - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Del cite(String cite) { + attrs.put("cite", cite); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/edits.html#attr-mod-datetime'>datetime</a> attribute. + * Date and (optionally) time of the change. + * @param datetime - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Del datetime(String datetime) { + attrs.put("datetime", datetime); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Del _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Del id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Del children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Del child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dfn.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dfn.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dfn.java new file mode 100644 index 0000000..baa4b97 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dfn.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-dfn-element'><dfn></a> element. + * <p> + */ +@Bean(typeName="dfn") +@SuppressWarnings("hiding") +public class Dfn extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Dfn _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Dfn id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Dfn children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Dfn child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Div.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Div.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Div.java new file mode 100644 index 0000000..7c58a77 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Div.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/grouping-content.html#the-div-element'><div></a> element. + * <p> + */ +@Bean(typeName="div") +@SuppressWarnings("hiding") +public class Div extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Div _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Div id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Div children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Div child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dl.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dl.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dl.java new file mode 100644 index 0000000..607d1bc --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dl.java @@ -0,0 +1,46 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/grouping-content.html#the-dl-element'><dl></a> element. + * <p> + */ +@Bean(typeName="dl") +@SuppressWarnings("hiding") +public class Dl extends HtmlElementContainer { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Dl children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Dl _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Dl id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dt.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dt.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dt.java new file mode 100644 index 0000000..1ef264e --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Dt.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/grouping-content.html#the-dt-element'><dt></a> element. + * <p> + */ +@Bean(typeName="dt") +@SuppressWarnings("hiding") +public class Dt extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Dt _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Dt id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Dt children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Dt child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Em.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Em.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Em.java new file mode 100644 index 0000000..07934ef --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Em.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-em-element'><em></a> element. + * <p> + */ +@Bean(typeName="em") +@SuppressWarnings("hiding") +public class Em extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Em _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Em id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Em children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Em child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Embed.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Embed.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Embed.java new file mode 100644 index 0000000..f37975b --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Embed.java @@ -0,0 +1,83 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/embedded-content-0.html#the-embed-element'><embed></a> element. + * <p> + */ +@Bean(typeName="embed") +public class Embed extends HtmlElementEmpty { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-height'>height</a> attribute. + * Vertical dimension. + * @param height - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Embed height(String height) { + attrs.put("height", height); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-embed-src'>src</a> attribute. + * Address of the resource. + * @param src - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Embed src(String src) { + attrs.put("src", src); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-embed-type'>type</a> attribute. + * Type of embedded resource. + * @param type - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Embed type(String type) { + attrs.put("type", type); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-width'>width</a> attribute. + * Horizontal dimension. + * @param width - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Embed width(String width) { + attrs.put("width", width); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Embed _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Embed id(String id) { + super.id(id); + return this; + } +}
