Skip to content
Haixing Hu edited this page Sep 18, 2014 · 5 revisions

This is the BreadCrumb toolbar comes from the OPAL project.

Usage

Screen Shot of the BreadCrumb Toolbar

final BreadCrumb bc = new BreadCrumb(shell, SWT.BORDER);

final BreadCrumbItem labelItem = new BreadCrumbItem(bc, SWT.CENTER|SWT.NONE);
labelItem.setText("Label");

final BreadCrumbItem buttonItem = new BreadCrumbItem(bc, SWT.CENTER|SWT.PUSH);
buttonItem.setText("Button");

final BreadCrumbItem toggleItem = new BreadCrumbItem(bc, SWT.CENTER|SWT.TOGGLE);
toggleItem.setText("Toggle");
toggleItem.setImage(toggleImage);
toggleItem.setSelectionImage(toggleSelectionImage);

Example

An example is located in the source repository:

src/test/java/com/github/haixing_hu/swt/toolbar/BreadCrumbExample.java
Clone this wiki locally