本文整理汇总了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());
}
示例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);
}
示例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);
}
示例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());
}
}
示例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);
}
});
}
}
示例6: getLevelListBox
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<LogLevel> getLevelListBox() {
return levelListBox;
}
示例7: List
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
List() {
list = new ValueListBox<>(rangeRenderer);
initWidget(list);
}
示例8: createToStringListBox
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Ignore
public <T> ValueListBox<T> createToStringListBox(){
return createToStringListBox(null,null);
}
示例9: getConfigurationSchemaInfo
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<SchemaInfoDto> getConfigurationSchemaInfo() {
return configurationSchemaInfo;
}
示例10: getPluginInfo
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<PluginInfoDto> getPluginInfo() {
return pluginInfo;
}
示例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);
}
}
示例12: getCredentialsServiceName
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<String> getCredentialsServiceName() {
return this.credentialsServiceName;
}
示例13: getVersion
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<Integer> getVersion() {
return version;
}
示例14: getEventClassTypes
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<String> getEventClassTypes() {
return eventClassTypeName;
}
示例15: getConfigurationSchemaVersion
import com.google.gwt.user.client.ui.ValueListBox; //导入依赖的package包/类
@Override
public ValueListBox<VersionDto> getConfigurationSchemaVersion() {
return configurationSchemaVersion;
}