Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Nebula TitledSeparator"
(Created page with "==Introduction== File:TitledSeparator.png An enhanced separator, with a title and/or an image. ==Usage== The titled separator is composed of a text and optionally an i...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Nebula|< Back to Nebula Main Page]] | ||
+ | |||
==Introduction== | ==Introduction== | ||
Line 4: | Line 6: | ||
An enhanced separator, with a title and/or an image. | An enhanced separator, with a title and/or an image. | ||
+ | |||
+ | __TOC__ | ||
==Usage== | ==Usage== | ||
Line 17: | Line 21: | ||
An example called TitledSeparatorSnippet.java is located in the plugin '''org.eclipse.nebula.widgets.opal.titledseparator.snippets'''. | An example called TitledSeparatorSnippet.java is located in the plugin '''org.eclipse.nebula.widgets.opal.titledseparator.snippets'''. | ||
− | This example is also available here : https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/tree/widgets/opal/titledseparator/org.eclipse.nebula.widgets.opal.titledseparator.snippets/src/org/eclipse/nebula/widgets/opal/titledseparator/snippets/TitledSeparatorSnippet.java | + | This example is also available here : [https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/tree/widgets/opal/titledseparator/org.eclipse.nebula.widgets.opal.titledseparator.snippets/src/org/eclipse/nebula/widgets/opal/titledseparator/snippets/TitledSeparatorSnippet.java TitledSeparatorSnippet.java] |
Revision as of 06:41, 21 February 2018
Introduction
An enhanced separator, with a title and/or an image.
Contents
Usage
The titled separator is composed of a text and optionally an image, initialized by the methods setText()
and setImage()
.
You can change the alignment of the text (left, center, right) by using the method setAlignment(int value)
with the following values : SWT.LEFT, SWT.CENTER and SWT.LEFT.
Finally, you can change the foreground color, the background color and the font by using the setters setForeground()
, setBackground()
and setFont()
.
Example
An example called TitledSeparatorSnippet.java is located in the plugin org.eclipse.nebula.widgets.opal.titledseparator.snippets.
This example is also available here : TitledSeparatorSnippet.java