Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » AbstractMasterDetailsComposite(moving some methods from private to protected)
AbstractMasterDetailsComposite [message #499544] Mon, 23 November 2009 05:25 Go to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe Elvis
Messages: 25
Registered: July 2009
Junior Member

HI,
is it possible to change the signature of some methods in the AbstractMasterDetailsComposite class to protected. Such as:
->createMaster()
->createTableComposite()

Main reason, i would like to position the buttons in horizontal row at the bottom. May be you have an idea of achieving this without having to overwrite the createMaster and subsequently createTableComposite(since its private) methods.

Thanks in advance.

Another alternative will be to implement a new MasterDetailComposite
Re: AbstractMasterDetailsComposite [message #499565 is a reply to message #499544] Mon, 23 November 2009 06:32 Go to previous messageGo to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe Elvis
Messages: 25
Registered: July 2009
Junior Member

Hi, found a solution to my problem.
In future I will see to it that i take closer look at APIs before complaining.

For those interested, you can reposition the button in the MasterDatetailComposite by overriding the method createButtons(Composite parent) by just returning null. You are then responsible of adding the buttons to the ui where ever you wish(You most add the three compulsory button new, remove and apply).
For more docu take a closer look at the method createButtons(what i should have done).

Re: AbstractMasterDetailsComposite [message #499599 is a reply to message #499565] Mon, 23 November 2009 08:55 Go to previous messageGo to next message
Christian Campo is currently offline Christian Campo
Messages: 590
Registered: July 2009
Senior Member
Ngwa Ambe Elvis schrieb:
> Hi, found a solution to my problem. In future I will see to it that i
> take closer look at APIs before complaining.
>
> For those interested, you can reposition the button in the
> MasterDatetailComposite by overriding the method createButtons(Composite
> parent) by just returning null. You are then responsible of adding the
> buttons to the ui where ever you wish(You most add the three compulsory
> button new, remove and apply). For more docu take a closer look at the
> method createButtons(what i should have done).
>
>
no problem, cool that you found a solution yourself....

There are at least 2 demos for the MasterDetail with different buttons. So you can see how that works.
We also had requests for different update strategies, update on apply button, or update on focus lost in the detail fields.

christian
Re: AbstractMasterDetailsComposite & Removebutton [message #503006 is a reply to message #499599] Thu, 10 December 2009 10:00 Go to previous messageGo to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe Elvis
Messages: 25
Registered: July 2009
Junior Member

How should I go about adding a sort of a Veto-Listener to the romovebutton ridget.
what I intend to do, is to delete the given selected item from the database but will like ask the user if he really wants to delete the given item.

Presently default action-listener simple removes the item from the table and detail ridgets. Adding a second Listener to the removeButton ridget does'nt help since you no longer have acces to the removed item(since its no more there, removed by the default listener). The only possibility to grap the item is to add a listener directly to the table ridget and get hold of the oldvalue when ever the remove button is clicked.


Thanks in advance
Re: AbstractMasterDetailsComposite & Removebutton [message #503140 is a reply to message #503006] Thu, 10 December 2009 19:28 Go to previous messageGo to next message
Elias Volanakis is currently offline Elias Volanakis
Messages: 43
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------020101060307070307080804
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Ngwa Ambe Elvis wrote:
> How should I go about adding a sort of a Veto-Listener to the
> romovebutton ridget.

Hi,

I've bad news and good news.

The bad news is: there is no 'official' way to do this. Can you please
create a bugzilla for this? Paste your email into the description and I
will look at this for Riena v2.0 (the summer release).
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Riena

The good news is that there is a workaround. It is not very
straightforward but it does the job. See attachment. If you need more
information how this works let me know.

Kind regards,
Elias.


--------------020101060307070307080804
Content-Type: text/plain;
name="SnippetMasterDetailsRidget003.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="SnippetMasterDetailsRidget003.java"

LyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioNCiAqIENvcHlyaWdodCAoYykg MjAwNywgMjAw
OSBjb21wZW9wbGUgQUcgYW5kIG90aGVycy4NCiAqIEFsbCByaWdodHMgcmVz ZXJ2ZWQuIFRo
aXMgcHJvZ3JhbSBhbmQgdGhlIGFjY29tcGFueWluZyBtYXRlcmlhbHMNCiAq IGFyZSBtY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W92ZUVu YWJsZWQgPSBC
ZWFuc09ic2VydmFibGVzLm9ic2VydmVWYWx1ZShyZW1vdmVZTiwgSUFjdGlv blJpZGdldC5Q
Uk9QRVJUWV9FTkFCTEVEKTsNCgkJZGJjLmJpbmRWYWx1ZShyZW1vdmVFbmFi bGVkLCBjdXN0
b21SZW1vdmVFbmFibGVkKTsNCg0KCQlzaGVsbC5wYWNrKCk7DQoJCXNoZWxs Lm9wZW4oKTsN
CgkJd2hpbGUgKCFzaGVsbC5pc0Rpc3Bvc2VkKCkpIHsNCgkJCWlmICghZGlz cGxheS5yZWFk
QW5kRGlzcGF0Y2goKSkgew0KCQkJCWRpc3BsYXkuc2xlZXAoKTsNCgkJCX0N CgkJfQ0KDQoJ
CWRpc3BsYXkuZGlzcG9zZSgpOw0KCX0NCn0NCg==
--------------020101060307070307080804--
Re: AbstractMasterDetailsComposite & Removebutton [message #503161 is a reply to message #503140] Fri, 11 December 2009 04:04 Go to previous messageGo to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe Elvis
Messages: 25
Registered: July 2009
Junior Member

Hi Thanks for the fast reply. I have create the following entry:
Bug 297560 - Adding a sort of a Veto-Listener to the removebutton ridget in MasterDetailsComposite.

Please how do i get hold of the attachment.
Email(ngwaambe@cotid.com)
Re: AbstractMasterDetailsComposite & Removebutton [message #503304 is a reply to message #503161] Fri, 11 December 2009 12:55 Go to previous message
Elias Volanakis is currently offline Elias Volanakis
Messages: 43
Registered: July 2009
Member
Ngwa Ambe Elvis wrote:
> Hi Thanks for the fast reply. I have create the following entry:
> Bug 297560 - Adding a sort of a Veto-Listener to the removebutton
> ridget in MasterDetailsComposite.
>
> Please how do i get hold of the attachment.
> Email(mailto:ngwaambe@cotid.com)

It's in my previous message, but I've added it to Bug 297560 as well.

https://bugs.eclipse.org/bugs/attachment.cgi?id=154320

Kind regards,
Elias.
Re: AbstractMasterDetailsComposite & Removebutton [message #584328 is a reply to message #499599] Thu, 10 December 2009 10:00 Go to previous message
Ngwa Ambe Elvis is currently offline Ngwa Ambe Elvis
Messages: 25
Registered: July 2009
Junior Member

How should I go about adding a sort of a Veto-Listener to the romovebutton ridget.
what I intend to do, is to delete the given selected item from the database but will like ask the user if he really wants to delete the given item.

Presently default action-listener simple removes the item from the table and detail ridgets. Adding a second Listener to the removeButton ridget does'nt help since you no longer have acces to the removed item(since its no more there, removed by the default listener). The only possibility to grap the item is to add a listener directly to the table ridget and get hold of the oldvalue when ever the remove button is clicked.


Thanks in advance
Re: AbstractMasterDetailsComposite & Removebutton [message #584345 is a reply to message #584328] Fri, 11 December 2009 00:24 Go to previous message
Elias Volanakis is currently offline Elias Volanakis
Messages: 43
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------020101060307070307080804
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Ngwa Ambe Elvis wrote:
> How should I go about adding a sort of a Veto-Listener to the
> romovebutton ridget.

Hi,

I've bad news and good news.

The bad news is: there is no 'official' way to do this. Can you please
create a bugzilla for this? Paste your email into the description and I
will look at this for Riena v2.0 (the summer release).
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Riena

The good news is that there is a workaround. It is not very
straightforward but it does the job. See attachment. If you need more
information how this works let me know.

Kind regards,
Elias.


--------------020101060307070307080804
Content-Type: text/plain;
name="SnippetMasterDetailsRidget003.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="SnippetMasterDetailsRidget003.java"

LyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioNCiAqIENvcHlyaWdodCAoYykg MjAwNywgMjAw
OSBjb21wZW9wbGUgQUcgYW5kIG90aGVycy4NCiAqIEFsbCByaWdodHMgcmVz ZXJ2ZWQuIFRo
aXMgcHJvZ3JhbSBhbmQgdGhlIGFjY29tcGFueWluZyBtYXRlcmlhbHMNCiAq IGFyZSBtYWRl
IGF2YWlsYWJsZSB1bmRlciB0aGU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VydmFibGVzLm9ic2VydmVWYWx1ZShyZW1vdmVZTiwgSUFjdGlv blJpZGdldC5Q
Uk9QRVJUWV9FTkFCTEVEKTsNCgkJZGJjLmJpbmRWYWx1ZShyZW1vdmVFbmFi bGVkLCBjdXN0
b21SZW1vdmVFbmFibGVkKTsNCg0KCQlzaGVsbC5wYWNrKCk7DQoJCXNoZWxs Lm9wZW4oKTsN
CgkJd2hpbGUgKCFzaGVsbC5pc0Rpc3Bvc2VkKCkpIHsNCgkJCWlmICghZGlz cGxheS5yZWFk
QW5kRGlzcGF0Y2goKSkgew0KCQkJCWRpc3BsYXkuc2xlZXAoKTsNCgkJCX0N CgkJfQ0KDQoJ
CWRpc3BsYXkuZGlzcG9zZSgpOw0KCX0NCn0NCg==
--------------020101060307070307080804--
Re: AbstractMasterDetailsComposite & Removebutton [message #584385 is a reply to message #584345] Fri, 11 December 2009 04:04 Go to previous message
Ngwa Ambe Elvis is currently offline Ngwa Ambe Elvis
Messages: 25
Registered: July 2009
Junior Member

Hi Thanks for the fast reply. I have create the following entry:
Bug 297560 - Adding a sort of a Veto-Listener to the removebutton ridget in MasterDetailsComposite.

Please how do i get hold of the attachment.
Email(mailto:ngwaambe@cotid.com)
Re: AbstractMasterDetailsComposite & Removebutton [message #584399 is a reply to message #584385] Fri, 11 December 2009 12:55 Go to previous message
Elias Volanakis is currently offline Elias Volanakis
Messages: 43
Registered: July 2009
Member
Ngwa Ambe Elvis wrote:
> Hi Thanks for the fast reply. I have create the following entry:
> Bug 297560 - Adding a sort of a Veto-Listener to the removebutton
> ridget in MasterDetailsComposite.
>
> Please how do i get hold of the attachment.
> Email(mailto:ngwaambe@cotid.com)

It's in my previous message, but I've added it to Bug 297560 as well.

https://bugs.eclipse.org/bugs/attachment.cgi?id=154320

Kind regards,
Elias.
Previous Topic:EclipseCon 2010
Next Topic:Riena Release 1.2.0.0
Goto Forum:
  


Current Time: Sun Apr 20 06:54:43 EDT 2014

Powered by FUDForum. Page generated in 0.02932 seconds