本文整理了Java中com.vaadin.ui.Table.addContainerProperty()
方法的一些代码示例,展示了Table.addContainerProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.addContainerProperty()
方法的具体详情如下:
包路径:com.vaadin.ui.Table
类名称:Table
方法名:addContainerProperty
暂无
代码示例来源:origin: org.activiti/activiti-explorer
protected void addContainerProperties() {
table.addContainerProperty("type", Embedded.class, null);
table.setColumnWidth("type", 16);
table.addContainerProperty("name", Component.class, null);
table.addContainerProperty("delete", Embedded.class, null);
table.setColumnWidth("delete", 16);
}
代码示例来源:origin: at.chrl/chrl-spring
/**
*
*/
public ConfigView() {
super();
tbl = new Table("Active Configuration:");
tbl.addContainerProperty("Id", String.class, "");
tbl.addContainerProperty("Value", String.class, "");
tbl.setSizeFull();
tbl.setHeight(20, Unit.CM);
addComponent(tbl);
loadProperties();
tbl.setSortEnabled(true);
}
代码示例来源:origin: apache/ace
@Override
public final Component create(OBJ obj) {
Table table = new Table();
table.setEditable(false);
table.setWidth("100%");
table.addContainerProperty("Name", Label.class, null);
table.addContainerProperty("Value", Label.class, null);
table.setColumnExpandRatio("Name", 0.22f);
table.setColumnExpandRatio("Value", 1.0f);
addTableRows(table, obj);
return table;
}
代码示例来源:origin: org.activiti/activiti-explorer
protected Table initRelatedContentTable() {
Table table = new Table();
table.setWidth(100, UNITS_PERCENTAGE);
table.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_LIST);
// Invisible by default, only shown when attachments are present
table.setVisible(false);
table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
table.addContainerProperty("type", Embedded.class, null);
table.setColumnWidth("type", 16);
table.addContainerProperty("name", Component.class, null);
relatedContentLayout.addComponent(table);
return table;
}
代码示例来源:origin: org.activiti/activiti-explorer
@Override
protected Table createList() {
final Table tableList = new Table();
// Listener to change right panel when clicked on a task
tableList.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 8811553575319455854L;
public void valueChange(ValueChangeEvent event) {
// The itemId of the table list is the tableName
String tableName = (String) event.getProperty().getValue();
setDetailComponent(new DatabaseDetailPanel(tableName));
// Update URL
ExplorerApp.get().setCurrentUriFragment(
new UriFragment(DatabaseNavigator.TABLE_URI_PART, tableName));
}
});
// Create column headers
tableList.addContainerProperty("icon", Embedded.class, null);
tableList.setColumnWidth("icon", 22);
tableList.addContainerProperty("tableName", String.class, null);
tableList.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
return tableList;
}
代码示例来源: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.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: apache/ace
@Override
public final Component create(OBJ obj) {
Table table = new Table();
table.setEditable(false);
table.setWidth("100%");
table.addContainerProperty("Left endpoint", Label.class, null);
table.addContainerProperty("Left cardinality", Label.class, null);
table.addContainerProperty("Right endpoint", Label.class, null);
table.addContainerProperty("Right cardinality", Label.class, null);
table.setColumnExpandRatio("Left endpoint", 1.0f);
table.setColumnExpandRatio("Left cardinality", 0.12f);
table.setColumnExpandRatio("Right endpoint", 1.0f);
table.setColumnExpandRatio("Right cardinality", 0.12f);
getAssocations(obj)
.forEach(assoc -> table.addItem(new Object[] {
assoc.getAttribute(LEFT_ENDPOINT),
getCardinality(assoc.getAttribute(LEFT_CARDINALITY)),
assoc.getAttribute(RIGHT_ENDPOINT),
getCardinality(assoc.getAttribute(RIGHT_CARDINALITY)) }, null));
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: 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
protected void initGroupsTable() {
groupsForUserQuery = new GroupsForUserQuery(identityService, this, user.getId());
if (groupsForUserQuery.size() > 0) {
groupTable = new Table();
groupTable.setSortDisabled(true);
groupTable.setHeight(150, UNITS_PIXELS);
groupTable.setWidth(100, UNITS_PERCENTAGE);
groupLayout.addComponent(groupTable);
groupContainer = new LazyLoadingContainer(groupsForUserQuery, 30);
groupTable.setContainerDataSource(groupContainer);
groupTable.addContainerProperty("id", Button.class, null);
groupTable.setColumnExpandRatio("id", 22);
groupTable.addContainerProperty("name", String.class, null);
groupTable.setColumnExpandRatio("name", 45);
groupTable.addContainerProperty("type", String.class, null);
groupTable.setColumnExpandRatio("type", 22);
groupTable.addContainerProperty("actions", Component.class, null);
groupTable.setColumnExpandRatio("actions", 11);
groupTable.setColumnAlignment("actions", Table.ALIGN_CENTER);
} else {
noGroupsLabel = new Label(i18nManager.getMessage(Messages.USER_NO_GROUPS));
groupLayout.addComponent(noGroupsLabel);
}
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
private void createResultsPanel()
{
this.resultsPanel = new Panel();
this.resultsPanel.setSizeFull();
this.resultsPanel.setStyleName("dashboard");
this.resultsTable = new Table();
this.resultsTable.setSizeFull();
this.resultsTable.addContainerProperty("Name", String.class, null);
this.resultsTable.addContainerProperty("Description", String.class, null);
this.resultsTable.addItemClickListener(new ItemClickEvent.ItemClickListener()
{
@Override
public void itemClick(ItemClickEvent itemClickEvent)
{
businessStream = (BusinessStream)itemClickEvent.getItemId();
UI.getCurrent().removeWindow(PolicyAssociationBusinessStreamSearchWindow.this);
}
});
HorizontalLayout layout = new HorizontalLayout();
layout.addComponent(this.resultsTable);
layout.setSizeFull();
layout.setMargin(true);
this.resultsPanel.setContent(layout);
}
代码示例来源:origin: org.activiti/activiti-explorer
variablesTable.addStyleName(ExplorerLayout.STYLE_PROCESS_INSTANCE_TASK_LIST);
variablesTable.addContainerProperty("name", String.class, null, i18nManager.getMessage(Messages.PROCESS_INSTANCE_VARIABLE_NAME), null, Table.ALIGN_LEFT);
variablesTable.addContainerProperty("value", String.class, null, i18nManager.getMessage(Messages.PROCESS_INSTANCE_VARIABLE_VALUE), null, Table.ALIGN_LEFT);
代码示例来源:origin: org.activiti/activiti-explorer
processDefinitionTable.addContainerProperty("name", String.class, null);
processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
代码示例来源:origin: org.activiti/activiti-explorer
@Override
protected Table createList() {
taskTable = new Table();
taskTable.addStyleName(ExplorerLayout.STYLE_TASK_LIST);
taskTable.addStyleName(ExplorerLayout.STYLE_SCROLLABLE);
// Listener to change right panel when clicked on a task
taskTable.addListener(getListSelectionListener());
this.lazyLoadingQuery = createLazyLoadingQuery();
this.taskListContainer = new LazyLoadingContainer(lazyLoadingQuery, 30);
taskTable.setContainerDataSource(taskListContainer);
// Create column header
taskTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.TASK_22));
taskTable.setColumnWidth("icon", 22);
taskTable.addContainerProperty("name", String.class, null);
taskTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
return taskTable;
}
代码示例来源:origin: org.activiti/activiti-explorer
table.setColumnWidth("icon", 22);
table.addContainerProperty("name", String.class, null);
table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
代码示例来源:origin: org.activiti/activiti-explorer
userTable.addContainerProperty("name", String.class, null);
userTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
代码示例来源: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.activiti/activiti-explorer
jobTable.setColumnWidth("icon", 22);
jobTable.addContainerProperty("name", String.class, null);
jobTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
代码示例来源:origin: org.activiti/activiti-explorer
processDefinitionTable.setColumnWidth("icon", 22);
processDefinitionTable.addContainerProperty("name", String.class, null);
processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
内容来源于网络,如有侵权,请联系作者删除!