Eclipse XWT XML Window Toolkit Ui Framework designed

  • Slides: 8
Download presentation
Eclipse XWT XML Window Toolkit Ui Framework designed for Eclipse

Eclipse XWT XML Window Toolkit Ui Framework designed for Eclipse

Benedek István Bestest Kft. E-mail: istvan. benedek@bestest. hu Tel. : +36 (70) 275 9

Benedek István Bestest Kft. E-mail: istvan. benedek@bestest. hu Tel. : +36 (70) 275 9 275 Eclipse XWT in Action • • • About XWT Custom Form generator Steps to creating a wizard Bean validation by JSR 303 Advantages

About XWT • XWT stands for eclipse XML Window Toolkit • XWT is Part

About XWT • XWT stands for eclipse XML Window Toolkit • XWT is Part of eclipse 4 • • Declerative UI • • Layout <Fill. Layout/> • Data binding <Label text="{binding path=Name}"/> • Style (CSS) • JFace integration • More information: http: //wiki. eclipse. org/E 4/XWT Composite vs Shell <Shell xmlns="http: //www. eclipse. org/xwt/presentation". . . Event handling <Button text="Click Me!" Selection. Event="click. Button">

Custom form generation 1.

Custom form generation 1.

Custom form generation 2.

Custom form generation 2.

Steps to creating a wizard • Generate DAO + Service. Locator entry 5 min.

Steps to creating a wizard • Generate DAO + Service. Locator entry 5 min. • Generate form 3 min. • Edit form (order, layout, etc. ) 20 min. • Create new Wizard in plugin. xml 2 min. • Generate Wizard class + implementing add. Pages, perform. Finish 10 min. 50 min. • Internationalization 10 min.

Bean validation by JSR 303 • We validate the bean instead of the form

Bean validation by JSR 303 • We validate the bean instead of the form • Same validation on server side and client side • Serializable Entity bean = model ===> XWT form • Many forms for the same model => Using groups

Advantages of Eclipse XWT Forms • Rapid form development • Easy maintenance • Easy

Advantages of Eclipse XWT Forms • Rapid form development • Easy maintenance • Easy form validation by jsr 303 • Reusablity (same xwt form in wizard and editor)