Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » password style cells in table
password style cells in table [message #444667] Wed, 20 October 2004 04: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 05: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 11: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 12:03 Go to previous messageGo to next message
Eclipse UserFriend
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 07: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 15:32 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 00:02:27 EDT 2025

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

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

Back to the top