FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Code format · patternfly-java/patternfly-java@e022762 · GitHub

Commit e022762

Browse files
committed
Code format
1 parent c982ba9 commit e022762

32 files changed

Lines changed: 270 additions & 93 deletions

‎src/main/java/org/patternfly/component/DataList.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
* PatternFly data list.
7171
*
7272
* <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:
7575
* </p>
7676
*
7777
* <pre>
@@ -83,7 +83,7 @@
8383
* </pre>
8484
*
8585
* @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>
8787
*/
8888
@Deprecated
8989
public class DataList<T> extends BaseComponent<HTMLUListElement, DataList<T>>

‎src/main/java/org/patternfly/component/DataTable.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
* PatternFly data table.
9595
*
9696
* <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:
9999
* </p>
100100
*
101101
* <pre>
@@ -107,7 +107,7 @@
107107
* </pre>
108108
*
109109
* @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>
111111
*/
112112
@Deprecated
113113
public class DataTable<T> extends BaseComponent<HTMLTableElement, DataTable<T>>
@@ -135,7 +135,7 @@ public static <T> Column<T> checkboxColumn() {
135135
th -> th.css(component(table, check)).add(input(InputType.checkbox).aria("label", "Select all rows")),
136136
(td, dataProvider,
137137
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))),
139139
null);
140140
}
141141

‎src/main/java/org/patternfly/component/EmptyState.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* PatternFly empty state component.
4242
*
4343
* @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>
4545
*/
4646
@Deprecated
4747
public class EmptyState extends BaseComponent<HTMLDivElement, EmptyState> {

‎src/main/java/org/patternfly/component/OldToolbar.java‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@
7676
/**
7777
* PatternFly data toolbar component.
7878
* <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):
8281
*
8382
* <pre>
8483
* toolbar = content, { content } ;
@@ -106,7 +105,7 @@
106105
* </pre>
107106
*
108107
* @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>
110109
* @see <a href="https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form">Extended Backus–Naur form</a>
111110
*/
112111
@Deprecated
@@ -372,7 +371,7 @@ private <T> void bindToolbar(OldToolbar<T> toolbar) {
372371
}
373372
}
374373

375-
@SuppressWarnings({"rawtypes", "unchecked"})
374+
@SuppressWarnings({ "rawtypes", "unchecked" })
376375
@Deprecated
377376
public static class Item extends SubComponent<HTMLDivElement, Item> {
378377

@@ -462,7 +461,7 @@ private static class BulkSelect implements IsElement<HTMLDivElement> {
462461
private final Dropdown<BulkSelectOption> dropdown;
463462

464463
protected BulkSelect() {
465-
this.dropdown = Dropdown.<BulkSelectOption>splitCheckbox()
464+
this.dropdown = Dropdown.<BulkSelectOption> splitCheckbox()
466465
.identifier(bso -> bso.id)
467466
.display((html, bso) -> html.textContent(bso.text))
468467
.add(SELECT_NONE)

‎src/main/java/org/patternfly/component/Pagination.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* PatternFly pagination component.
5656
*
5757
* @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>
5959
*/
6060
@Deprecated
6161
public class Pagination extends BaseComponent<HTMLDivElement, Pagination>
@@ -90,10 +90,10 @@ protected Pagination() {
9090
super(div().css(component(pagination)).element(), "Pagination");
9191

9292
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) -> {
9494
html.add(String.valueOf(pageSize));
9595
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 -> {
9797
if (pageSizeHandler != null) {
9898
pageSizeHandler.accept(pageSize);
9999
}
@@ -205,7 +205,7 @@ public Pagination onLastPage(Callback lastPageHandler) {
205205
// ------------------------------------------------------ internals
206206

207207
void update(PageInfo pageInfo) {
208-
HTMLElement[] elements = new HTMLElement[]{infoElement, pageSizeMenu.textElement()};
208+
HTMLElement[] elements = new HTMLElement[] { infoElement, pageSizeMenu.textElement() };
209209
for (HTMLElement element : elements) {
210210
removeChildrenFrom(element);
211211
HTMLContainerBuilder<HTMLElement> builder = new HTMLContainerBuilder<>(element);

‎src/main/java/org/patternfly/component/SingleSelect.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
* PatternFly single select component.
8989
*
9090
* @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>
9292
*/
9393
@Deprecated
9494
public class SingleSelect<T> extends BaseComponent<HTMLDivElement, SingleSelect<T>>

‎src/main/java/org/patternfly/component/alert/Alert.java‎

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public static Alert danger(String title) {
8989

9090
Alert(AlertType alertType, String title) {
9191
super(div().css(component(alert), alertType.status.modifier)
92-
.aria(label, alertType.aria)
93-
.element(),
92+
.aria(label, alertType.aria)
93+
.element(),
9494
ComponentType.Alert);
9595
this.alertType = alertType;
9696
this.title = title;
@@ -112,8 +112,8 @@ public Alert that() {
112112
// ------------------------------------------------------ add methods
113113

114114
/**
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.
117117
*/
118118
public Alert addAction(Button action) {
119119
return add(alertActionGroup().add(action));
@@ -127,13 +127,17 @@ public Alert addActionGroup(AlertActionGroup actionGroup) {
127127
* Wraps the description inside a {@code
128128
*
129129
*
130-
* <p>
131130
*
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.
137141
*/
138142
public Alert addDescription(String description) {
139143
return add(alertDescription().add(p().textContent(description)));

‎src/main/java/org/patternfly/component/button/ButtonElement.java‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
*/
116
package org.patternfly.component.button;
217

318
public enum ButtonElement {

‎src/main/java/org/patternfly/component/button/IconPosition.java‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
*/
116
package org.patternfly.component.button;
217

318
import org.patternfly.layout.Classes;
@@ -12,5 +27,7 @@ public enum IconPosition {
1227

1328
final String modifier;
1429

15-
IconPosition(String modifier) {this.modifier = modifier;}
30+
IconPosition(String modifier) {
31+
this.modifier = modifier;
32+
}
1633
}

‎src/main/java/org/patternfly/component/code/CodeBlock.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
import static org.patternfly.layout.Classes.pre;
4747

4848
/**
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.
5151
*
5252
* @see <a href= "https://www.patternfly.org/components/code-block">https://www.patternfly.org/components/code-block</a>
5353
*/

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL