本文整理了Java中com.vaadin.ui.Table.isColumnCollapsed()
方法的一些代码示例,展示了Table.isColumnCollapsed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.isColumnCollapsed()
方法的具体详情如下:
包路径:com.vaadin.ui.Table
类名称:Table
方法名:isColumnCollapsed
暂无
代码示例来源:origin: org.opencms/opencms-core
/**
* Returns if the column with the given property id is visible and not collapsed.<p>
*
* @param propertyId the property id
*
* @return <code>true</code> if the column is visible
*/
public boolean isColumnVisible(CmsResourceTableProperty propertyId) {
return Arrays.asList(m_fileTable.getVisibleColumns()).contains(propertyId)
&& !m_fileTable.isColumnCollapsed(propertyId);
}
代码示例来源:origin: org.opencms/opencms-core
/**
* Returns the current table state.<p>
*
* @return the table state
*/
public CmsFileExplorerSettings getTableSettings() {
CmsFileExplorerSettings fileTableState = new CmsFileExplorerSettings();
fileTableState.setSortAscending(m_fileTable.isSortAscending());
fileTableState.setSortColumnId((CmsResourceTableProperty)m_fileTable.getSortContainerPropertyId());
List<CmsResourceTableProperty> collapsedCollumns = new ArrayList<CmsResourceTableProperty>();
Object[] visibleCols = m_fileTable.getVisibleColumns();
for (int i = 0; i < visibleCols.length; i++) {
if (m_fileTable.isColumnCollapsed(visibleCols[i])) {
collapsedCollumns.add((CmsResourceTableProperty)visibleCols[i]);
}
}
fileTableState.setCollapsedColumns(collapsedCollumns);
return fileTableState;
}
代码示例来源:origin: org.opencms/opencms-core
int totalExpandMinWidth = 0;
for (Object colObj : cols) {
if (m_fileTable.isColumnCollapsed(colObj)) {
continue;
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin
/**
* Adds a {@link PropertyVisibilityListener} that gets notified when a property column is hidden or shown.
* @param listener Listener to add (not null)
*/
@SuppressWarnings("unchecked")
public void addPropertyVisibilityListener(final PropertyVisibilityListener<P> listener) {
ObjectUtils.argumentNotNull(listener, "Listener must be not null");
switch (getRenderingMode()) {
case GRID:
getGrid().addColumnVisibilityChangeListener(e -> listener.onPropertyVisibilityChanged(
(P) e.getColumn().getPropertyId(), e.isHidden(), e.isUserOriginated()));
break;
case TABLE:
getTable().addColumnCollapseListener(e -> listener.onPropertyVisibilityChanged((P) e.getPropertyId(),
getTable().isColumnCollapsed(e.getPropertyId()), true));
break;
default:
break;
}
}
内容来源于网络,如有侵权,请联系作者删除!