javafx - Implement Path Navigation bar (Breadcrumb bar) control -


i want generate ui can navigate through path of tree structure. here example of want, taken javafx scene builder.

depending on actual position in treeview, ui updated. clicking on individual items tree updated.

enter image description here

my question: nodes/controls best used approach? (no full code required. mention name of controls).

my first idea generate row of buttons closely each other, maybe there better ideas.

thanks.

you can use controlsfx's breadcrumbbar

enter image description here

breadcrumbbar<string> samplebreadcrumbbar = new breadcrumbbar<>();  treeitem<string> model = breadcrumbbar.buildtreemodel("hello", "world", "this", "is", "cool"); samplebreadcrumbbar.setselectedcrumb(model);  samplebreadcrumbbar.setoncrumbaction(new eventhandler<breadcrumbbar.breadcrumbactionevent<string>>() {         @override public void handle(breadcrumbactionevent<string> bae) {             selectedcrumblbl.settext("you clicked on '" + bae.getselectedcrumb() + "'!");         } }); 

https://bitbucket.org/eryzhikov/controlsfx/src/214da980bcfbbc8c2658713ce6ccdebb64d3f0c6/controlsfx-samples/src/main/java/org/controlsfx/samples/button/hellobreadcrumbbar.java


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -