http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Optgroup.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Optgroup.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Optgroup.java new file mode 100644 index 0000000..e8a8680 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Optgroup.java @@ -0,0 +1,68 @@ +// *************************************************************************************************************************** +// * 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-optgroup-element'><optgroup></a> element. + * <p> + */ +@Bean(typeName="optgroup") +@SuppressWarnings("hiding") +public class Optgroup extends HtmlElementContainer { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-optgroup-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 Optgroup disabled(String disabled) { + attrs.put("disabled", disabled); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-optgroup-label'>label</a> attribute. + * User-visible label. + * @param label - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Optgroup label(String label) { + attrs.put("label", label); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Optgroup children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Optgroup _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Optgroup 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/Option.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Option.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Option.java new file mode 100644 index 0000000..b946c72 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Option.java @@ -0,0 +1,89 @@ +// *************************************************************************************************************************** +// * 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-option-element'><option></a> element. + * <p> + */ +@Bean(typeName="option") +public class Option extends HtmlElementText { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-option-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 Option disabled(String disabled) { + attrs.put("disabled", disabled); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-option-label'>label</a> attribute. + * User-visible label. + * @param label - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Option label(String label) { + attrs.put("label", label); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-option-selected'>selected</a> attribute. + * Whether the option is selected by default. + * @param selected - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Option selected(String selected) { + attrs.put("selected", selected); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-option-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 Option value(String value) { + attrs.put("value", value); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Option _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Option id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementText */ + public Option 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/Output.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Output.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Output.java new file mode 100644 index 0000000..5eb61ab --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Output.java @@ -0,0 +1,85 @@ +// *************************************************************************************************************************** +// * 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-output-element'><output></a> element. + * <p> + */ +@Bean(typeName="output") +@SuppressWarnings("hiding") +public class Output extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-output-for'>for</a> attribute. + * Specifies controls from which the output was calculated. + * @param _for - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Output _for(String _for) { + attrs.put("for", _for); + 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 Output form(String form) { + attrs.put("form", form); + 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 Output name(String name) { + attrs.put("name", name); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Output _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Output id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Output children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Output 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/P.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/P.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/P.java new file mode 100644 index 0000000..7ee4ecb --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/P.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-p-element'><p></a> element. + * <p> + */ +@Bean(typeName="p") +@SuppressWarnings("hiding") +public class P extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final P _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final P id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public P children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public P 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/Param.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Param.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Param.java new file mode 100644 index 0000000..bac2a05 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Param.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/embedded-content-0.html#the-param-element'><param></a> element. + * <p> + */ +@Bean(typeName="param") +public class Param extends HtmlElementEmpty { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-param-name'>name</a> attribute. + * Name of parameter. + * @param name - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Param name(String name) { + attrs.put("name", name); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-param-value'>value</a> attribute. + * Value of parameter. + * @param value - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Param value(String value) { + attrs.put("value", value); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Param _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Param 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/Pre.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Pre.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Pre.java new file mode 100644 index 0000000..5bc28b4 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Pre.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-pre-element'><pre></a> element. + * <p> + */ +@Bean(typeName="pre") +@SuppressWarnings("hiding") +public class Pre extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Pre _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Pre id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Pre children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Pre 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/Progress.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Progress.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Progress.java new file mode 100644 index 0000000..dd30811 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Progress.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/forms.html#the-progress-element'><progress></a> element. + * <p> + */ +@Bean(typeName="progress") +@SuppressWarnings("hiding") +public class Progress extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-progress-max'>max</a> attribute. + * Upper bound of range. + * @param max - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Progress max(String max) { + attrs.put("max", max); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-progress-value'>value</a> attribute. + * Current value of the element. + * @param value - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Progress value(String value) { + attrs.put("value", value); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Progress _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Progress id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Progress children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Progress 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/Q.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Q.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Q.java new file mode 100644 index 0000000..b61aa6e --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Q.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-q-element'><q></a> element. + * <p> + */ +@Bean(typeName="q") +@SuppressWarnings("hiding") +public class Q extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/text-level-semantics.html#attr-q-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 Q cite(String cite) { + attrs.put("cite", cite); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Q _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Q id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Q children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Q 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/Rb.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rb.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rb.java new file mode 100644 index 0000000..6b9a571 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rb.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-rb-element'><rb></a> element. + * <p> + */ +@Bean(typeName="rb") +@SuppressWarnings("hiding") +public class Rb extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Rb _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Rb id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Rb children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Rb 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/Rp.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rp.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rp.java new file mode 100644 index 0000000..e02d50f --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rp.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-rp-element'><rp></a> element. + * <p> + */ +@Bean(typeName="rp") +@SuppressWarnings("hiding") +public class Rp extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Rp _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Rp id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Rp children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Rp 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/Rt.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rt.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rt.java new file mode 100644 index 0000000..9eb0852 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rt.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-rt-element'><rt></a> element. + * <p> + */ +@Bean(typeName="rt") +@SuppressWarnings("hiding") +public class Rt extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Rt _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Rt id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Rt children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Rt 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/Rtc.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rtc.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rtc.java new file mode 100644 index 0000000..6eee0aa --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Rtc.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-rtc-element'><rtc></a> element. + * <p> + */ +@Bean(typeName="rtc") +@SuppressWarnings("hiding") +public class Rtc extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Rtc _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Rtc id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Rtc children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Rtc 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/Ruby.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Ruby.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Ruby.java new file mode 100644 index 0000000..9f122df --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Ruby.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-ruby-element'><ruby></a> element. + * <p> + */ +@Bean(typeName="ruby") +@SuppressWarnings("hiding") +public class Ruby extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Ruby _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Ruby id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Ruby children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Ruby 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/S.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/S.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/S.java new file mode 100644 index 0000000..4d84780 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/S.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-s-element'><s></a> element. + * <p> + */ +@Bean(typeName="s") +@SuppressWarnings("hiding") +public class S extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final S _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final S id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public S children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public S 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/Samp.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Samp.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Samp.java new file mode 100644 index 0000000..e643498 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Samp.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-samp-element'><samp></a> element. + * <p> + */ +@Bean(typeName="samp") +@SuppressWarnings("hiding") +public class Samp extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Samp _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Samp id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Samp children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Samp 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/Script.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Script.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Script.java new file mode 100644 index 0000000..743d371 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Script.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/scripting-1.html#the-script-element'><script></a> element. + * <p> + */ +@Bean(typeName="script") +@SuppressWarnings("hiding") +public class Script extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/scripting-1.html#attr-script-async'>async</a> attribute. + * Execute script asynchronously. + * @param async - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Script async(String async) { + attrs.put("async", async); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/scripting-1.html#attr-script-charset'>charset</a> attribute. + * Character encoding of the external script resource. + * @param charset - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Script charset(String charset) { + attrs.put("charset", charset); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/scripting-1.html#attr-script-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 Script crossorigin(String crossorigin) { + attrs.put("crossorigin", crossorigin); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/scripting-1.html#attr-script-defer'>defer</a> attribute. + * Defer script execution. + * @param defer - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Script defer(String defer) { + attrs.put("defer", defer); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/scripting-1.html#attr-script-src'>src</a> attribute. + * Address of the resource. + * @param src - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Script src(String src) { + attrs.put("src", src); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/scripting-1.html#attr-script-type'>type</a> attribute. + * Type of embedded resource. + * @param type - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Script type(String type) { + attrs.put("type", type); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Script _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Script id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Script children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Script 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/Section.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Section.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Section.java new file mode 100644 index 0000000..b545eee --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Section.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/sections.html#the-section-element'><section></a> element. + * <p> + */ +@Bean(typeName="section") +@SuppressWarnings("hiding") +public class Section extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Section _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Section id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Section children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Section 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/Select.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Select.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Select.java new file mode 100644 index 0000000..63641d0 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Select.java @@ -0,0 +1,123 @@ +// *************************************************************************************************************************** +// * 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-select-element'><select></a> element. + * <p> + */ +@Bean(typeName="select") +@SuppressWarnings("hiding") +public class Select extends HtmlElementContainer { + + /** + * <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 Select 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 Select 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 Select form(String form) { + attrs.put("form", form); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-select-multiple'>multiple</a> attribute. + * Whether to allow multiple values. + * @param multiple - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Select multiple(String multiple) { + attrs.put("multiple", multiple); + 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 Select name(String name) { + attrs.put("name", name); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-select-required'>required</a> attribute. + * Whether the control is required for form submission. + * @param required - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Select required(String required) { + attrs.put("required", required); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-select-size'>size</a> attribute. + * Size of the control. + * @param size - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Select size(String size) { + attrs.put("size", size); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Select children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Select _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Select 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/Small.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Small.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Small.java new file mode 100644 index 0000000..b0be6fc --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Small.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-small-element'><small></a> element. + * <p> + */ +@Bean(typeName="small") +@SuppressWarnings("hiding") +public class Small extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Small _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Small id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Small children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Small 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/Source.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Source.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Source.java new file mode 100644 index 0000000..f9bf26c --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Source.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/embedded-content-0.html#the-source-element'><source></a> element. + * <p> + */ +@Bean(typeName="source") +public class Source extends HtmlElementEmpty { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-source-src'>src</a> attribute. + * Address of the resource. + * @param src - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Source src(String src) { + attrs.put("src", src); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-source-type'>type</a> attribute. + * Type of embedded resource. + * @param type - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Source type(String type) { + attrs.put("type", type); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Source _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Source 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/Span.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Span.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Span.java new file mode 100644 index 0000000..51fac15 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Span.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-span-element'><span></a> element. + * <p> + */ +@Bean(typeName="span") +@SuppressWarnings("hiding") +public class Span extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Span _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Span id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Span children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Span 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/Strong.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Strong.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Strong.java new file mode 100644 index 0000000..c6ca3e7 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Strong.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-strong-element'><strong></a> element. + * <p> + */ +@Bean(typeName="strong") +@SuppressWarnings("hiding") +public class Strong extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Strong _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Strong id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Strong children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Strong 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/Style.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Style.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Style.java new file mode 100644 index 0000000..3f3e1d3 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Style.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/document-metadata.html#the-style-element'><style></a> element. + * <p> + */ +@Bean(typeName="style") +@SuppressWarnings("hiding") +public class Style extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/document-metadata.html#attr-style-media'>media</a> attribute. + * Applicable media. + * @param media - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Style media(String media) { + attrs.put("media", media); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/document-metadata.html#attr-style-type'>type</a> attribute. + * Type of embedded resource. + * @param type - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Style type(String type) { + attrs.put("type", type); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Style _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Style id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Style children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Style 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/Sub.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Sub.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Sub.java new file mode 100644 index 0000000..cabe28a --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Sub.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-sub-and-sup-elements'><sub></a> element. + * <p> + */ +@Bean(typeName="sub") +@SuppressWarnings("hiding") +public class Sub extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Sub _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Sub id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Sub children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Sub 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/Sup.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Sup.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Sup.java new file mode 100644 index 0000000..96eb6dc --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Sup.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-sub-and-sup-elements'><sup></a> element. + * <p> + */ +@Bean(typeName="sup") +@SuppressWarnings("hiding") +public class Sup extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Sup _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Sup id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Sup children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Sup 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/Table.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Table.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Table.java new file mode 100644 index 0000000..8eb34b5 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Table.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-table-element'><table></a> element. + * <p> + */ +@Bean(typeName="table") +@SuppressWarnings("hiding") +public class Table extends HtmlElementContainer { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-table-border'>border</a> attribute. + * //sortable - Enables a sorting interface for the table. + * @param border - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Table border(String border) { + attrs.put("border", border); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Table children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Table _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Table id(String id) { + super.id(id); + return this; + } +}
