private void removeLogicalRow(int index) { int baseRow = logicalToLayoutRow(index); if(index != 0 && gapRow != null) { formLayout.removeRow(baseRow + 1); } for(int r = 0; r < rowSpecs.length; r++) { formLayout.removeRow(baseRow + 1); } } private void removeLogicalColumn(int index) {
private void removeLogicalRow(int index) { int baseRow = logicalToLayoutRow(index); if(index != 0 && gapRow != null) { formLayout.removeRow(baseRow + 1); } for(int r = 0; r < rowSpecs.length; r++) { formLayout.removeRow(baseRow + 1); } } private void removeLogicalColumn(int index) {
private void removeLogicalRow(int index) { int baseRow = logicalToLayoutRow(index); if(index != 0 && gapRow != null) { formLayout.removeRow(baseRow + 1); } for(int r = 0; r < rowSpecs.length; r++) { formLayout.removeRow(baseRow + 1); } } private void removeLogicalColumn(int index) {
private void insertLogicalRow(int index) { int baseRow = logicalToLayoutRow(index); // insert the gap for all rows but the first if(index != 0 && gapRow != null) { insertRow(baseRow, gapRow); baseRow += 1; } // insert the element rows for(int r = 0; r < rowSpecs.length; r++) { insertRow(baseRow + r, rowSpecs[r]); } } private void insertLogicalColumn(int index) {
private void insertLogicalRow(int index) { int baseRow = logicalToLayoutRow(index); // insert the gap for all rows but the first if(index != 0 && gapRow != null) { insertRow(baseRow, gapRow); baseRow += 1; } // insert the element rows for(int r = 0; r < rowSpecs.length; r++) { insertRow(baseRow + r, rowSpecs[r]); } } private void insertLogicalColumn(int index) {
private void insertLogicalRow(int index) { int baseRow = logicalToLayoutRow(index); // insert the gap for all rows but the first if(index != 0 && gapRow != null) { insertRow(baseRow, gapRow); baseRow += 1; } // insert the element rows for(int r = 0; r < rowSpecs.length; r++) { insertRow(baseRow + r, rowSpecs[r]); } } private void insertLogicalColumn(int index) {
private CellConstraints deriveCellConstraints(int component, int logicalColumn, int logicalRow) { CellConstraints constraints = format.getConstraints(component); constraints = (CellConstraints)constraints.clone(); constraints.gridX += logicalToLayoutColumn(logicalColumn) + (logicalColumn > 0 && gapColumn != null ? 1 : 0); constraints.gridY += logicalToLayoutRow(logicalRow) + (logicalRow > 0 && gapRow != null ? 1 : 0); return constraints; }
private CellConstraints deriveCellConstraints(int component, int logicalColumn, int logicalRow) { CellConstraints constraints = format.getConstraints(component); constraints = (CellConstraints)constraints.clone(); constraints.gridX += logicalToLayoutColumn(logicalColumn) + (logicalColumn > 0 && gapColumn != null ? 1 : 0); constraints.gridY += logicalToLayoutRow(logicalRow) + (logicalRow > 0 && gapRow != null ? 1 : 0); return constraints; }
private CellConstraints deriveCellConstraints(int component, int logicalColumn, int logicalRow) { CellConstraints constraints = format.getConstraints(component); constraints = (CellConstraints)constraints.clone(); constraints.gridX += logicalToLayoutColumn(logicalColumn) + (logicalColumn > 0 && gapColumn != null ? 1 : 0); constraints.gridY += logicalToLayoutRow(logicalRow) + (logicalRow > 0 && gapRow != null ? 1 : 0); return constraints; }