Modernize switch snippet
Modernize switch snippet

Don't use practices, which are not encouraged in Tabris 2.x anymore,
e.g. using property setters/getters instead of fields and utilizing the
layoutData property.

Change-Id: I6fe91f0b9c24f69fa250921a63e58e722678d2c6

eclipsesource/tabris-js,eclipsesource/tabris-js,eclipsesource/tabris-js