setMainWindow() & getMainWindow

Hey guys,
I am a newbie in Vaadin and in this community, so please excuse me, if I posted in the wrong topic or something like that. As I am not a native English speaker, please do also excuse my different English.
I have following problem:

I try to create a webapplication based on the MVC-Architecture and caused by this I have following classes:

  • schedulerApplication extends Application
  • schedulerModel
  • schedulerView
  • schedulerController

And in the schedulerView-Class I have my function initLayout(){} but as schedulerView does not extend Application I am not able to use the getMainWindow() or setMainWindow() functions. Is there any way to create the complete layout in the schedulerView Class?

Greets
Per Güncher