コード例 #1
0
  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);
  }
コード例 #2
0
 void localize(ApplicationConstants constants) {
   userNameEditor.setLabel(constants.loginFormUserNameLabel());
   passwordEditor.setLabel(constants.loginFormPasswordLabel());
   domainEditor.setLabel(constants.loginFormDomainLabel());
   loginButton.setText(constants.loginButtonLabel());
 }
コード例 #3
0
 private void initStyles() {
   nameEditor.addContentWidgetStyleName(style.name());
   publicUseEditor.addContentWidgetStyleName(style.publicUse());
   networkQoSEditor.addContentWidgetStyleName(style.qos());
 }