本文整理了Java中com.vaadin.v7.ui.Table.setRowHeaderMode()
方法的一些代码示例,展示了Table.setRowHeaderMode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setRowHeaderMode()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setRowHeaderMode
[英]Sets the row header mode.
The mode can be one of the following ones:
toString()
is used as row caption.toString()
is used as row caption.toString()
is used as row header. If caption is explicitly specified, it overrides the id-caption.Container.Indexed
interface.toString()
用作行标题。toString()
用作行标题。toString()
用作行标题。如果明确指定了标题,它将覆盖id标题。Container.Indexed
接口的容器。代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public void setRowHeaderMode(com.haulmont.cuba.gui.components.Table.RowHeaderMode rowHeaderMode) {
switch (rowHeaderMode) {
case NONE: {
component.setRowHeaderMode(com.vaadin.v7.ui.Table.RowHeaderMode.HIDDEN);
break;
}
case ICON: {
component.setRowHeaderMode(com.vaadin.v7.ui.Table.RowHeaderMode.ICON_ONLY);
break;
}
default: {
throw new UnsupportedOperationException();
}
}
}
代码示例来源:origin: viritin/viritin
public void withRowHeaderMode(Table.RowHeaderMode rowHeaderMode) {
getUnderlayingTable().setRowHeaderMode(rowHeaderMode);
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
/**
* Creates a new empty table.
*/
public Table() {
setRowHeaderMode(ROW_HEADER_MODE_HIDDEN);
registerRpc(new TableServerRpc() {
@Override
public void contextClick(String rowKey, String colKey,
Section section, MouseEventDetails details) {
Object itemId = itemIdMapper.get(rowKey);
Object propertyId = columnIdMap.get(colKey);
fireEvent(new TableContextClickEvent(Table.this, details,
itemId, propertyId, section));
}
});
}
内容来源于网络,如有侵权,请联系作者删除!