Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Riena » AbstractMasterDetailsComposite
AbstractMasterDetailsComposite [message #584139] Mon, 23 November 2009 10:25 Go to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
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 #584165 is a reply to message #584139] Mon, 23 November 2009 11:32 Go to previous messageGo to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
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 #584186 is a reply to message #584165] Mon, 23 November 2009 13:55 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 596
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
Previous Topic:Riena 1.2.0.M3 is available
Next Topic:Riena 1.2.0.M3 is available
Goto Forum:
  


Current Time: Wed Dec 11 22:11:03 GMT 2024

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

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

Back to the top