XML Window Toolkit Ui Framework designed for Eclipse
description
Transcript of XML Window Toolkit Ui Framework designed for Eclipse
XML Window Toolkit
Ui Framework designed for Eclipse
Eclipse XWT
Eclipse XWT in Action
• About XWT• Custom Form generator• Steps to creating a
wizard• Bean validation by
JSR303• Advantages
Benedek IstvánBestest Kft. E-mail: [email protected].: +36 (70) 275 9 275
About XWT
• XWT stands for eclipse XML Window Toolkit
• XWT is Part of eclipse 4
• Declerative UI
• Composite vs Shell <Shell xmlns="http://www.eclipse.org/xwt/presentation"...
• Layout <FillLayout/>
• Event handling <Button text="Click Me!" SelectionEvent="clickButton">
• Data binding <Label text="{binding path=Name}"/>
• Style (CSS)
• JFace integration
• More information: http://wiki.eclipse.org/E4/XWT
Custom form generation 1.
Custom form generation 2.
Steps to creating a wizard
• Generate DAO + ServiceLocator 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 addPages, performFinish 10 min.
• Internationalization 10 min.
50 min.
50 min.
50 min.
50 min.50 min.
50 min.
50 min.50 min.
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 form validation by jsr 303• Reusablity (same xwt form in wizard and editor)