Skip to content

Breadcrumb

lcaron edited this page Jul 5, 2015 · 1 revision

Introduction

https://raw.githubusercontent.com/lcaron/opal/wiki/images/breadcrumb.png

A simple breadcrumb toolbar.

Usage

This is very simple : you instantiate a Breadcrumb object and then you create BreadcrumbItems :

final Breadcrumb bc = new Breadcrumb(shell, breadCrumbArgument);
final BreadcrumbItem item = new BreadcrumbItem(bc, SWT.PUSH);
item.setText("Text");

And voilà !

The BreadcrumbItem can be labels (style SWT.NONE), buttons (style SWT.PUSH) or toggle buttons (style SWT.TOGGLE).

Examples

An example called BreadcrumbSnippet.java is located in the directory src/test/java/org/mihalis/opal/breadcrumb.

This example is also available here :

Clone this wiki locally