Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » data input verifying
data input verifying [message #463594] Thu, 10 November 2005 13:34 Go to next message
Eclipse UserFriend
Originally posted by: zmfeng.21cn.com

I used to be a PowerBuilder programmer,now trying to port some program
to swt. in the case of powerbuilder,there's a control named EditMask,when
you use it,for example,set it's data type to a date format,and them set the
mask to "yyyy/mm/dd",the input space will have " / / " as default and
when you input a date,it do verify on the fly,it's good to use. the EditMask
under PowerBuilder have many mask read for usage and it's good to use.
Now in the case of SWT,I can't find a relative control about this,can
someone help me!
Thanks alot!
zmFeng
Re: data input verifying [message #463595 is a reply to message #463594] Thu, 10 November 2005 14:09 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See the following examples:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet179.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet196.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

"zmFeng" <zmfeng@21cn.com> wrote in message
news:dkvi90$pae$1@news.eclipse.org...
> I used to be a PowerBuilder programmer,now trying to port some program
> to swt. in the case of powerbuilder,there's a control named EditMask,when
> you use it,for example,set it's data type to a date format,and them set
> the mask to "yyyy/mm/dd",the input space will have " / / " as default
> and when you input a date,it do verify on the fly,it's good to use. the
> EditMask under PowerBuilder have many mask read for usage and it's good to
> use.
> Now in the case of SWT,I can't find a relative control about this,can
> someone help me!
> Thanks alot!
> zmFeng
>
>
Re: data input verifying [message #463597 is a reply to message #463595] Thu, 10 November 2005 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zmfeng.21cn.com

Thank you for your help,Veronika Irvine. this snippets does help
something,but in the case of powerbuilder,it's validation is on the fly,that
means, when you try to type 31 in the month field,it won't let you go,it
doesn't like the one in snippet179,I call it post-validation.by the way,the
snippet only assume my date mask to be yyyy/mm/dd,but sometimes there will
be chance to use mm/dd/yy or event mm/dd hh:mm or something like
that.PowerBuilder can handle this very well,but as I know,SWT can't do
this.....
can any one else provide more information about this??
Thanks!
"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:dkvkao$sng$1@news.eclipse.org...
> See the following examples:
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet179.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet196.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>
> "zmFeng" <zmfeng@21cn.com> wrote in message
> news:dkvi90$pae$1@news.eclipse.org...
>> I used to be a PowerBuilder programmer,now trying to port some program
>> to swt. in the case of powerbuilder,there's a control named EditMask,when
>> you use it,for example,set it's data type to a date format,and them set
>> the mask to "yyyy/mm/dd",the input space will have " / / " as
>> default and when you input a date,it do verify on the fly,it's good to
>> use. the EditMask under PowerBuilder have many mask read for usage and
>> it's good to use.
>> Now in the case of SWT,I can't find a relative control about this,can
>> someone help me!
>> Thanks alot!
>> zmFeng
>>
>>
>
>
Re: data input verifying [message #463606 is a reply to message #463597] Thu, 10 November 2005 17:32 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
no, you haven't this in swt - you have to make this behaviour

zmFeng wrote:

> Thank you for your help,Veronika Irvine. this snippets does help
> something,but in the case of powerbuilder,it's validation is on the
> fly,that means, when you try to type 31 in the month field,it won't let
> you go,it doesn't like the one in snippet179,I call it post-validation.by
> the way,the snippet only assume my date mask to be yyyy/mm/dd,but
> sometimes there will be chance to use mm/dd/yy or event mm/dd hh:mm or
> something like that.PowerBuilder can handle this very well,but as I
> know,SWT can't do this.....
> can any one else provide more information about this??
> Thanks!
> "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
> news:dkvkao$sng$1@news.eclipse.org...
>> See the following examples:
>>
>>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet179.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>>
>>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet196.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>>
>> "zmFeng" <zmfeng@21cn.com> wrote in message
>> news:dkvi90$pae$1@news.eclipse.org...
>>> I used to be a PowerBuilder programmer,now trying to port some
>>> program
>>> to swt. in the case of powerbuilder,there's a control named
>>> EditMask,when you use it,for example,set it's data type to a date
>>> format,and them set
>>> the mask to "yyyy/mm/dd",the input space will have " / / " as
>>> default and when you input a date,it do verify on the fly,it's good to
>>> use. the EditMask under PowerBuilder have many mask read for usage and
>>> it's good to use.
>>> Now in the case of SWT,I can't find a relative control about this,can
>>> someone help me!
>>> Thanks alot!
>>> zmFeng
>>>
>>>
>>
>>
Re: data input verifying [message #463703 is a reply to message #463594] Sun, 13 November 2005 03:20 Go to previous message
Vitor Tortorello is currently offline Vitor TortorelloFriend
Messages: 6
Registered: July 2009
Junior Member
see also: Date / DateTime and Text Mask oct/16/2005

Vitor

"zmFeng" <zmfeng@21cn.com> escreveu na mensagem
news:dkvi90$pae$1@news.eclipse.org...
> I used to be a PowerBuilder... EditMask...
>
Previous Topic:JFace Action and Thread -> QUID ? Why no GUI refresh ???
Next Topic:Wizard and WizardPage
Goto Forum:
  


Current Time: Fri Mar 29 07:39:09 GMT 2024

Powered by FUDForum. Page generated in 0.07483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top