private double getMergedCellHeight(final int uiRowIndex, final int uiColumnIndex) { double height = 0; final GridCell<?> cell = gridModel.getCell(uiRowIndex, uiColumnIndex); for (int i = uiRowIndex; i < uiRowIndex + cell.getMergedCellCount(); i++) { height = height + gridModel.getRow(i).getHeight(); } return height; }
private boolean isSelectionInColumns(final GridData.SelectedCell sc) { final int scColumnIndex = sc.getColumnIndex(); for (GridColumn<?> column : columns) { final int columnIndex = column.getIndex(); if (scColumnIndex == columnIndex) { return true; } } return false; } }
protected boolean isPlaceHolderToBeShown(final GridCell<T> cell) { return cell.getValue() != null && cell.getValue().getValue() == null && cell.getValue().getPlaceHolder() != null; } }
private void selectRow(final GridData model, final int uiRowIndex) { model.selectCells(uiRowIndex, 0, model.getColumnCount(), 1); }
private double getHighlightWidth(final List<GridColumn<?>> activeGridColumns) { double highlightWidth = 0; for (GridColumn<?> activeGridColumn : activeGridColumns) { highlightWidth = highlightWidth + activeGridColumn.getWidth(); } return highlightWidth; }
static public boolean isFixed(GridColumn<?> column) { return column != null && FIXED.equals(column.getColumnWidthMode()); } }
protected boolean isPlaceHolderToBeShown(final GridCell<T> cell) { return cell.getValue() != null && cell.getValue().getValue() == null && cell.getValue().getPlaceHolder() != null; } }
private double getMergedCellHeight(final int uiRowIndex, final int uiColumnIndex) { double height = 0; final GridCell<?> cell = gridModel.getCell(uiRowIndex, uiColumnIndex); for (int i = uiRowIndex; i < uiRowIndex + cell.getMergedCellCount(); i++) { height = height + gridModel.getRow(i).getHeight(); } return height; }
private boolean isSelectionInColumns(final GridData.SelectedCell sc) { final int scColumnIndex = sc.getColumnIndex(); for (GridColumn<?> column : columns) { final int columnIndex = column.getIndex(); if (scColumnIndex == columnIndex) { return true; } } return false; } }
static public boolean isFixed(GridColumn<?> column) { return column != null && FIXED.equals(column.getColumnWidthMode()); } }
protected boolean isToReturnNull(final GridCell<T> cell) { return cell == null || cell.getValue() == null || (cell.getValue().getValue() == null && cell.getValue().getPlaceHolder() == null); }
static public boolean isAuto(GridColumn<?> column) { return column != null && AUTO.equals(column.getColumnWidthMode()); }
protected boolean isToReturnNull(final GridCell<T> cell) { return cell == null || cell.getValue() == null || (cell.getValue().getValue() == null && cell.getValue().getPlaceHolder() == null); }
static public boolean isAuto(GridColumn<?> column) { return column != null && AUTO.equals(column.getColumnWidthMode()); }