Skip to content

Commit

Permalink
Merge pull request #24 from BorderTech/feature/api-javadoc-links
Browse files Browse the repository at this point in the history
Update javadoc with api links and adjust some of the element categories
  • Loading branch information
jonathanaustin authored Oct 23, 2023
2 parents 882184d + 768fe37 commit 1494d95
Show file tree
Hide file tree
Showing 179 changed files with 606 additions and 555 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

/**
* Target window type.
*
* @see <a href="https://html.spec.whatwg.org/#navigable-target-names">HTML Spec</a>
*/
public final class WindowTarget {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

/**
* Element that can be autocapitalized.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#autocapitalize">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#autocapitalization">HTML Spec</a>
*/
public interface Autocapitalizable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import com.github.bordertech.webfriends.api.element.Element;

/**
* Element with dimensions.
* Element with dimensions (ie height and width).
*
* @see <a href="https://html.spec.whatwg.org/#dimension-attributes">HTML Spec</a>
*/
public interface Dimensionable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
import com.github.bordertech.webfriends.api.element.Element;

/**
* Element that can be focused.
* Element that can be focused (ie tabindex and accesskey).
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex">Web Docs tabindex</a>
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey">Web Docs accesskey</a>
* @see <a href="https://html.spec.whatwg.org/#the-tabindex-attribute">HTML Spec tabindex</a>
* @see <a href="https://html.spec.whatwg.org/#the-accesskey-attribute">HTML Spec accesskey</a>
*/
public interface Focusable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element that can be spell checked.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#spelling-and-grammar-checking">HTML Spec</a>
*/
public interface SpellCheckable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Every element is a member of one or more content categories.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#kinds-of-content">HTML Spec</a>
*/
public interface Category extends Element {
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

/**
* Embedded content imports another resource into the document.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#embedded_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#embedded-content-category">HTML Spec</a>
*/
public interface EmbeddedContent extends PhrasingContent {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* <p>
* Most elements that are used in the body of documents and applications are categorized as flow content.
* </p>
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#flow_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#flow-content">HTML Spec</a>
*/
public interface FlowContent extends Category {
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

/**
* Element that defines the header details of a section.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#heading_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#heading-content">HTML Spec</a>
*/
public interface HeadingContent extends FlowContent {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

/**
* Interactive content is specifically intended for user interaction.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#interactive_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#interactive-content">HTML Spec</a>
*/
public interface InteractiveContent extends FlowContent {
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/**
* Metadata content modifies the presentation or the behavior of the rest of the document, sets up links to other documents, or conveys other out of
* band information.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#metadata_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#metadata-content">HTML Spec</a>
*/
public interface MetadataContent extends Category {
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Content is palpable when it's neither empty or hidden; it is content that is rendered and is substantive. Elements whose model is flow content or
* phrasing content should have at least one node which is palpable.
* </p>
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#palpable_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#palpable-content">HTML Spec</a>
*/
public interface PalpableContent extends Category {
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Phrasing content is the text of the document, as well as elements that mark up that text at the intra-paragraph level. Phrasing content defines the
* text and the mark-up it contains. Runs of phrasing content make up paragraphs.
* </p>
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#phrasing_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#phrasing-content">HTML Spec</a>
*/
public interface PhrasingContent extends FlowContent {
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package com.github.bordertech.webfriends.api.common.category;

/**
* Element that supports scripting.
* Element that supports scripting such as script and template elements.
* <p>
* Script-supporting elements are elements which don't directly contribute to the rendered output of a document. Instead, they serve to support
* scripts, either by containing or specifying script code directly, or by specifying data that will be used by scripts.
* </p>
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#script-supporting_elements">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#script-supporting-elements">HTML Spec</a>
*/
public interface ScriptSupportingContent extends Category {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* Sectioning content elements are always considered subsections of their nearest ancestor sectioning root or their nearest ancestor element of
* sectioning content, whichever is nearest, regardless of what implied sections other headings may have created.
* </p>
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#sectioning_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#sectioning-content">HTML Spec</a>
*/
public interface SectioningContent extends FlowContent {

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

/**
* Contexts in which an element can be used (ie parent).
*
* @see <a href="https://html.spec.whatwg.org/#concept-element-contexts">HTML Spec</a>
*/
public interface ElementContext {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

/**
* Form control that can be auto completed.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#autofill">HTML Spec</a>
*/
public interface Autocompleteable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element that can be auto focused.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#the-autofocus-attribute">HTML Spec</a>
*/
public interface Autofocusable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element is checkable.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#checked">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#attr-input-checked">HTML Spec</a>
*/
public interface Checkable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/**
* Element that can have a dirty state.
*
* @see <a href="https://html.spec.whatwg.org/#concept-fe-dirty">HTML Spec</a>
*/
public interface Dirtyable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element that can be disabled.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#enabling-and-disabling-form-controls:-the-disabled-attribute">HTML Spec</a>
*/
public interface Disableable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* Element that has min and max value constraints.
*
* @param <T> the element value data type
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/min">Web Docs min</a>
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/max">Web Docs max</a>
* @see <a href="https://html.spec.whatwg.org/#the-min-and-max-attributes">HTML Spec</a>
*/
public interface MinMaxConstrainable<T> extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

/**
* Element that has min and max lengths.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength">Web Docs maxlength</a>
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength">Web Docs minlength</a>
* @see <a href="https://html.spec.whatwg.org/#limiting-user-input-length:-the-maxlength-attribute">HTML Spec maxlength</a>
* @see <a href="https://html.spec.whatwg.org/#setting-minimum-input-length-requirements:-the-minlength-attribute">HTML Spec minlength</a>
*/
public interface MinMaxLengthable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element that allows the input to be checked against a regular expression.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#the-pattern-attribute">HTML Spec</a>
*/
public interface Patternable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element that has a place holder.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/placeholder">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#the-placeholder-attribute">HTML Spec</a>
*/
public interface Placeholderable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element can be readonly.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#attr-input-readonly">HTML Spec</a>
*/
public interface Readonlyable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element that can be required.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#the-required-attribute">HTML Spec</a>
*/
public interface Requireable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element that can be sized.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#attr-input-size">HTML Spec</a>
*/
public interface Sizeable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

/**
* Element with a value that can be stepped.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#attr-input-step">HTML Spec</a>
*/
public interface Stepable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

/**
* Element with a list of predefined suggestions.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text#list">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#the-list-attribute">HTML Spec</a>
*/
public interface Suggestable extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Element that allows the user to specify more than one value.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#concept-fe-value">HTML Spec</a>
*/
public interface ValueMulti extends ValueSingle {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Input element that has a single value.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#concept-fe-value">HTML Spec</a>
*/
public interface ValueSingle extends Element {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

/**
* Element that inherits the autocapitalize attribute from their form owner.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#categories">HTML Spec</a>
*/
public interface AutocapitalizeInheriting extends FormAssociated {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* Element with content that contains elements that have a form owner, exposed by a form attribute. A form owner is either the containing form element
* or the element whose id is specified in the form attribute
* </p>
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#form-associated_content">Web Docs</a>
* @see <a href="https://html.spec.whatwg.org/#categories">HTML Spec</a>
*/
public interface FormAssociated extends Category {

Expand Down
Loading

0 comments on commit 1494d95

Please sign in to comment.