| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,8 +70,8 @@ | |||
| 70 | 70 | * PatternFly data list. | |
| 71 | 71 | * | |
| 72 | 72 | * <p> | |
| 73 | - * The data list does not manage data by itself. Use a {@link DataProvider} and add the data list as a display to the | ||
| 74 | - * data provider: | ||
| 73 | + * The data list does not manage data by itself. Use a {@link DataProvider} and add the data list as a display to the data | ||
| 74 | + * provider: | ||
| 75 | 75 | * </p> | |
| 76 | 76 | * | |
| 77 | 77 | * <pre> | |
@@ -83,7 +83,7 @@ | |||
| 83 | 83 | * </pre> | |
| 84 | 84 | * | |
| 85 | 85 | * @see <a href= | |
| 86 | - * "https://www.patternfly.org/v4/documentation/core/components/datalist">https://www.patternfly.org/v4/documentation/core/components/datalist</a> | ||
| 86 | + * "https://www.patternfly.org/v4/documentation/core/components/datalist">https://www.patternfly.org/v4/documentation/core/components/datalist</a> | ||
| 87 | 87 | */ | |
| 88 | 88 | @Deprecated | |
| 89 | 89 | public class DataList<T> extends BaseComponent<HTMLUListElement, DataList<T>> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -94,8 +94,8 @@ | |||
| 94 | 94 | * PatternFly data table. | |
| 95 | 95 | * | |
| 96 | 96 | * <p> | |
| 97 | - * The data table does not manage data by itself. Use a {@link DataProvider} and add the data table as a display to the | ||
| 98 | - * data provider: | ||
| 97 | + * The data table does not manage data by itself. Use a {@link DataProvider} and add the data table as a display to the data | ||
| 98 | + * provider: | ||
| 99 | 99 | * </p> | |
| 100 | 100 | * | |
| 101 | 101 | * <pre> | |
@@ -107,7 +107,7 @@ | |||
| 107 | 107 | * </pre> | |
| 108 | 108 | * | |
| 109 | 109 | * @see <a href= | |
| 110 | - * "https://www.patternfly.org/v4/documentation/core/components/table">https://www.patternfly.org/v4/documentation/core/components/table</a> | ||
| 110 | + * "https://www.patternfly.org/v4/documentation/core/components/table">https://www.patternfly.org/v4/documentation/core/components/table</a> | ||
| 111 | 111 | */ | |
| 112 | 112 | @Deprecated | |
| 113 | 113 | public class DataTable<T> extends BaseComponent<HTMLTableElement, DataTable<T>> | |
@@ -135,7 +135,7 @@ public static <T> Column<T> checkboxColumn() { | |||
| 135 | 135 | th -> th.css(component(table, check)).add(input(InputType.checkbox).aria("label", "Select all rows")), | |
| 136 | 136 | (td, dataProvider, | |
| 137 | 137 | item) -> td.css(component(table, check)).add(input(InputType.checkbox) | |
| 138 | - .name(Id.build(dataProvider.getId(item), "select")).aria(labelledBy, dataProvider.getId(item))), | ||
| 138 | + .name(Id.build(dataProvider.getId(item), "select")).aria(labelledBy, dataProvider.getId(item))), | ||
| 139 | 139 | null); | |
| 140 | 140 | } | |
| 141 | 141 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ | |||
| 41 | 41 | * PatternFly empty state component. | |
| 42 | 42 | * | |
| 43 | 43 | * @see <a | |
| 44 | - * href=https://www.patternfly.org/v4/documentation/core/components/emptystate">https://www.patternfly.org/v4/documentation/core/components/emptystate</a> | ||
| 44 | + * href=https://www.patternfly.org/v4/documentation/core/components/emptystate">https://www.patternfly.org/v4/documentation/core/components/emptystate</a> | ||
| 45 | 45 | */ | |
| 46 | 46 | @Deprecated | |
| 47 | 47 | public class EmptyState extends BaseComponent<HTMLDivElement, EmptyState> { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,9 +76,8 @@ | |||
| 76 | 76 | /** | |
| 77 | 77 | * PatternFly data toolbar component. | |
| 78 | 78 | * <p> | |
| 79 | - * All elements of a toolbar have to be nested inside instances of type {@link Content}. In general the structure of a | ||
| 80 | - * toolbar should apply to the following EBNF (the symbols enclosed in '?' represent PatternFly components / HTML | ||
| 81 | - * nodes): | ||
| 79 | + * All elements of a toolbar have to be nested inside instances of type {@link Content}. In general the structure of a toolbar | ||
| 80 | + * should apply to the following EBNF (the symbols enclosed in '?' represent PatternFly components / HTML nodes): | ||
| 82 | 81 | * | |
| 83 | 82 | * <pre> | |
| 84 | 83 | * toolbar = content, { content } ; | |
@@ -106,7 +105,7 @@ | |||
| 106 | 105 | * </pre> | |
| 107 | 106 | * | |
| 108 | 107 | * @see <a href= | |
| 109 | - * "https://www.patternfly.org/v4/documentation/core/experimental/datatoolbar">https://www.patternfly.org/v4/documentation/core/experimental/datatoolbar</a> | ||
| 108 | + * "https://www.patternfly.org/v4/documentation/core/experimental/datatoolbar">https://www.patternfly.org/v4/documentation/core/experimental/datatoolbar</a> | ||
| 110 | 109 | * @see <a href="https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form">Extended Backus–Naur form</a> | |
| 111 | 110 | */ | |
| 112 | 111 | @Deprecated | |
@@ -372,7 +371,7 @@ private <T> void bindToolbar(OldToolbar<T> toolbar) { | |||
| 372 | 371 | } | |
| 373 | 372 | } | |
| 374 | 373 | ||
| 375 | - @SuppressWarnings({"rawtypes", "unchecked"}) | ||
| 374 | + @SuppressWarnings({ "rawtypes", "unchecked" }) | ||
| 376 | 375 | @Deprecated | |
| 377 | 376 | public static class Item extends SubComponent<HTMLDivElement, Item> { | |
| 378 | 377 | ||
@@ -462,7 +461,7 @@ private static class BulkSelect implements IsElement<HTMLDivElement> { | |||
| 462 | 461 | private final Dropdown<BulkSelectOption> dropdown; | |
| 463 | 462 | ||
| 464 | 463 | protected BulkSelect() { | |
| 465 | - this.dropdown = Dropdown.<BulkSelectOption>splitCheckbox() | ||
| 464 | + this.dropdown = Dropdown.<BulkSelectOption> splitCheckbox() | ||
| 466 | 465 | .identifier(bso -> bso.id) | |
| 467 | 466 | .display((html, bso) -> html.textContent(bso.text)) | |
| 468 | 467 | .add(SELECT_NONE) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,7 +55,7 @@ | |||
| 55 | 55 | * PatternFly pagination component. | |
| 56 | 56 | * | |
| 57 | 57 | * @see <a href= | |
| 58 | - * "https://www.patternfly.org/v4/documentation/core/components/pagination">https://www.patternfly.org/v4/documentation/core/components/pagination</a> | ||
| 58 | + * "https://www.patternfly.org/v4/documentation/core/components/pagination">https://www.patternfly.org/v4/documentation/core/components/pagination</a> | ||
| 59 | 59 | */ | |
| 60 | 60 | @Deprecated | |
| 61 | 61 | public class Pagination extends BaseComponent<HTMLDivElement, Pagination> | |
@@ -90,10 +90,10 @@ protected Pagination() { | |||
| 90 | 90 | super(div().css(component(pagination)).element(), "Pagination"); | |
| 91 | 91 | ||
| 92 | 92 | infoElement = div().css(component(pagination, totalItems)).element(); | |
| 93 | - pageSizeMenu = SingleOptionsMenu.<Integer>plain("").collapseOnSelect().display((html, pageSize) -> { | ||
| 93 | + pageSizeMenu = SingleOptionsMenu.<Integer> plain("").collapseOnSelect().display((html, pageSize) -> { | ||
| 94 | 94 | html.add(String.valueOf(pageSize)); | |
| 95 | 95 | html.add(span().css(component(pagination, menu, text)).textContent("per page")); | |
| 96 | - }).add(new Integer[]{10, 20, 50, 100}).onSelect(pageSize -> { | ||
| 96 | + }).add(new Integer[] { 10, 20, 50, 100 }).onSelect(pageSize -> { | ||
| 97 | 97 | if (pageSizeHandler != null) { | |
| 98 | 98 | pageSizeHandler.accept(pageSize); | |
| 99 | 99 | } | |
@@ -205,7 +205,7 @@ public Pagination onLastPage(Callback lastPageHandler) { | |||
| 205 | 205 | // ------------------------------------------------------ internals | |
| 206 | 206 | ||
| 207 | 207 | void update(PageInfo pageInfo) { | |
| 208 | - HTMLElement[] elements = new HTMLElement[]{infoElement, pageSizeMenu.textElement()}; | ||
| 208 | + HTMLElement[] elements = new HTMLElement[] { infoElement, pageSizeMenu.textElement() }; | ||
| 209 | 209 | for (HTMLElement element : elements) { | |
| 210 | 210 | removeChildrenFrom(element); | |
| 211 | 211 | HTMLContainerBuilder<HTMLElement> builder = new HTMLContainerBuilder<>(element); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,7 @@ | |||
| 88 | 88 | * PatternFly single select component. | |
| 89 | 89 | * | |
| 90 | 90 | * @see <a href= | |
| 91 | - * "https://www.patternfly.org/v4/documentation/core/components/select">https://www.patternfly.org/v4/documentation/core/components/select</a> | ||
| 91 | + * "https://www.patternfly.org/v4/documentation/core/components/select">https://www.patternfly.org/v4/documentation/core/components/select</a> | ||
| 92 | 92 | */ | |
| 93 | 93 | @Deprecated | |
| 94 | 94 | public class SingleSelect<T> extends BaseComponent<HTMLDivElement, SingleSelect<T>> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,8 +89,8 @@ public static Alert danger(String title) { | |||
| 89 | 89 | ||
| 90 | 90 | Alert(AlertType alertType, String title) { | |
| 91 | 91 | super(div().css(component(alert), alertType.status.modifier) | |
| 92 | - .aria(label, alertType.aria) | ||
| 93 | - .element(), | ||
| 92 | + .aria(label, alertType.aria) | ||
| 93 | + .element(), | ||
| 94 | 94 | ComponentType.Alert); | |
| 95 | 95 | this.alertType = alertType; | |
| 96 | 96 | this.title = title; | |
@@ -112,8 +112,8 @@ public Alert that() { | |||
| 112 | 112 | // ------------------------------------------------------ add methods | |
| 113 | 113 | ||
| 114 | 114 | /** | |
| 115 | - * Wraps the action inside a {@link AlertActionGroup} and adds it to this alert. Useful if you only want to add a | ||
| 116 | - * single action. | ||
| 115 | + * Wraps the action inside a {@link AlertActionGroup} and adds it to this alert. Useful if you only want to add a single | ||
| 116 | + * action. | ||
| 117 | 117 | */ | |
| 118 | 118 | public Alert addAction(Button action) { | |
| 119 | 119 | return add(alertActionGroup().add(action)); | |
@@ -127,13 +127,17 @@ public Alert addActionGroup(AlertActionGroup actionGroup) { | |||
| 127 | 127 | * Wraps the description inside a {@code | |
| 128 | 128 | * | |
| 129 | 129 | * | |
| 130 | - * <p> | ||
| 131 | 130 | * | |
| 132 | - * <p> | ||
| 133 | - * <p> | ||
| 134 | - * <p/> | ||
| 135 | - * } element, adds it to a {@link AlertDescription} and finally adds it to this alert. Useful if your description is | ||
| 136 | - * just a simple string. | ||
| 131 | + <p> | ||
| 132 | + * | ||
| 133 | + * | ||
| 134 | + <p> | ||
| 135 | + * | ||
| 136 | + <p> | ||
| 137 | + * | ||
| 138 | + <p/> | ||
| 139 | + * } element, adds it to a {@link AlertDescription} and finally adds it to this alert. Useful if your description is just a | ||
| 140 | + * simple string. | ||
| 137 | 141 | */ | |
| 138 | 142 | public Alert addDescription(String description) { | |
| 139 | 143 | return add(alertDescription().add(p().textContent(description))); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,18 @@ | |||
| 1 | + /* | ||
| 2 | + * Copyright 2023 Red Hat | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + */ | ||
| 1 | 16 | package org.patternfly.component.button; | |
| 2 | 17 | ||
| 3 | 18 | public enum ButtonElement { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,18 @@ | |||
| 1 | + /* | ||
| 2 | + * Copyright 2023 Red Hat | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + */ | ||
| 1 | 16 | package org.patternfly.component.button; | |
| 2 | 17 | ||
| 3 | 18 | import org.patternfly.layout.Classes; | |
@@ -12,5 +27,7 @@ public enum IconPosition { | |||
| 12 | 27 | ||
| 13 | 28 | final String modifier; | |
| 14 | 29 | ||
| 15 | - IconPosition(String modifier) {this.modifier = modifier;} | ||
| 30 | + IconPosition(String modifier) { | ||
| 31 | + this.modifier = modifier; | ||
| 32 | + } | ||
| 16 | 33 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,8 +46,8 @@ | |||
| 46 | 46 | import static org.patternfly.layout.Classes.pre; | |
| 47 | 47 | ||
| 48 | 48 | /** | |
| 49 | - * A code block is a component that contains 2 or more lines of read-only code. The code in a code block can be copied | ||
| 50 | - * to the clipboard. | ||
| 49 | + * A code block is a component that contains 2 or more lines of read-only code. The code in a code block can be copied to the | ||
| 50 | + * clipboard. | ||
| 51 | 51 | * | |
| 52 | 52 | * @see <a href= "https://www.patternfly.org/components/code-block">https://www.patternfly.org/components/code-block</a> | |
| 53 | 53 | */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments