Search in sources :

Example 1 with IStringColumn

use of org.eclipse.scout.rt.client.ui.basic.table.columns.IStringColumn in project scout.rt by eclipse.

the class ColumnSet method checkMultiline.

private void checkMultiline() {
    if (m_table != null && !m_table.isInitialMultilineText() && !ConfigurationUtility.isMethodOverwrite(AbstractTable.class, "getConfiguredMultilineText", null, m_table.getClass())) {
        // do automatic check for wrapping columns
        boolean m = false;
        for (IColumn col : getVisibleColumns()) {
            if (col instanceof IStringColumn && ((IStringColumn) col).isTextWrap()) {
                m = true;
                break;
            }
        }
        m_table.setMultilineText(m);
    }
}
Also used : IStringColumn(org.eclipse.scout.rt.client.ui.basic.table.columns.IStringColumn) IColumn(org.eclipse.scout.rt.client.ui.basic.table.columns.IColumn)

Aggregations

IColumn (org.eclipse.scout.rt.client.ui.basic.table.columns.IColumn)1 IStringColumn (org.eclipse.scout.rt.client.ui.basic.table.columns.IStringColumn)1