Package ariba.ui.table.AWTDataTable

Examples of ariba.ui.table.AWTDataTable.Column


        String valueColumnName = stringValueForBinding("valueColumnName");
        List columnAttributes = pivotState._allColumnAttributes();
        if (columnAttributes.size() == 0) return;

        Column atttributeColumn = (valueColumnName != null)
                ? findColumnWithName(columnAttributes, valueColumnName)
                : (AWTDataTable.Column)columnAttributes.get(0);

        if (atttributeColumn == null) return;
View Full Code Here


                    } else {
                        // if we're already skipping all remaining value in this cell, then bail
                        if (pivotState._skippingSlot == slot) return AWTDataTable.BlankColumn;
                    }

                    Column override = pivotState._rowOverrideColumn;

                    if (override != null) {
                        // we've overriding, but we need to start after the selection column...
                        // (unless we're rendering in the detail row label area...)
                        if ((!table._renderingPrimaryRow && !isAttributeAreaColumn)
                                    || _target.isValueColumn(table)) {
                            // after this one, skip the rest for this item
                            pivotState._skippingSlot = slot;
                            Column replacement = override.prepareAndReplace(table);
                            pivotState._skippingProperty = replacement.uniquingValue(table, currentItem);
                            return replacement;
                        }
                        else if (!table._renderingPrimaryRow) return AWTDataTable.BlankColumn;
                    }
                }
View Full Code Here

        _columnAttributeFields = postProcessAttributeColumns(columnAttributeFields);

        // If we have no columnFields, then we don't need most of this...
        // just put the columnAttributes on the edge...
        // Todo: What if selection is enabled but we have only one real columnAttributeField?
        Column rootColumn = null;
        if (!noColumnsFieldsOrAttrs && _columnAttributeFields.size() == 1
                    && shouldCollapseColumn(null, 1) && columnFields.size() > 0) {
            // no level for attributes column -- just assign to the root so it will be the attributeColumn()
            rootColumn = (Column)_columnAttributeFields.get(0);
        } else {
            // join them together in a meta-column
            Column attributesColumn = new PivotAttributesColumn(this);
            columnFields.add(attributesColumn);
        }
        _columnFields = createColumnArray(columnFields);
        _rowFields = createColumnArray(rowFields);
View Full Code Here

        if (!isExportMode) {
            if (_showColumnAttributeLabelOnRowBinding != null || _useRowDetailExpansionControlBinding != null) {
                result.add(_RowAttributeExpandoColumn);
            }
            else {
                Column extra = _dataTable.findColumnForKey("PostRowFieldColumn");
                if (extra != null) result.add(extra);
            }
        }

        _firstAttributeColumnIndex = result.size();

        Set visibleColumns = _dataTable.visibleColumnSet();
        // TODO: add column if displaying _rowAttributeFields
        // TODO: mask for visibility!!!
        _columnEdgeRoot.createColumnsForLeafLevel(result);

        Set used = new HashSet();
        ListUtil.addToCollection(used, _rowFields);
        ListUtil.addToCollection(used, _columnFields);
        ListUtil.addToCollection(used, _allColumnAttributes().toArray());

        // All other visible fields are rowAttributeFields
        _optionalRowAttributes = ListUtil.list();
        List rowAttributes = ListUtil.list();
        List allColumns = _dataTable.columns();
        int count = allColumns.size();
        for (int i=0; i < count; i++) {
            Column col = (Column)allColumns.get(i);
            if (!used.contains(col)) {
                col.prepare(_dataTable);
                if (col.isOptional(_dataTable)) _optionalRowAttributes.add(col);
                if (visibleColumns.contains(col)) rowAttributes.add(col);
            }
        }
        _rowAttributeFields = createColumnArray(rowAttributes);
View Full Code Here

    {
        // Build list of data columns, and hide non-visible edge columns in the EdgeCell set
        // to ensure that colspans are appropriately recomputed
        List dataColumns = ListUtil.list();
        for (int i=0, count=displayColumns.size(); i < count; i++) {
            Column c = (Column)displayColumns.get(i);
            c.prepare(_dataTable);
            if (c.isValueColumn(_dataTable)) {
                dataColumns.add(c);
            }
            else if (c instanceof PivotEdgeColumn) {
                ((PivotEdgeColumn)c).edgeCell().setHidden(true);
            }
View Full Code Here

    List restoreColumnsAfterExport (List displayColumns)
    {
        // restore visibility of hidden columns
        for (int i=0, count=displayColumns.size(); i < count; i++) {
            Column c = (Column)displayColumns.get(i);
            if (c instanceof PivotEdgeColumn) {
                ((PivotEdgeColumn)c).edgeCell().setHidden(false);
            }
        }
        return displayColumns;
View Full Code Here

        }

        // Column attribute fields -- add one for selection control if necessary
        int selectMode = _dataTable.selectionMode();
        if (selectMode != AWTDataTable.SELECT_NONE) {
            Column newColumn = (selectMode == AWTDataTable.SELECT_MULTI)
                        ? AWTDataTable.MultiSelectColumn
                        : AWTDataTable.SingleSelectColumn;
            result.add(0, newColumn);
        }
View Full Code Here

    void _addOptionalColumns (List columns, List collection)
    {
        if (columns == null) return;
        for (int i=0, c=columns.size(); i<c; i++) {
            Column col = (Column)columns.get(i);
            col.prepare(_dataTable);
            if (col.isOptional(_dataTable)) {
                collection.add(col);
            }
        }
    }
View Full Code Here

            _dataTable.invalidateColumns();
            List optionalAttributeColumns = optionalAttributeColumns();
            List cols = _dataTable.columns();
            List hiddenCols = (List)lists[4];
            for (int i=0,c=cols.size(); i<c; i++) {
                Column col = (Column)cols.get(i);
                if (optionalAttributeColumns.contains(col)) {
                    _dataTable.setColumnVisibility(col, !hiddenCols.contains(col));
                }
            }
View Full Code Here

    }

    void _layoutMove (Object[] layout, String key, int destinationListId)
    {
        // try to remove from each list
        Column col = _dataTable.findAndRemoveColumnWithKey((List)layout[0], key);
        if (col == null) col = _dataTable.findAndRemoveColumnWithKey((List)layout[1], key);

        // if we found it, insert in the front of the destination
        if (col != null) {
            ((List)layout[destinationListId]).add(0, col);
View Full Code Here

TOP

Related Classes of ariba.ui.table.AWTDataTable.Column

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.