Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Handle events happend in sub composites
Handle events happend in sub composites [message #461965] Fri, 19 January 2007 02:40 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Handle events happend in sub composites [message #461989 is a reply to message #461968] Sat, 20 January 2007 00:40 Go to previous message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 22
Registered: July 2009
Junior Member
eh? extends Composite ???


HS wrote:
> 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
Previous Topic:IViewActionDelegate and doubleClick
Next Topic:connection to Mysql Database
Goto Forum:
  


Current Time: Tue Apr 23 18:00:17 GMT 2024

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

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

Back to the top