Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » password style cells in table
password style cells in table [message #444667] Wed, 20 October 2004 08:05 Go to next message
Eclipse UserFriend
Originally posted by: myname.myname.info

Is it possible to have the subject?
Instead of showing the actual content of a cell, to have some dots there.
Re: password style cells in table [message #444669 is a reply to message #444667] Wed, 20 October 2004 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cbr.teamlog.com

Use setEchoChar(String) (Text class).

-MaRc

"MyName" <myname@myname.info> a
Re: password style cells in table [message #444693 is a reply to message #444669] Wed, 20 October 2004 15:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myname.myname.info

I know that is possible to have password style in Text class, but I want
the same thing in a table cell (or row, or column) if it's possible.

Takaido wrote:

> Use setEchoChar(String) (Text class).

> -MaRc

> "MyName" <myname@myname.info> a écrit dans le message de news:
> cl567r$ig5$1@eclipse.org...
> >
> > Is it possible to have the subject?
> > Instead of showing the actual content of a cell, to have some dots there.
> >
> >
Re: password style cells in table [message #444695 is a reply to message #444693] Wed, 20 October 2004 16:03 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Not supported by Table directly. Since the purpose of the echo char is to
not show what the user is typing, it does not make sense in the Table
because Table is read only. You could place a Text editor in the cell.

"MyName" <myname@myname.info> wrote in message
news:cl5vv9$c1d$1@eclipse.org...
>
> I know that is possible to have password style in Text class, but I want
> the same thing in a table cell (or row, or column) if it's possible.
>
> Takaido wrote:
>
>> Use setEchoChar(String) (Text class).
>
>> -MaRc
>
>> "MyName" <myname@myname.info> a
Re: password style cells in table [message #444852 is a reply to message #444693] Thu, 21 October 2004 11:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: notavalidaddress.notavaliddomain.com

Is the table just going to display the values or are you using a cell
editor?

If you're just displaying it, wrap the Table around a TableViewer and create

a ITableLabelProvider that will only display echo chars for that cell.

If you're using a cell editor, and I assume you will use a TextCellEditor,

you can call getControl() and cast the value to Text, and then set the echo
char.

Hope this helps.

"MyName" <myname@myname.info> wrote in message
news:cl5vv9$c1d$1@eclipse.org...
>
> I know that is possible to have password style in Text class, but I want
> the same thing in a table cell (or row, or column) if it's possible.
>
> Takaido wrote:
>
> > Use setEchoChar(String) (Text class).
>
> > -MaRc
>
> > "MyName" <myname@myname.info> a
Re: password style cells in table [message #445092 is a reply to message #444669] Mon, 25 October 2004 19:32 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Use the SWT.PASSWORD style when the Text is created to get the right echo
character for the platform.

"Takaido" <cbr@teamlog.com> wrote in message
news:cl5bor$tg3$1@eclipse.org...
> Use setEchoChar(String) (Text class).
>
> -MaRc
>
> "MyName" <myname@myname.info> a
Previous Topic:catch mouse exit popupmenu event!
Next Topic:how to prevent stretching of images in swt table
Goto Forum:
  


Current Time: Tue Apr 23 14:17:05 GMT 2024

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

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

Back to the top