Difference between revisions of "Images for EnumComboBox"

From OS.bee documentation
Jump to: navigation, search
(Created page with "Using a EnumComboBox with images requires the creation and the storage of PNG-Images.<BR> The images have to be from type PNG and the name has to be combined by the name of th...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Using a EnumComboBox with images requires the creation and the storage of PNG-Images.<BR>
 
Using a EnumComboBox with images requires the creation and the storage of PNG-Images.<BR>
 
The images have to be from type PNG and the name has to be combined by the name of the enum class that hosts the combo box, the name of the enum literal and finally the postfix "image", e.g. ''TicketResolution.OPEN.image.png''.<BR>
 
The images have to be from type PNG and the name has to be combined by the name of the enum class that hosts the combo box, the name of the enum literal and finally the postfix "image", e.g. ''TicketResolution.OPEN.image.png''.<BR>
This images have to be stored with the corresponding theme icon subfolder within the bundle '''org.eclipse.osbp.themes''' in the git repository '''org.eclipse.osbp.vaadin.widgetset'''.<BR>
+
This images have to be stored with the corresponding theme icon subfolder within the bundle '''org.eclipse.osbp.themes'''.<BR>
Alternatively you can create an own fragment bundle with the bundle '''org.eclipse.osbp.themes''' as host plug-in. Important is that you also creates the corresponding theme icon subfolder and uses the required image file name as mentioned above and described below.
+
Therefore create your own fragment bundle. The fragments name is not relevant, but it important to have the bundle '''org.eclipse.osbp.themes''' as host plug-in.<BR> Important is also that you create the corresponding theme icon subfolder and uses the required image file name as mentioned above and described below.
  
 
== Path: ==
 
== Path: ==

Latest revision as of 14:57, 14 March 2017

Using a EnumComboBox with images requires the creation and the storage of PNG-Images.
The images have to be from type PNG and the name has to be combined by the name of the enum class that hosts the combo box, the name of the enum literal and finally the postfix "image", e.g. TicketResolution.OPEN.image.png.
This images have to be stored with the corresponding theme icon subfolder within the bundle org.eclipse.osbp.themes.
Therefore create your own fragment bundle. The fragments name is not relevant, but it important to have the bundle org.eclipse.osbp.themes as host plug-in.
Important is also that you create the corresponding theme icon subfolder and uses the required image file name as mentioned above and described below.

Path:

org.eclipse.osbp.vaadin.widgetset\org.eclipse.osbp.themes\VAADIN\themes\<usedTheme>\icon\

Name:

<EnumClassName>.<EnumLiteral>.image.png (e.g. TicketResolution.OPEN.image.png)