コード例 #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
 private void initStyles() {
   nameEditor.addContentWidgetStyleName(style.name());
   publicUseEditor.addContentWidgetStyleName(style.publicUse());
   networkQoSEditor.addContentWidgetStyleName(style.qos());
 }