当前位置: 首页>>代码示例>>Java>>正文


Java ValueListBox类代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.ValueListBox的典型用法代码示例。如果您正苦于以下问题:Java ValueListBox类的具体用法?Java ValueListBox怎么用?Java ValueListBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ValueListBox类属于com.google.gwt.user.client.ui包,在下文中一共展示了ValueListBox类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AccessSectionEditor

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
public AccessSectionEditor(ProjectAccess access) {
  projectAccess = access;
  permissionSelector = new ValueListBox<>(new PermissionNameRenderer(access.getCapabilities()));
  permissionSelector.addValueChangeHandler(
      new ValueChangeHandler<String>() {
        @Override
        public void onValueChange(ValueChangeEvent<String> event) {
          if (!AdminConstants.I.addPermission().equals(event.getValue())) {
            onAddPermission(event.getValue());
          }
        }
      });

  initWidget(uiBinder.createAndBindUi(this));
  permissions = ListEditor.of(new PermissionEditorSource());
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:17,代码来源:AccessSectionEditor.java

示例2: initDetailsTable

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
protected void initDetailsTable() {
  super.initDetailsTable();

  this.eventClassTypeName = new ValueListBox<String>();
  this.eventClassTypeName.addValueChangeHandler(new ValueChangeHandler<String>() {
    @Override
    public void onValueChange(ValueChangeEvent<String> event) {
      EventClassViewImpl.this.fireChanged();
    }
  });
  this.eventClassTypeName.setWidth("100%");

  Label label = new Label("Class type");
  label.addStyleName(this.avroUiStyle.requiredField());
  detailsTable.setWidget(4, 0, label);

  this.detailsTable.setWidget(4, 1, this.eventClassTypeName);

}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:21,代码来源:EventClassViewImpl.java

示例3: initPersonalTitle

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
private void initPersonalTitle() {
    personalTitleListBox = new ValueListBox<PersonalTitle>(new Renderer<PersonalTitle>() {

        @Override
        public String render(PersonalTitle object) {
            return object != null ? object.toString() : "";
        }

        @Override
        public void render(PersonalTitle object, Appendable appendable)
                throws IOException {
            appendable.append(render(object));
        }
    });
    List<PersonalTitle> titles = new ArrayList<PersonalTitle>();
    titles.add(null);
    titles.addAll(Arrays.asList(PersonalTitle.values()));
    personalTitleListBox.setAcceptableValues(titles);
}
 
开发者ID:apetrelli,项目名称:samplegwt,代码行数:20,代码来源:PersonEditor.java

示例4: onEntityRetrieved

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
protected void onEntityRetrieved() {
  if (!create) {
    detailsView.setTitle(entity.getName());
    detailsView.getApplicationToken().setValue(entity.getApplicationToken());
  }
  detailsView.getApplicationName().setValue(entity.getName());

  final ValueListBox<String> serviceNames = this.detailsView.getCredentialsServiceName();
  if (serviceNames != null) {
    KaaAdmin.getDataSource().getCredentialsServiceNames(new AsyncCallback<List<String>>() {

      @Override
      public void onFailure(Throwable caught) {
        Utils.handleException(caught, ApplicationActivity.this.detailsView);
      }

      @Override
      public void onSuccess(List<String> result) {
        if (result != null && !result.isEmpty()) {
          serviceNames.setValue(result.get(0));
        }
        ApplicationActivity.this.detailsView.getCredentialsServiceName()
            .setAcceptableValues(result);
      }
    });
    serviceNames.setValue(this.entity.getCredentialsServiceName());
  }
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:30,代码来源:ApplicationActivity.java

示例5: onEntityRetrieved

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
protected void onEntityRetrieved() {
  super.onEntityRetrieved();
  ValueListBox<String> eventClassTypes = this.detailsView.getEventClassTypes();
  if (eventClassTypes != null) {
    List<String> eventClassTypeList = new ArrayList<>();
    for (EventClassType eventClassType : EventClassType.values()) {
      eventClassTypeList.add(eventClassType.name());
    }
    EventClassActivity.this.detailsView
        .getEventClassTypes()
        .setAcceptableValues(eventClassTypeList);
  }

  if (place.getCtlSchemaId() != null) {
    KaaAdmin.getDataSource().getLastCtlSchemaReferenceDto(place.getCtlSchemaId(),
        new AsyncCallback<CtlSchemaReferenceDto>() {

          @Override
          public void onFailure(Throwable caught) {
            Utils.handleException(caught, EventClassActivity.this.detailsView);
          }

          @Override
          public void onSuccess(CtlSchemaReferenceDto ctlSchemaReferenceDto) {
            detailsView.getCtlSchemaReference().setValue(ctlSchemaReferenceDto);
            detailsView.getName().setValue(place.getNameEc());
            place.setCtlSchemaId(null);
          }
        });
  }
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:33,代码来源:EventClassActivity.java

示例6: getLevelListBox

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<LogLevel> getLevelListBox() {
    return levelListBox;
}
 
开发者ID:kaaproject,项目名称:sandbox-frame,代码行数:5,代码来源:ChangeKaaHostViewImpl.java

示例7: List

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
List() {
  list = new ValueListBox<>(rangeRenderer);
  initWidget(list);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:5,代码来源:RangeBox.java

示例8: createToStringListBox

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Ignore
public <T> ValueListBox<T> createToStringListBox(){
	return createToStringListBox(null,null);
}
 
开发者ID:akjava,项目名称:GWTModelWeight,代码行数:5,代码来源:UVPackDataEditor.java

示例9: getConfigurationSchemaInfo

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<SchemaInfoDto> getConfigurationSchemaInfo() {
  return configurationSchemaInfo;
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:5,代码来源:UpdateUserConfigViewImpl.java

示例10: getPluginInfo

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<PluginInfoDto> getPluginInfo() {
  return pluginInfo;
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:5,代码来源:BasePluginViewImpl.java

示例11: initDetailsTable

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
protected void initDetailsTable() {
  applicationName = new KaaAdminSizedTextBox(DEFAULT_TEXTBOX_SIZE, editable);
  applicationName.setWidth("100%");
  Label titleLabel = new Label(Utils.constants.title());
  if (editable) {
    titleLabel.addStyleName(avroUiStyle.requiredField());
  }
  detailsTable.setWidget(0, 0, titleLabel);
  detailsTable.setWidget(0, 1, applicationName);

  applicationName.addInputHandler(this);
  applicationName.setFocus(true);

  if (!create) {
    applicationToken = new KaaAdminSizedTextBox(DEFAULT_TEXTBOX_SIZE * 2, false);
    applicationToken.setWidth("100%");
    applicationToken.setEnabled(false);
    applicationToken.setReadOnly(true);

    Label tokenLabel = new Label(Utils.constants.appToken());
    detailsTable.setWidget(2, 0, tokenLabel);
    detailsTable.setWidget(2, 1, applicationToken);
  }

  if (KaaAdmin.isDevMode()) {
    generateSdkButton = new Button(Utils.constants.generateSdk());
    detailsTable.setWidget(3, 0, generateSdkButton);
  } else {
    this.credentialsServiceName = new ValueListBox<String>();
    this.credentialsServiceName.addValueChangeHandler(new ValueChangeHandler<String>() {
      @Override
      public void onValueChange(ValueChangeEvent<String> event) {
        ApplicationViewImpl.this.fireChanged();
      }
    });
    this.credentialsServiceName.setWidth("100%");

    Label label = new Label(Utils.constants.credentialsService());
    label.addStyleName(this.avroUiStyle.requiredField());

    this.detailsTable.setWidget(3, 0, label);
    this.detailsTable.setWidget(3, 1, this.credentialsServiceName);
  }
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:46,代码来源:ApplicationViewImpl.java

示例12: getCredentialsServiceName

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<String> getCredentialsServiceName() {
  return this.credentialsServiceName;
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:5,代码来源:ApplicationViewImpl.java

示例13: getVersion

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<Integer> getVersion() {
  return version;
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:5,代码来源:CtlSchemaViewImpl.java

示例14: getEventClassTypes

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<String> getEventClassTypes() {
  return eventClassTypeName;
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:5,代码来源:EventClassViewImpl.java

示例15: getConfigurationSchemaVersion

import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<VersionDto> getConfigurationSchemaVersion() {
  return configurationSchemaVersion;
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:5,代码来源:AddSdkProfileViewImpl.java


注:本文中的com.google.gwt.user.client.ui.ValueListBox类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。