public VnicProfileWidget() { publicUseEditor = new EntityModelCheckBoxEditor(Align.RIGHT); publicInfo = new InfoIcon(templates.italicText(constants.profilePublicUseLabel()), resources); networkQoSEditor = new ListModelListBoxEditor<Object>( new NullSafeRenderer<Object>() { @Override public String renderNullSafe(Object object) { return (((NetworkQoS) object).getName()); } }); initWidget(WidgetUiBinder.uiBinder.createAndBindUi(this)); publicUseEditor.setLabel(constants.profilePublicUseInstanceTypeLabel()); networkQoSEditor.setLabel(constants.profileQoSInstanceTypeLabel()); initStyles(); ViewIdHandler.idHandler.generateAndSetIds(this); driver.initialize(this); }
void localize(ApplicationConstants constants) { userNameEditor.setLabel(constants.loginFormUserNameLabel()); passwordEditor.setLabel(constants.loginFormPasswordLabel()); domainEditor.setLabel(constants.loginFormDomainLabel()); loginButton.setText(constants.loginButtonLabel()); }
private void initStyles() { nameEditor.addContentWidgetStyleName(style.name()); publicUseEditor.addContentWidgetStyleName(style.publicUse()); networkQoSEditor.addContentWidgetStyleName(style.qos()); }