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 » Fri Nov 25, 2011 4:57 pm

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: 7094
Joined: Fri Jul 09, 2004 5:18 pm

Re: Attributes panel for oxygen applet

Post by Radu » Fri Nov 25, 2011 5:28 pm

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