Vaadin 7.5.6 Portlet modes

Hello, everyone.
How can I handle portlet mode changes to show defferent UI components in Vaadin 7.5.6?