本文整理汇总了Java中com.google.gwt.editor.client.adapters.ListEditor类的典型用法代码示例。如果您正苦于以下问题:Java ListEditor类的具体用法?Java ListEditor怎么用?Java ListEditor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListEditor类属于com.google.gwt.editor.client.adapters包,在下文中一共展示了ListEditor类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: AccessSectionEditor
import com.google.gwt.editor.client.adapters.ListEditor; //导入依赖的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: FavoritesWidget
import com.google.gwt.editor.client.adapters.ListEditor; //导入依赖的package包/类
public FavoritesWidget(EventBus eventBus, RequestFactory factory,
FavoritesManager manager) {
this.eventBus = eventBus;
this.factory = factory;
this.manager = manager;
// Create the UI
initWidget(GWT.<Binder> create(Binder.class).createAndBindUi(this));
// Create the driver which manages the data-bound widgets
Driver driver = GWT.<Driver> create(Driver.class);
// Use a ListEditor that uses our NameLabelSource
ListEditor<PersonProxy, NameLabel> editor = ListEditor.of(new NameLabelSource());
// Configure the driver
ListEditor<PersonProxy, NameLabel> listEditor = editor;
driver.initialize(eventBus, factory, listEditor);
// Notice the backing list is essentially anonymous.
driver.display(new ArrayList<PersonProxy>());
// Modifying this list triggers widget creation and destruction
displayedList = listEditor.getList();
}
开发者ID:Peergos,项目名称:Peergos,代码行数:26,代码来源:FavoritesWidget.java
示例3: PermissionEditor
import com.google.gwt.editor.client.adapters.ListEditor; //导入依赖的package包/类
public PermissionEditor(
ProjectAccess projectAccess, boolean readOnly, AccessSection section, LabelTypes labelTypes) {
this.readOnly = readOnly;
this.section = section;
this.projectName = projectAccess.getProjectName();
this.groupInfo = projectAccess.getGroupInfo();
this.labelTypes = labelTypes;
PermissionNameRenderer nameRenderer =
new PermissionNameRenderer(projectAccess.getCapabilities());
normalName = new ValueLabel<>(nameRenderer);
deletedName = new ValueLabel<>(nameRenderer);
initWidget(uiBinder.createAndBindUi(this));
groupToAdd.setProject(projectName);
rules = ListEditor.of(new RuleEditorSource());
exclusiveGroup.setEnabled(!readOnly);
exclusiveGroup.setVisible(RefConfigSection.isValid(section.getName()));
if (readOnly) {
addContainer.removeFromParent();
addContainer = null;
deletePermission.removeFromParent();
deletePermission = null;
}
}
开发者ID:gerrit-review,项目名称:gerrit,代码行数:29,代码来源:PermissionEditor.java
示例4: ProjectAccessEditor
import com.google.gwt.editor.client.adapters.ListEditor; //导入依赖的package包/类
public ProjectAccessEditor() {
initWidget(uiBinder.createAndBindUi(this));
local = ListEditor.of(new Source(localContainer));
}
开发者ID:gerrit-review,项目名称:gerrit,代码行数:5,代码来源:ProjectAccessEditor.java
示例5: init
import com.google.gwt.editor.client.adapters.ListEditor; //导入依赖的package包/类
@PostConstruct
public void init() {
listEditor = ListEditor.of(createDataColumnDefEditorSource());
view.init(this);
}
开发者ID:kiegroup,项目名称:appformer,代码行数:6,代码来源:ColumnListEditor.java
注:本文中的com.google.gwt.editor.client.adapters.ListEditor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论