本文整理了Java中com.vaadin.ui.Table.setSelectable()
方法的一些代码示例,展示了Table.setSelectable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setSelectable()
方法的具体详情如下:
包路径:com.vaadin.ui.Table
类名称:Table
方法名:setSelectable
暂无
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void createArtifactDetailsMaxView() {
artifactDetailsTable.setValue(null);
artifactDetailsTable.setSelectable(false);
artifactDetailsTable.setMultiSelect(false);
artifactDetailsTable.setDragMode(TableDragMode.NONE);
artifactDetailsTable.setColumnCollapsingAllowed(true);
artifactUploadState.setArtifactDetailsMaximized(Boolean.TRUE);
eventBus.publish(this, ArtifactDetailsEvent.MAXIMIZED);
}
代码示例来源:origin: eclipse/hawkbit
private void createArtifactDetailsMaxView() {
artifactDetailsTable.setValue(null);
artifactDetailsTable.setSelectable(false);
artifactDetailsTable.setMultiSelect(false);
artifactDetailsTable.setDragMode(TableDragMode.NONE);
artifactDetailsTable.setColumnCollapsingAllowed(true);
artifactUploadState.setArtifactDetailsMaximized(Boolean.TRUE);
eventBus.publish(this, ArtifactDetailsEvent.MAXIMIZED);
}
代码示例来源:origin: org.activiti/activiti-explorer
protected AbstractSelect createSelectComponent() {
table = createList();
// Set non-editable, selectable and full-size
table.setEditable(false);
table.setImmediate(true);
table.setSelectable(true);
table.setNullSelectionAllowed(false);
table.setSortDisabled(true);
table.setSizeFull();
return table;
}
代码示例来源:origin: org.aperteworkflow/gui-commons
public static Table simpleTable(Container dataSource, Object[] visiblePropertyIds, Map<String, ColumnGenerator> customColumns) {
Table table = new Table();
table.addStyleName("big striped borderless");
table.setSizeFull();
table.setPageLength(0);
table.setImmediate(false);
table.setSelectable(false);
table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
table.setColumnCollapsingAllowed(false);
table.setSortDisabled(true);
if (customColumns != null) {
for (Map.Entry<String, ColumnGenerator> entry : customColumns.entrySet()) {
table.addGeneratedColumn(entry.getKey(), entry.getValue());
}
}
table.setContainerDataSource(dataSource);
table.setVisibleColumns(visiblePropertyIds);
table.setColumnExpandRatio(visiblePropertyIds[visiblePropertyIds.length - 1], 1.0f);
return table;
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void initEventsTable() {
eventTable = new Table();
eventTable.setVisible(false);
eventTable.setWidth(100, UNITS_PERCENTAGE);
eventTable.setHeight(250, UNITS_PIXELS);
eventTable.setEditable(false);
eventTable.setImmediate(true);
eventTable.setSelectable(true);
eventTable.setSortDisabled(false);
eventTable.addContainerProperty("type", String.class, null, i18nManager.getMessage(Messages.CRYSTALBALL_EVENT_TYPE), null, Table.ALIGN_LEFT);
eventTable.addContainerProperty("executed", String.class, null, i18nManager.getMessage(Messages.CRYSTALBALL_EVENT_EXECUTED), null, Table.ALIGN_LEFT);
eventLayout.addComponent(eventTable);
}
代码示例来源:origin: stackoverflow.com
table.setSelectable(true);
table.setImmediate(true);
table.addValueChangeListener(new Property.ValueChangeListener() {
代码示例来源:origin: org.activiti/activiti-explorer
protected void initGroupTable() {
groupTable = new Table();
groupTable.setNullSelectionAllowed(false);
groupTable.setSelectable(true);
groupTable.setMultiSelect(true);
groupTable.setSortDisabled(true);
groupTable.setWidth(460, UNITS_PIXELS);
groupTable.setHeight(275, UNITS_PIXELS);
addComponent(groupTable);
GroupSelectionQuery query = new GroupSelectionQuery(identityService, userId);
LazyLoadingContainer container = new LazyLoadingContainer(query, 30);
groupTable.setContainerDataSource(container);
groupTable.addContainerProperty("id", String.class, null);
groupTable.addContainerProperty("name", String.class, null);
groupTable.addContainerProperty("type", String.class, null);
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void initMatchingUsersTable() {
matchingUsersTable = new Table();
matchingUsersTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
matchingUsersTable.setSelectable(true);
matchingUsersTable.setEditable(false);
matchingUsersTable.setImmediate(true);
matchingUsersTable.setNullSelectionAllowed(false);
matchingUsersTable.setSortDisabled(true);
if (multiSelect) {
matchingUsersTable.setMultiSelect(true);
}
matchingUsersTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.USER_16));
matchingUsersTable.setColumnWidth("icon", 16);
matchingUsersTable.addContainerProperty("userName", String.class, null);
matchingUsersTable.setWidth(300, UNITS_PIXELS);
matchingUsersTable.setHeight(200, UNITS_PIXELS);
userSelectionLayout.addComponent(matchingUsersTable);
}
代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics
/**
* Instantiates a new MIB object field.
*
* @param resourceTypes the available resource types
* @param mibGroupEditable true, if the MIB group can be modified
*/
public MibObjField(final List<String> resourceTypes, boolean mibGroupEditable) {
table.addStyleName("light");
table.setVisibleColumns(new Object[] { "oid", "instance", "alias", "type" });
table.setColumnHeaders(new String[] { "OID", "Instance", "Alias", "Type" });
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("250px");
table.setWidth("100%");
table.setTableFieldFactory(new MibObjFieldFactory(resourceTypes));
if (mibGroupEditable) {
toolbar.addComponent(add);
toolbar.addComponent(delete);
}
toolbar.setVisible(table.isEditable());
setValidationVisible(true);
}
代码示例来源:origin: apache/ace
/**
* Creates a new ManageResourceProcessorWindow instance.
*/
public ManageResourceProcessorWindow() {
super("Resource Processors");
setModal(true);
setWidth("50em");
setCloseShortcut(KeyCode.ESCAPE);
m_artifactsTable = new Table("Available resource processors");
m_artifactsTable.addContainerProperty(PROPERTY_SYMBOLIC_NAME, String.class, null);
m_artifactsTable.addContainerProperty(PROPERTY_VERSION, String.class, null);
m_artifactsTable.addContainerProperty(PROPERTY_REMOVE, Button.class, null);
m_artifactsTable.setSizeFull();
m_artifactsTable.setSelectable(true);
m_artifactsTable.setMultiSelect(true);
m_artifactsTable.setImmediate(true);
m_artifactsTable.setHeight("15em");
VerticalLayout layout = (VerticalLayout) getContent();
layout.setMargin(true);
layout.setSpacing(true);
layout.addComponent(m_artifactsTable);
}
代码示例来源:origin: org.activiti/activiti-explorer
instanceTable.setSelectable(true);
instanceTable.setSortDisabled(false);
代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics
table.setColumnExpandRatio("decodes", 1);
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
table.setWidth("100%");
代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics
table.setColumnExpandRatio("vbvalues", 1);
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
table.setWidth("100%");
代码示例来源:origin: org.activiti/activiti-explorer
processDefinitionTable.setSelectable(true);
processDefinitionTable.setNullSelectionAllowed(false);
processDefinitionTable.setSortDisabled(true);
代码示例来源:origin: org.activiti/activiti-explorer
protected void initMembersTable() {
LazyLoadingQuery query = new GroupMembersQuery(group.getId(), this);
if (query.size() > 0) {
membersTable = new Table();
membersTable.setWidth(100, UNITS_PERCENTAGE);
membersTable.setHeight(400, UNITS_PIXELS);
membersTable.setEditable(false);
membersTable.setSelectable(false);
membersTable.setSortDisabled(false);
LazyLoadingContainer container = new LazyLoadingContainer(query, 30);
membersTable.setContainerDataSource(container);
membersTable.addContainerProperty("id", Button.class, null);
membersTable.addContainerProperty("firstName", String.class, null);
membersTable.addContainerProperty("lastName", String.class, null);
membersTable.addContainerProperty("email", String.class, null);
membersTable.addContainerProperty("actions", Component.class, null);
membersLayout.addComponent(membersTable);
} else {
noMembersTable = new Label(i18nManager.getMessage(Messages.GROUP_NO_MEMBERS));
membersLayout.addComponent(noMembersTable);
}
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void buildSelectedTable() {
selectedTable = new Table();
selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID);
selectedTable.setSelectable(true);
selectedTable.setMultiSelect(true);
selectedTable.setSortEnabled(false);
selectedTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
selectedTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
selectedTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
selectedTable.addStyleName(ValoTheme.TABLE_SMALL);
selectedTable.addStyleName("dist_type_twin-table");
selectedTable.setSizeFull();
createSelectedTableContainer();
selectedTable.setContainerDataSource(selectedTableContainer);
addTooltTipToSelectedTable();
selectedTable.setImmediate(true);
selectedTable.setVisibleColumns(DIST_TYPE_NAME, DIST_TYPE_MANDATORY);
selectedTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.selected"), STAR);
selectedTable.setColumnExpandRatio(DIST_TYPE_NAME, 0.75F);
selectedTable.setColumnExpandRatio(DIST_TYPE_MANDATORY, 0.25F);
selectedTable.setRequired(true);
}
代码示例来源:origin: eclipse/hawkbit
private void buildSelectedTable() {
selectedTable = new Table();
selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID);
selectedTable.setSelectable(true);
selectedTable.setMultiSelect(true);
selectedTable.setSortEnabled(false);
selectedTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
selectedTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
selectedTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
selectedTable.addStyleName(ValoTheme.TABLE_SMALL);
selectedTable.addStyleName("dist_type_twin-table");
selectedTable.setSizeFull();
createSelectedTableContainer();
selectedTable.setContainerDataSource(selectedTableContainer);
addTooltTipToSelectedTable();
selectedTable.setImmediate(true);
selectedTable.setVisibleColumns(DIST_TYPE_NAME, DIST_TYPE_MANDATORY);
selectedTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.selected"), STAR);
selectedTable.setColumnExpandRatio(DIST_TYPE_NAME, 0.75F);
selectedTable.setColumnExpandRatio(DIST_TYPE_MANDATORY, 0.25F);
selectedTable.setRequired(true);
}
代码示例来源:origin: org.activiti/activiti-explorer
processDefinitionTable.setSelectable(true);
processDefinitionTable.setNullSelectionAllowed(false);
processDefinitionTable.setSortDisabled(true);
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void buildSourceTable() {
sourceTable = new Table();
sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID);
sourceTable.setSelectable(true);
sourceTable.setMultiSelect(true);
sourceTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
sourceTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
sourceTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
sourceTable.addStyleName(ValoTheme.TABLE_SMALL);
sourceTable.setImmediate(true);
sourceTable.setSizeFull();
sourceTable.addStyleName("dist_type_twin-table");
sourceTable.setSortEnabled(false);
sourceTableContainer = new IndexedContainer();
sourceTableContainer.addContainerProperty(DIST_TYPE_NAME, String.class, "");
sourceTableContainer.addContainerProperty(DIST_TYPE_DESCRIPTION, String.class, "");
sourceTable.setContainerDataSource(sourceTableContainer);
sourceTable.setVisibleColumns(DIST_TYPE_NAME);
sourceTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.available"));
sourceTable.setColumnExpandRatio(DIST_TYPE_NAME, 1.0F);
createSourceTableData();
addTooltip();
sourceTable.select(sourceTable.firstItemId());
}
代码示例来源:origin: eclipse/hawkbit
private void buildSourceTable() {
sourceTable = new Table();
sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID);
sourceTable.setSelectable(true);
sourceTable.setMultiSelect(true);
sourceTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
sourceTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
sourceTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
sourceTable.addStyleName(ValoTheme.TABLE_SMALL);
sourceTable.setImmediate(true);
sourceTable.setSizeFull();
sourceTable.addStyleName("dist_type_twin-table");
sourceTable.setSortEnabled(false);
sourceTableContainer = new IndexedContainer();
sourceTableContainer.addContainerProperty(DIST_TYPE_NAME, String.class, "");
sourceTableContainer.addContainerProperty(DIST_TYPE_DESCRIPTION, String.class, "");
sourceTable.setContainerDataSource(sourceTableContainer);
sourceTable.setVisibleColumns(DIST_TYPE_NAME);
sourceTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.available"));
sourceTable.setColumnExpandRatio(DIST_TYPE_NAME, 1.0F);
createSourceTableData();
addTooltip();
sourceTable.select(sourceTable.firstItemId());
}
内容来源于网络,如有侵权,请联系作者删除!