bhomass
26 Apr 2009, 7:16 PM
why is so much of the widgets locked away in package protection?
I want to apply context menu to TabItem's header. the Component.setContextMenu() method is a protected method, so I subclassed TabItem. but HeaderItem is an inner class. I am not able to subclass that or even access the header variable, because it is package protected.
I tried rewrite the entire TabItem, but can not do that because it uses TabPanel as a package protected variable, so I can not recreate TabItem outside the package.
basically, it means no one can add context menu outside of grid, table, tree, and datalist.
any one have any suggestions for adding context menu to the tab item?
I want to apply context menu to TabItem's header. the Component.setContextMenu() method is a protected method, so I subclassed TabItem. but HeaderItem is an inner class. I am not able to subclass that or even access the header variable, because it is package protected.
I tried rewrite the entire TabItem, but can not do that because it uses TabPanel as a package protected variable, so I can not recreate TabItem outside the package.
basically, it means no one can add context menu outside of grid, table, tree, and datalist.
any one have any suggestions for adding context menu to the tab item?