This was a good idea and works fine! Thanks!

Regards, 
Paul



Von:
Eric Wuillai <[email protected]>
An:
Nebula Dev <[email protected]>
Datum:
14.10.2009 21:29
Betreff:
Re: Antwort: RE: [nebula-dev] Nebulawidget to choose only the year
Gesendet von:
[email protected]



I never tried it before today, but it is possible with FormattedText.
Try the following code :

FormattedText text = new FormattedText(shell, SWT.BORDER);
text.setFormatter(new DateFormatter("yyyy"));

The input will be restricted only to the year, with up and down arrows
support to increment / decrement the value. If leaved empty or cleared,
it returns null, otherwise a date value is returned.

Regards,
Eric

> 
> This is unfortunately not the correct widget for me. The field I would
> like to fill is optional. The Spinner widget expects always an input.
> <ende?lp=ende&p=5tY9AA&search=unfortunately> Perhaps any other ideas?
> 
> 
> Von:           Paul Seibt <[email protected]>
> An:            Nebula Dev <[email protected]>
> Datum:                 14.10.2009 16:12
> Betreff:               Antwort: RE: [nebula-dev] Nebulawidget to choose 
only the year
> Gesendet von:                  [email protected]
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> 
> Thanks for the hint. I will try to use the Spinner widget.
> 
> Von:           Roland Tepp <[email protected]>
> An:            "[email protected]" <[email protected]>
> Datum:                 14.10.2009 14:56
> Betreff:               RE: [nebula-dev] Nebulawidget to choose only the 
year
> Gesendet von:                  [email protected]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> Why does not SWT Spinner widget suite your needs?
> 
>  *
> From:* [email protected]
> [_mailto:[email protected]_] *On Behalf Of *Paul Seibt*
> Sent:* Wednesday, October 14, 2009 3:31 PM*
> To:* [email protected]*
> Subject:* [nebula-dev] Nebulawidget to choose only the year
> 
> 
> Hello together,
> 
> I need a widget with wihich I'm able to choose the year and only the
> year. This means without choosing the day and month. Is it possible to
> configure a nebulawidget like this or have I to search for another
> solution?
> 
> Kind regards Paul
> 
> 
> 
> ____________________________________________________________________
> 
> Viessmann IT Service GmbH
> Geschäftsführer: Dirk Klöckner, Dr. Harald Dörnbach
> Sitz der Gesellschaft: Allendorf (Eder) - Registergericht:
> AG Marburg (Lahn) - HRB 5324 - USt-IdNr.: DE258558424
> 
____________________________________________________________________[Anhang
> "smime.p7s" gelöscht von Paul Seibt/Allendorf/VIESSMANN/DE]
> _______________________________________________
> nebula-dev mailing list
> [email protected]_
> __https://dev.eclipse.org/mailman/listinfo/nebula-dev_
> 
> 
> 
> 
> 
> 
> ____________________________________________________________________
> 
> Viessmann IT Service GmbH
> Geschäftsführer: Dirk Klöckner, Dr. Harald Dörnbach
> Sitz der Gesellschaft: Allendorf (Eder) - Registergericht:
> AG Marburg (Lahn) - HRB 5324 - USt-IdNr.: DE258558424
> 
___________________________________________________________________________________________________________________
> nebula-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/nebula-dev
> 
> 
> 
> 
> 
> 
> ____________________________________________________________________
> 
> Viessmann IT Service GmbH
> Geschäftsführer: Dirk Klöckner, Dr. Harald Dörnbach
> Sitz der Gesellschaft: Allendorf (Eder) - Registergericht:
> AG Marburg (Lahn) - HRB 5324 - USt-IdNr.: DE258558424
> ____________________________________________________________________
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> nebula-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/nebula-dev
_______________________________________________
nebula-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/nebula-dev







____________________________________________________________________

Viessmann IT Service GmbH
Geschäftsführer: Dirk Klöckner, Dr. Harald Dörnbach
Sitz der Gesellschaft: Allendorf (Eder) - Registergericht: 
AG Marburg (Lahn) - HRB 5324 - USt-IdNr.: DE258558424
____________________________________________________________________
_______________________________________________
nebula-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to