Examples of doCommand()


Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

            } else {
                fromColumnPositionsWithGroupColumns.add(fromColumnPosition);
            }
        }

        return underlyingLayer.doCommand(new MultiColumnReorderCommand(
                columnGroupReorderLayer, fromColumnPositionsWithGroupColumns,
                command.getToColumnPosition(), command.isReorderToLeftEdge()));
    }

}
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

                    toColumnIndex);
        }

        if (updateModel(fromColumnIndex, toColumnIndex, leftEdgeGroupName,
                rightEdgeGroupName)) {
            return underlyingLayer.doCommand(command);
        } else {
            return false;
        }
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

        ColumnGroupModel model = columnGroupReorderLayer.getModel();

        if (updateModel(underlyingLayer, toColumnIndex, fromColumnPositions,
                model)) {
            return underlyingLayer.doCommand(command);
        } else {
            return false;
        }
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

                                        selectedCell.getDataValue(),
                                        editorValue);
                            }
                            ILayer layer = selectedCell.getLayer();

                            layer.doCommand(new UpdateDataCommand(layer,
                                    selectedCell.getColumnPosition(),
                                    selectedCell.getRowPosition(), editorValue));
                        }
                    }
                } else {
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

        int contentWidth = (fontHeight * numberOfNewLines) + (spacing * 2);
        int contentToCellDiff = (cell.getBounds().width - rectangle.width);

        if ((contentWidth > rectangle.width) && calculateByTextHeight) {
            ILayer layer = cell.getLayer();
            layer.doCommand(new ColumnResizeCommand(layer, cell
                    .getColumnPosition(), contentWidth + contentToCellDiff));
        }

        if (text != null && text.length() > 0) {
            if (numberOfNewLines == 1) {
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

    protected void setNewMinLength(ILayerCell cell, int contentHeight) {
        int cellLength = cell.getBounds().height;
        if (cellLength < contentHeight) {

            ILayer layer = cell.getLayer();
            layer.doCommand(new RowResizeCommand(layer, cell.getRowPosition(),
                    contentHeight));
        }
    }

    @Override
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

            int contentHeight = (fontHeight * numberOfNewLines) + (spacing * 2);
            int contentToCellDiff = (cell.getBounds().height - rectangle.height);

            if (performRowResize(contentHeight, rectangle)) {
                ILayer layer = cell.getLayer();
                layer.doCommand(new RowResizeCommand(layer, cell
                        .getRowPosition(), contentHeight + contentToCellDiff));
            }

            if (numberOfNewLines == 1) {
                int contentWidth = Math.min(getLengthFromCache(gc, text),
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

    protected void setNewMinLength(ILayerCell cell, int contentWidth) {
        int cellLength = cell.getBounds().width;
        if (cellLength < contentWidth) {
            // execute ColumnResizeCommand
            ILayer layer = cell.getLayer();
            layer.doCommand(new ColumnResizeCommand(layer, cell
                    .getColumnPosition(), contentWidth));
        }
    }

    @Override
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

                // perform resize if necessary
                int neededHeight = subGridY - bounds.y;
                if (isCalculateParentCellHeight()
                        && (neededHeight > bounds.height)) {
                    ILayer layer = cell.getLayer();
                    layer.doCommand(new RowResizeCommand(layer, cell
                            .getRowPosition(), neededHeight));
                }
            }
        } else {
            this.getInternalPainter().paintCell(cell, gc, bounds,
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.ILayer.doCommand()

            int contentHeight = (fontHeight * numberOfNewLines) + (spacing * 2);
            int contentToCellDiff = (cell.getBounds().width - rectangle.width);

            if ((contentHeight > rectangle.width) && calculateByTextHeight) {
                ILayer layer = cell.getLayer();
                layer.doCommand(new ColumnResizeCommand(layer, cell
                        .getColumnPosition(), contentHeight + contentToCellDiff));
            }

            if (text != null && text.length() > 0) {

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.