DualList - lcaron/opal GitHub Wiki

Introduction

https://raw.githubusercontent.com/lcaron/opal/wiki/images/duallist.jpg

This widget allows the user to select one or many elements, and order them. I code this one because I was not satisfied by the existent widgets I found on the Internet.

Usage

The usage is pretty simple, because the API is very similar to the List API. You can easily add or remove one or many elements, select one or many elements, clear the widget or add selection listener(s).

The widget displays DLItems

DLItem

A DLItem is a POJO where you can store :

  • A text
  • An image
  • A background color
  • A foreground color
  • Data

Example

An example called DualListSnippet is available in the directory src/test/java/org/mihalis/opal/itemSelector.

This example is also available here : https://github.com/lcaron/opal/blob/master/src/test/java/org/mihalis/opal/itemSelector/DualListSnippet.java