简体   繁体   中英

How to add BreadCrumbs in my vaadin application?

I am developing a vaadin application in which I want to implement bread crumbs. Can any one tell me how to add that functionality.

There is a breadcrumb add-on for Vaadin already implemented.

Feel free to download it from add-on directory

Short answer: you need to create the harness to build the tree of links(buttons): enums, listeners, events. Vaadin's add-on can't handle that out of the box. API doesn't even allow to clean the list of buttons. Good tutorial: guidance

It is more of a backend problem with a front end visualization. You have to create some sort of API that gathers up the steps that you think is relevant and then the UI asks for a representation and prints them out as button or something.

Here's one suggestion for the API for a breadcrumb class out of countless possibilities:

public void append(Step)
public void set(List<Step>)
public void clear()
public List<Step> getBreadcrumb()

Step would contain a public name shown to the user as well as a method that gets you back to that step.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM