override original vaadin class method wapper by scaladin

Hi all,

im using scaladin add-on & have a class extend vaadin.scala.CustomComponent

class CostPlanImport extends CustomComponent {
}

now i want override
attach method
of com.vaadin.ui.Component class in my class

how i have to do?

Thanks.

For future reference, this question has been aswered at
Stack Overlow
.

The answer shows the Scaladin 2.x way but upcoming Scaladin 3 (for Vaadin 7) will support the following for selected methods (like attach() and detach()):

class CostPlanImport extends CustomComponent {
  override def attach() {
    super.attach()
    // add your code here
  }
}