AbstractMasterDetailsComposite [message #584139] |
Mon, 23 November 2009 05:25  |
Eclipse User |
|
|
|
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 #584186 is a reply to message #584165] |
Mon, 23 November 2009 08:55  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05110 seconds