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.
Nebula StarRating
Revision as of 09:20, 18 February 2018 by Unnamed Poltroon (Talk)
Introduction
A simple star rating toolbar that allows the user to rate anything.
Contents
Usage
This is very simple : you instantiate a StarRating
widget, you set the size of stars (SMALL,BIG) and the number of stars :
final StarRating sr = new StarRating(shell, SWT.NONE); sr.setSizeOfStars(SIZE.SMALL); sr.setMaxNumberOfStars(10);
And voilà !
Examples
An example called StarRatingSnippet.java is located in the snippet org.eclipse.nebula.widgets.opal.starrating.snippets.
This example is also available here : https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/tree/widgets/opal/starrating/org.eclipse.nebula.widgets.opal.starrating.snippets/src/org/eclipse/nebula/widgets/opal/starrating/snippets/StarRatingSnippet.java