Attributes panel for oxygen applet

Having trouble installing Oxygen? Got a bug to report? Post it all here.
maxim.kovalev
Posts: 35
Joined: Fri Nov 11, 2011 10:34 am

Attributes panel for oxygen applet

Post by maxim.kovalev »

In oxygen panel has attributes that are returned as Jcomponent.
authorComponent.getAdditionalEditHelper(AuthorComponentProvider.ATTRIBUTES_PANEL_ID)
Can I somehow change it, add a button for example.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Attributes panel for oxygen applet

Post by Radu »

Hi Maxim,

We do not have API to contribute toolbar buttons to the returned attributes panel.
You can either create an additional toolbar and place it together with the Attributes component in a common panel or taking into account that the returned Attributes panel is a Swing component, iterate through it and force make modifications in the Swing components hierarchy.
I would suggest the first approach as being more robust to future changes.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply