Handle events happend in sub composites [message #461965] |
Fri, 19 January 2007 02:40 |
Eclipse User |
|
|
|
Originally posted by: partyhut.internode.on.net
Hi all,
I have a top level composite "A" which contains 2 sub-composites B and
C. I want A to response to button click and Keyup events happened in B
and C and do some validation of the data user put in B and C. I tried
to add A as a listener of B and C but it didn't work.... I was just
wondering what's the best way to do it. Thank you in advance.
Regards,
HS
|
|
|
Re: Handle events happend in sub composites [message #461968 is a reply to message #461965] |
Fri, 19 January 2007 05:26 |
Eclipse User |
|
|
|
Originally posted by: partyhut.internode.on.net
btw, I am new to this stuff. so if it is not recommended to use sub
composites, please let me know. :)
public class CompA extends Composite
{
new CompB(this);
new CompC(this);
//Here I want to response to user event in CompB and CompC (text input,
check check box) and do some validation.
}
public class CompB extends Composite{}
public class CompC extends Composite{}
Cheers
HS
HS wrote:
> Hi all,
>
> I have a top level composite "A" which contains 2 sub-composites B and
> C. I want A to response to button click and Keyup events happened in B
> and C and do some validation of the data user put in B and C. I tried
> to add A as a listener of B and C but it didn't work.... I was just
> wondering what's the best way to do it. Thank you in advance.
>
> Regards,
> HS
|
|
|
|
Powered by
FUDForum. Page generated in 0.03802 seconds