Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » EditMask available?
EditMask available? [message #458458] Wed, 13 July 2005 19:46 Go to next message
Alex Shneyderman is currently offline Alex ShneydermanFriend
Messages: 71
Registered: July 2009
Member
Is there an edit mask capable text control somewhere?

Thanks,
Alex.
Re: EditMask available? [message #458460 is a reply to message #458458] Wed, 13 July 2005 20:36 Go to previous messageGo to next message
Kalman Hazins is currently offline Kalman HazinsFriend
Messages: 76
Registered: July 2009
Member
You can use verificationlistener to control the input of your textfield. In
Swing you just use the JTextVerifier, but SWT doesn't have anything as nice.

I am sure they'll fix that before 4.1 :).

Thanx,

- Kalman

"Alex Shneyderman" <alex@law.columbia.edu> wrote in message
news:<db3r7g$96k$1@news.eclipse.org>...

> Is there an edit mask capable text control somewhere?

>

> Thanks,

> Alex.

>

>

"Alex Shneyderman" <alex@law.columbia.edu> wrote in message
news:db3r7g$96k$1@news.eclipse.org...
> Is there an edit mask capable text control somewhere?
>
> Thanks,
> Alex.
>
Re: EditMask available? [message #458529 is a reply to message #458458] Thu, 14 July 2005 14:36 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Here are some snippets that use the text verify listener to filter input:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet19.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup
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

"Alex Shneyderman" <alex@law.columbia.edu> wrote in message
news:db3r7g$96k$1@news.eclipse.org...
> Is there an edit mask capable text control somewhere?
>
> Thanks,
> Alex.
>
>
Previous Topic:Image Flicker With Mouse Move
Next Topic:New nested layout failure at 3.1RC1
Goto Forum:
  


Current Time: Fri Mar 29 05:32:12 GMT 2024

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

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

Back to the top