Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Antwort: Re: Antwort: RE: [nebula-dev] Nebulawidget to choose only the year


This was a good idea and works fine! Thanks!

Regards,
Paul


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





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 <SebP@xxxxxxxxxxxxx>
> An:                  Nebula Dev <nebula-dev@xxxxxxxxxxx>
> Datum:                  14.10.2009 16:12
> Betreff:                  Antwort: RE: [nebula-dev] Nebulawidget to choose only the year
> Gesendet von:                  nebula-dev-bounces@xxxxxxxxxxx
>
>
> ------------------------------------------------------------------------
>
>
>
>
> Thanks for the hint. I will try to use the Spinner widget.
>
> Von:                  Roland Tepp <roland@xxxxxxxxxxxx>
> An:                  "nebula-dev@xxxxxxxxxxx" <nebula-dev@xxxxxxxxxxx>
> Datum:                  14.10.2009 14:56
> Betreff:                  RE: [nebula-dev] Nebulawidget to choose only the year
> Gesendet von:                  nebula-dev-bounces@xxxxxxxxxxx
>
>
>
> ------------------------------------------------------------------------
>
>
>
> Why does not SWT Spinner widget suite your needs?
>  
>  *
> From:* nebula-dev-bounces@xxxxxxxxxxx
> [_mailto:nebula-dev-bounces@eclipse.org_] *On Behalf Of *Paul Seibt*
> Sent:* Wednesday, October 14, 2009 3:31 PM*
> To:* nebula-dev@xxxxxxxxxxx*
> 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
> nebula-dev@eclipse.org_
> __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
> nebula-dev@xxxxxxxxxxx
>
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
> nebula-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/nebula-dev
_______________________________________________
nebula-dev mailing list
nebula-dev@xxxxxxxxxxx
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

____________________________________________________________________

Back to the top