10.07.2015 Views

Tutorial section in PDF - Custom Training Courses - Coreservlets.com

Tutorial section in PDF - Custom Training Courses - Coreservlets.com

Tutorial section in PDF - Custom Training Courses - Coreservlets.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example: ConstructorArg1.javapackage coreservlets.client.ui;...public class ConstructorArg1 extends Composite {private static ConstructorArg1UiB<strong>in</strong>der uiB<strong>in</strong>der =GWT.create(ConstructorArg1UiB<strong>in</strong>der.class);<strong>in</strong>terface ConstructorArg1UiB<strong>in</strong>derextends UiB<strong>in</strong>der {}}...@UiFactoryFancyOptionalTextBox makeFancyTextBox(Str<strong>in</strong>g caption,}These names be<strong>com</strong>e attributes <strong>in</strong> XML UI file.boolean checkedEnablesText,boolean isChecked) {return new FancyOptionalTextBox(caption,checkedEnablesText,isChecked);25Example: ContructorArg1.ui.xml26...Us<strong>in</strong>g @UiFactory:...Attributes correspond<strong>in</strong>g to setters can still beused as usual. This one corresponds tosetClearTextOnDisable(…).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!