Search in sources :

Example 1 with AbstractTableControl

use of org.eclipse.scout.rt.client.ui.basic.table.controls.AbstractTableControl in project scout.rt by eclipse.

the class AbstractTable method createTableControlsInternal.

private void createTableControlsInternal() {
    List<Class<? extends ITableControl>> tcs = getConfiguredTableControls();
    OrderedCollection<ITableControl> tableControls = new OrderedCollection<ITableControl>();
    for (Class<? extends ITableControl> clazz : tcs) {
        ITableControl tableControl = ConfigurationUtility.newInnerInstance(this, clazz);
        ((AbstractTableControl) tableControl).setTable(this);
        tableControls.addOrdered(tableControl);
    }
    m_tableControls = tableControls.getOrderedList();
}
Also used : AbstractTableControl(org.eclipse.scout.rt.client.ui.basic.table.controls.AbstractTableControl) ITableControl(org.eclipse.scout.rt.client.ui.basic.table.controls.ITableControl) OrderedCollection(org.eclipse.scout.rt.platform.util.collection.OrderedCollection)

Example 2 with AbstractTableControl

use of org.eclipse.scout.rt.client.ui.basic.table.controls.AbstractTableControl in project scout.rt by eclipse.

the class AbstractTable method addTableControlInternal.

private void addTableControlInternal(ITableControl control) {
    ((AbstractTableControl) control).setTable(this);
    Collections.sort(m_tableControls, new OrderedComparator());
    propertySupport.firePropertyChange(PROP_TABLE_CONTROLS, null, getTableControls());
}
Also used : AbstractTableControl(org.eclipse.scout.rt.client.ui.basic.table.controls.AbstractTableControl) OrderedComparator(org.eclipse.scout.rt.platform.OrderedComparator)

Aggregations

AbstractTableControl (org.eclipse.scout.rt.client.ui.basic.table.controls.AbstractTableControl)2 ITableControl (org.eclipse.scout.rt.client.ui.basic.table.controls.ITableControl)1 OrderedComparator (org.eclipse.scout.rt.platform.OrderedComparator)1 OrderedCollection (org.eclipse.scout.rt.platform.util.collection.OrderedCollection)1