Runtime Link between Component and its Connector

I want to override some inline styles of an Element in a widget.

One way to do that was to subclass the connector’s createWidget() class;,

and do
createWidget()
{
Widget w = super.createWidget();
w.getElement().addAttribute*“style”,“onmouseover=dosomething(); …”);
return w;
}

But I don’t want to subclass. ;(

How can I get to a widget object after knowing a component object, during initialization of Vaadin 7.2.6

How are the component objects and their connector object linked??
Like

AbsoluteComponentConnector conn = VAADINMAGIC.getConnector(myComponent);

I need to do this at app initialization.
Thanks

You could probably do this using a Component Extension:

https://vaadin.com/wiki/-/wiki/Main/Creating+a+component+extension

There you can get the Widget object inside the extend method.