Skip to content
kfa edited this page Sep 23, 2014 · 2 revisions

Appearance pattern

The appearance pattern was introduced with mgwt 2.0 and replaces the old way of styling. More information about the appearance pattern are here.

New default theme and new platform themes

mgwt 2.0 provides a simple and clear default theme that is easily customizable. Also the platform themes for Android and iOS have been updated. Details see here.

Added ImageButton and removed HeaderButton

mgwt 2.0 comes with about 140 buttons with different images and with an easy way to customize these images. Here are details about how to use them.

CSS Updater

The CSS Updater allows applications to change their styling without reloading the application. This gives instant feedback while changing the theme of an mgwt application.

Added RootFlexPanel and renamed LayoutPanel to FlexPanel

mgwt 2.0 now better supports the flexible box model. Details are here

Renamed the class Animation to Animations

The access to specific animations is now done with

Animations.SLIDE 

instead of

Animation.SLIDE

AnimationWidget replaces AnimatableDisplay

Old way:

AnimatableDisplay display = GWT.create(AnimatableDisplay.class);

New way:

AnimationWidget display = new AnimationWidget();

Removed iOS gloss

mgwt 2.0 does not have the iOS gloss anymore:

mgwtSettings.setAddGlosToIcon(true);

New binding and configuration properties

mgwt 2.0 has following binding proeprties:

  • mgwt.formfactor - defined by mgwt to distinguish between different screen sized of devices
  • mgwt.density - defined by mgwt to distinguish between different pixel density of screens
  • user.agent - defined by GWT for different browsers

Details are here