public final class GridChangeUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GridChangeUtil.CellStatus |
Modifier and Type | Method and Description |
---|---|
static void |
adjustConstraintsOnInsert(GridConstraints constraints,
boolean isRow,
int beforeIndex,
int count) |
static GridChangeUtil.CellStatus |
canDeleteCell(RadContainer grid,
int cellIndex,
boolean isRow) |
static boolean |
canDeleteCells(RadContainer grid,
int[] cells,
boolean row) |
static void |
deleteCell(RadContainer grid,
int cellIndex,
boolean isRow) |
static void |
insertRowOrColumn(RadContainer grid,
int cellIndex,
boolean isRow,
boolean isBefore) |
static boolean |
isColumnEmpty(RadContainer grid,
int columnIndex) |
static boolean |
isRowEmpty(RadContainer grid,
int rowIndex) |
static void |
moveCell(RadContainer container,
boolean isRow,
int sourceCell,
int targetCell) |
static void |
moveCells(RadContainer container,
boolean isRow,
int[] cellsToMove,
int targetCell) |
static void |
splitCell(RadContainer grid,
int cellIndex,
boolean isRow) |
static void |
splitColumn(RadContainer grid,
int columnIndex) |
static void |
splitRow(RadContainer grid,
int rowIndex) |
public static void splitColumn(RadContainer grid, int columnIndex)
public static void splitRow(RadContainer grid, int rowIndex)
public static boolean isColumnEmpty(RadContainer grid, int columnIndex)
public static boolean isRowEmpty(RadContainer grid, int rowIndex)
public static void insertRowOrColumn(RadContainer grid, int cellIndex, boolean isRow, boolean isBefore)
cellIndex
- column or row index, depending on isRow parameter; must be in the range 0..grid.get{Row|Column}Count()-1isRow
- if true, row inserted, otherwise columnisBefore
- if true, row/column will be inserted before row/column with given index, otherwise afterpublic static void adjustConstraintsOnInsert(GridConstraints constraints, boolean isRow, int beforeIndex, int count)
public static void splitCell(RadContainer grid, int cellIndex, boolean isRow)
cellIndex
- column or row index, depending on isRow parameter; must be in the range 0..grid.get{Row|Column}Count()-1isRow
- if true, row is splitted, otherwise columnpublic static GridChangeUtil.CellStatus canDeleteCell(RadContainer grid, int cellIndex, boolean isRow)
cellIndex
- column or row index, depending on isRow parameter; must be in the range 0..grid.get{Row|Column}Count()-1isRow
- if true, row is deleted, otherwise columnpublic static boolean canDeleteCells(RadContainer grid, int[] cells, boolean row)
public static void deleteCell(RadContainer grid, int cellIndex, boolean isRow)
cellIndex
- column or row index, depending on isRow parameter; must be in the range 0..grid.get{Row|Column}Count()-1isRow
- if true, row is deleted, otherwise columnpublic static void moveCells(RadContainer container, boolean isRow, int[] cellsToMove, int targetCell)
public static void moveCell(RadContainer container, boolean isRow, int sourceCell, int targetCell)