Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Still unanswered: Re: Weird problem with ICellValidator
Still unanswered: Re: Weird problem with ICellValidator [message #159837] Tue, 30 November 2004 19:54
Eclipse UserFriend
Originally posted by: pavan.podila.gmail.com

This is a multi-part message in MIME format.
--------------090405030804020201090208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Thanks, that answers a part of my query. I still don't understand how
the text of my label is getting set when I change the value inside the
TextCellEditor. I haven't written any explicit code to do that. Can you
tell me how that is happening.
I am using the schema editor code (Database schema editor article) and
over there the label is getting resized irrespective of the validity of
the string entered.


news.eclipse.org wrote:

>The label grows as you're typing because its text is set to what you're
>entering in the TextCellEditor. The answer to your query is in the javadoc
>of CellEditor's getValue() method. It will return null if the value is not
>valid.
>
>
>"Pavan Podila" <pavan.podila@gmail.com> wrote in message
>news:coacnp$5t8$1@www.eclipse.org...
>
>
>>Hi,
>> I have attached a CellValidator for the TextCellEditor of my label.
>>When I type my text in the TextCellEditor, the label size automatically
>>grows. However when the isValid() of the CellValidator returns a string
>>error message, the label size stops growing and resizes just big enough
>>to fit one character. I am attaching the screenshots below for the two
>>cases. What could be the problem?
>>
>>thanks in advance,
>>Pavan
>>
>>
>>
>
>
> ------------------------------------------------------------ ----------------
>----
>
>
>
>
>
>
> ------------------------------------------------------------ ----------------
>----
>
>
>
>
>
>
>
>

--------------090405030804020201090208
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-western"> <tt>Thanks, that answers
a part of my query. I still don't understand
how the text of my label is getting set when I change the value inside
the TextCellEditor. I haven't written any explicit code to do that. Can
you tell me how that is happening.<br>
I am using the schema editor code (Database schema editor article) and
over there the label is getting resized irrespective of the validity of
the string entered.</tt><br>
<br>
<br>
news.eclipse.org wrote:
<blockquote cite="midcoasg3$o9q$1@www.eclipse.org" type="cite">
<pre wrap="">The label grows as you're typing because its text is set to what you're
entering in the TextCellEditor. The answer to your query is in the javadoc
of CellEditor's getValue() method. It will return null if the value is not
valid.


"Pavan Podila" <a class="moz-txt-link-rfc2396E"
href="mailto:pavan.podila@gmail.com">&lt;pavan.podila@gmail.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext"
href="news:coacnp$5t8$1@www.eclipse.org">news:coacnp$5t8$1@www.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I have attached a CellValidator for the TextCellEditor of my label.
When I type my text in the TextCellEditor, the label size automatically
grows. However when the isValid() of the CellValidator returns a string
error message, the label size stops growing and resizes just big enough
to fit one character. I am attaching the screenshots below for the two
cases. What could be the problem?

thanks in advance,
Pavan

</pre>
</blockquote>
<pre wrap=""><!---->

------------------------------------------------------------ ----------------
----






------------------------------------------------------------ ----------------
----






</pre>
</blockquote>
</div>
</body>
</html>

--------------090405030804020201090208--
Previous Topic:Figure export OutOfMemory
Next Topic:TextFlow and BlockFlow is-a Figure?
Goto Forum:
  


Current Time: Sat Apr 27 01:58:27 GMT 2024

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

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

Back to the top