AbstractMasterDetailsComposite [message #499544] |
Mon, 23 November 2009 10:25 |
|
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 11:32 |
|
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 & Removebutton [message #503006 is a reply to message #499599] |
Thu, 10 December 2009 15:00 |
|
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 #584328 is a reply to message #499599] |
Thu, 10 December 2009 15:00 |
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05055 seconds