| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
| 6 | 6 | ||
| 7 | 7 | ## [Unreleased] | |
| 8 | 8 | ||
| 9 | + ### Added | ||
| 10 | + | ||
| 11 | + - Enhanced documentation | ||
| 12 | + | ||
| 13 | + ### Deprecated | ||
| 14 | + | ||
| 15 | + - Marked old (PatternFly 4) components as deprecated | ||
| 16 | + | ||
| 9 | 17 | ## [0.0.1] - 2023-10-05 | |
| 10 | 18 | ||
| 11 | 19 | This is the first public release of PatternFly Java 🍾🎉🎊🥳 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,23 +1,22 @@ | |||
| 1 | 1 | import java.util.Random; | |
| 2 | 2 | ||
| 3 | - import org.patternfly.components.icon.Icon; | ||
| 3 | + import org.patternfly.component.icon.Icon; | ||
| 4 | 4 | ||
| 5 | - import static org.patternfly.components.icon.Icon.icon; | ||
| 6 | - import static org.patternfly.layout.Icons.check; | ||
| 7 | - import static org.patternfly.layout.Icons.exclamationTriangle; | ||
| 8 | - import static org.patternfly.layout.Icons.fas; | ||
| 9 | - import static org.patternfly.layout.Icons.filter; | ||
| 5 | + import static org.patternfly.component.icon.Icon.icon; | ||
| 6 | + import static org.patternfly.layout.PredefinedIcon.check; | ||
| 7 | + import static org.patternfly.layout.PredefinedIcon.exclamationTriangle; | ||
| 8 | + import static org.patternfly.layout.PredefinedIcon.filter; | ||
| 10 | 9 | import static org.patternfly.layout.Size.lg; | |
| 11 | 10 | import static org.patternfly.layout.Status.warning; | |
| 12 | 11 | ||
| 13 | 12 | public class IconDemo { | |
| 14 | 13 | ||
| 15 | 14 | public void iconDemo() { | |
| 16 | 15 | // @start region = icon | |
| 17 | - icon(fas(check)); | ||
| 18 | - icon(fas(filter)) | ||
| 16 | + icon(check); | ||
| 17 | + icon(filter) | ||
| 19 | 18 | .size(lg); | |
| 20 | - icon(fas(exclamationTriangle)) | ||
| 19 | + icon(exclamationTriangle) | ||
| 21 | 20 | .inline() | |
| 22 | 21 | .status(warning); | |
| 23 | 22 | // @end region = icon | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,12 @@ | |||
| 1 | - import org.patternfly.components.menu.Menu; | ||
| 2 | - import org.patternfly.components.menu.MenuItem; | ||
| 1 | + import org.patternfly.component.menu.Menu; | ||
| 2 | + import org.patternfly.component.menu.MenuItem; | ||
| 3 | 3 | ||
| 4 | - import static org.patternfly.components.Button.button; | ||
| 5 | - import static org.patternfly.components.menu.Menu.menu; | ||
| 6 | - import static org.patternfly.components.menu.MenuContent.menuContent; | ||
| 7 | - import static org.patternfly.components.menu.MenuFooter.menuFooter; | ||
| 8 | - import static org.patternfly.components.menu.MenuGroup.menuGroup; | ||
| 9 | - import static org.patternfly.components.menu.MenuList.menuList; | ||
| 4 | + import static org.patternfly.component.Button.button; | ||
| 5 | + import static org.patternfly.component.menu.Menu.menu; | ||
| 6 | + import static org.patternfly.component.menu.MenuContent.menuContent; | ||
| 7 | + import static org.patternfly.component.menu.MenuFooter.menuFooter; | ||
| 8 | + import static org.patternfly.component.menu.MenuGroup.menuGroup; | ||
| 9 | + import static org.patternfly.component.menu.MenuList.menuList; | ||
| 10 | 10 | ||
| 11 | 11 | public class MenuDemo { | |
| 12 | 12 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,16 +3,16 @@ | |||
| 3 | 3 | import org.jboss.elemento.Id; | |
| 4 | 4 | ||
| 5 | 5 | import static java.util.Arrays.asList; | |
| 6 | - import static org.patternfly.components.divider.Divider.divider; | ||
| 7 | - import static org.patternfly.components.divider.DividerType.li; | ||
| 8 | - import static org.patternfly.components.navigation.ExpandableNavigationGroup.expandableNavigationGroup; | ||
| 9 | - import static org.patternfly.components.navigation.Navigation.navigation; | ||
| 10 | - import static org.patternfly.components.navigation.NavigationGroup.navigationGroup; | ||
| 11 | - import static org.patternfly.components.navigation.NavigationItem.navigationItem; | ||
| 12 | - import static org.patternfly.components.navigation.NavigationType.Horizontal.primary; | ||
| 13 | - import static org.patternfly.components.navigation.NavigationType.Vertical.expandable; | ||
| 14 | - import static org.patternfly.components.navigation.NavigationType.Vertical.flat; | ||
| 15 | - import static org.patternfly.components.navigation.NavigationType.Vertical.grouped; | ||
| 6 | + import static org.patternfly.component.divider.Divider.divider; | ||
| 7 | + import static org.patternfly.component.divider.DividerType.li; | ||
| 8 | + import static org.patternfly.component.navigation.ExpandableNavigationGroup.expandableNavigationGroup; | ||
| 9 | + import static org.patternfly.component.navigation.Navigation.navigation; | ||
| 10 | + import static org.patternfly.component.navigation.NavigationGroup.navigationGroup; | ||
| 11 | + import static org.patternfly.component.navigation.NavigationItem.navigationItem; | ||
| 12 | + import static org.patternfly.component.navigation.NavigationType.Horizontal.primary; | ||
| 13 | + import static org.patternfly.component.navigation.NavigationType.Vertical.expandable; | ||
| 14 | + import static org.patternfly.component.navigation.NavigationType.Vertical.flat; | ||
| 15 | + import static org.patternfly.component.navigation.NavigationType.Vertical.grouped; | ||
| 16 | 16 | ||
| 17 | 17 | public class NavigationDemo { | |
| 18 | 18 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,16 @@ | |||
| 1 | - import static org.patternfly.components.brand.Brand.brand; | ||
| 2 | - import static org.patternfly.components.Content.content; | ||
| 3 | - import static org.patternfly.components.page.Masthead.pageMasthead; | ||
| 4 | - import static org.patternfly.components.page.MastheadToggle.mastheadToggle; | ||
| 5 | - import static org.patternfly.components.page.Page.page; | ||
| 6 | - import static org.patternfly.components.page.PageMain.pageMain; | ||
| 7 | - import static org.patternfly.components.page.PageMainBody.pageMainBody; | ||
| 8 | - import static org.patternfly.components.page.PageMainBreadcrumb.pageMainBreadcrumb; | ||
| 9 | - import static org.patternfly.components.page.PageMainGroup.pageMainGroup; | ||
| 10 | - import static org.patternfly.components.page.PageMainSection.pageMainSection; | ||
| 11 | - import static org.patternfly.components.page.PageSidebar.pageSidebar; | ||
| 12 | - import static org.patternfly.components.page.SkipToContent.skipToContent; | ||
| 13 | - import static org.patternfly.components.toolbar.Toolbar.toolbar; | ||
| 1 | + import static org.patternfly.component.brand.Brand.brand; | ||
| 2 | + import static org.patternfly.component.Content.content; | ||
| 3 | + import static org.patternfly.component.page.Masthead.pageMasthead; | ||
| 4 | + import static org.patternfly.component.page.MastheadToggle.mastheadToggle; | ||
| 5 | + import static org.patternfly.component.page.Page.page; | ||
| 6 | + import static org.patternfly.component.page.PageMain.pageMain; | ||
| 7 | + import static org.patternfly.component.page.PageMainBody.pageMainBody; | ||
| 8 | + import static org.patternfly.component.page.PageMainBreadcrumb.pageMainBreadcrumb; | ||
| 9 | + import static org.patternfly.component.page.PageMainGroup.pageMainGroup; | ||
| 10 | + import static org.patternfly.component.page.PageMainSection.pageMainSection; | ||
| 11 | + import static org.patternfly.component.page.PageSidebar.pageSidebar; | ||
| 12 | + import static org.patternfly.component.page.SkipToContent.skipToContent; | ||
| 13 | + import static org.patternfly.component.toolbar.Toolbar.toolbar; | ||
| 14 | 14 | ||
| 15 | 15 | public class PageDemo { | |
| 16 | 16 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | * See the License for the specific language governing permissions and | |
| 14 | 14 | * limitations under the License. | |
| 15 | 15 | */ | |
| 16 | - package org.patternfly.components; | ||
| 16 | + package org.patternfly.component; | ||
| 17 | 17 | ||
| 18 | 18 | import elemental2.dom.HTMLImageElement; | |
| 19 | 19 | ||
@@ -27,6 +27,7 @@ | |||
| 27 | 27 | * @see <a href= | |
| 28 | 28 | * "https://www.patternfly.org/v4/documentation/react/components/avatar/">https://www.patternfly.org/v4/documentation/react/components/avatar</a> | |
| 29 | 29 | */ | |
| 30 | + @Deprecated | ||
| 30 | 31 | public class Avatar extends BaseComponent<HTMLImageElement, Avatar> { | |
| 31 | 32 | ||
| 32 | 33 | // ------------------------------------------------------ factory methods | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | * See the License for the specific language governing permissions and | |
| 14 | 14 | * limitations under the License. | |
| 15 | 15 | */ | |
| 16 | - package org.patternfly.components; | ||
| 16 | + package org.patternfly.component; | ||
| 17 | 17 | ||
| 18 | 18 | import org.jboss.elemento.Container; | |
| 19 | 19 | import org.jboss.elemento.Finder; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | * See the License for the specific language governing permissions and | |
| 14 | 14 | * limitations under the License. | |
| 15 | 15 | */ | |
| 16 | - package org.patternfly.components; | ||
| 16 | + package org.patternfly.component; | ||
| 17 | 17 | ||
| 18 | 18 | import org.jboss.elemento.Finder; | |
| 19 | 19 | import org.jboss.elemento.HasElement; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | * See the License for the specific language governing permissions and | |
| 14 | 14 | * limitations under the License. | |
| 15 | 15 | */ | |
| 16 | - package org.patternfly.components; | ||
| 16 | + package org.patternfly.component; | ||
| 17 | 17 | ||
| 18 | 18 | import elemental2.dom.HTMLElement; | |
| 19 | 19 | ||
@@ -27,6 +27,7 @@ | |||
| 27 | 27 | * @see <a href= | |
| 28 | 28 | * "https://www.patternfly.org/components/breadcrumb/html">https://www.patternfly.org/components/breadcrumb/html</a> | |
| 29 | 29 | */ | |
| 30 | + @Deprecated | ||
| 30 | 31 | public class Breadcrumb extends BaseComponent<HTMLElement, Breadcrumb> { | |
| 31 | 32 | ||
| 32 | 33 | // ------------------------------------------------------ factory methods | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | * See the License for the specific language governing permissions and | |
| 14 | 14 | * limitations under the License. | |
| 15 | 15 | */ | |
| 16 | - package org.patternfly.components; | ||
| 16 | + package org.patternfly.component; | ||
| 17 | 17 | ||
| 18 | 18 | import org.jboss.elemento.Elements; | |
| 19 | 19 | import org.jboss.elemento.HTMLContainerBuilder; | |
@@ -48,8 +48,9 @@ | |||
| 48 | 48 | * @see <a href= | |
| 49 | 49 | * "https://www.patternfly.org/v4/documentation/core/components/button">https://www.patternfly.org/v4/documentation/core/components/button</a> | |
| 50 | 50 | */ | |
| 51 | + @Deprecated | ||
| 51 | 52 | public class Button extends BaseComponent<HTMLElement, Button> | |
| 52 | - implements Aria<Button>, Modifiers.Disabled<HTMLElement, Button> { | ||
| 53 | + implements Modifiers.Disabled<HTMLElement, Button> { | ||
| 53 | 54 | ||
| 54 | 55 | // ------------------------------------------------------ factory methods | |
| 55 | 56 | ||
@@ -251,15 +252,9 @@ public Button onClick(Callback callback) { | |||
| 251 | 252 | return this; | |
| 252 | 253 | } | |
| 253 | 254 | ||
| 254 | - // ------------------------------------------------------ aria | ||
| 255 | - | ||
| 256 | - @Override | ||
| 257 | - public Button label(String label) { | ||
| 258 | - return aria(Aria.label, label); | ||
| 259 | - } | ||
| 260 | - | ||
| 261 | 255 | // ------------------------------------------------------ inner classes | |
| 262 | 256 | ||
| 257 | + @Deprecated | ||
| 263 | 258 | public enum Type { | |
| 264 | 259 | ||
| 265 | 260 | SUBMIT("submit"), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments