Software
EPL LICENSE
|
||||||||
External SiteThis widget is under the Eclipse Nebula project, which is a group of custom written widgets that are not part of the standard SWT api but perhaps aim to be so in the future. This site contains more information and also example snippets that are very useful to understanding how to use the widget. Please visit the Nebula homepage for more information. | ||||||||
LicenseThe Calendar Combo is released under the EPL (Eclipse Public License). It is imperetive that you understand what this license allows you to do. If you do not know what this license entails, please read the full license here: | ||||||||
DownloadNightly builds for JAR's, source and API.
| ||||||||
Screenshots
| ||||||||
UsageAs the widgets is more or less handled like your typical Combo box (with a few extra features), you should find using the widget very simple. The constructor has optional extras as well, but by default the widget can be created as if it was any other SWT Combo box. As you can tell by the screenshots, there is no custom Combo box implementation wrapped inside the Calendar Combo Widget, but instead, it is a native Combo box, so whatever OS you use it on, it should take the same appearance as the combo box of that operating system.
Normal Creation
CalendarCombo cCombo = new CalendarCombo(parent, SWT.READ_ONLY)
Initial Dependency Example
To mimic a feature that exists in Microsoft Outlook there are some optional parameters you may pass into the constructor. One of the features is that you can pass in a CalendarCombo box as one parameter. The effect of this will be that when the combo box is dropped down, the initially shown start date is the selected date of the Calendar Combo box that is passed as a parameter. To explain this further, here's a real life example:
CalendarCombo startCombo = new CalendarCombo(parent, SWT.READ_ONLY);
| ||||||||
Listening to EventsYou listen to events just like you would on a normal Combo:
There is also an adapter if you don't want to implement all the methods for each listener you are introducing. The adapter is called | ||||||||
AdvancedYou can customize a lot of what you see, however, it is rather limited (compared to the other Widgets on this site). There are two interfaces that will be of interest to you.» The name in bold is the name of the interface. » The name inside the [brackets] is the name of the default class implementing the interface. » The name inside the (parenthesis) is the name of the abstract class. ISettings [DefaultSettings] (AbstractSettings)
This interface is probably the most likely that you will be implementing on your own. Each item has an accompanying JavaDoc entry, so please see the API for more information. ISettings covers items such as spacing, text defaults, etc.
This interface allows you to control every color used when painting everything that's visible in the calendar popup.
| ||||||||




















