Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Nebula Duallist"

m
(DLItem)
Line 23: Line 23:
 
* A foreground color
 
* A foreground color
 
* Data
 
* Data
 +
 +
To initialize the widget you can :
 +
* Set the list of items then call a "select" method
 +
* Set the list of items. The selected items are flagged with the method "setSelected"
  
 
==Example==
 
==Example==

Revision as of 08:49, 9 June 2021

< Back to Nebula Main Page

Introduction

Duallist.jpg

This widget allows the user to select one or many elements, and order them.

Usage

The usage is pretty simple, because the API is very similar to the SWT 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 get/set

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

To initialize the widget you can :

  • Set the list of items then call a "select" method
  • Set the list of items. The selected items are flagged with the method "setSelected"

Example

Examples are available in the plug-in org.eclipse.nebula.widgets.opal.duallist.snippets.

These examples are also available here:

Back to the top