src/org/tiefaces/components/websheet/configuration/ConfigurationHandler.java
private void initTemplateForCommand(final Sheet sheet, final Map<String, SheetConfiguration> sheetConfigMap,
			final List<String> formList, final boolean hasEachCommand) {

		for (String formname : formList) {
			SheetConfiguration sheetConfig = sheetConfigMap.get(formname);
			CellRange range = sheetConfig.getBodyCellRange();
			for (int index = range.getTopRow(); index <= range.getBottomRow(); index++) {
				Row row = sheet.getRow(index);
				if (row == null) {
					row = sheet.createRow(index);
				}
				if (hasEachCommand) {
					ConfigurationUtility.setOriginalRowNumInHiddenColumn(row, index);
				}

			}
		}

		if (hasEachCommand) {
			copyTemplateForTieCommands(sheet);
		}

	}
private void initTemplateForCommand(final Sheet sheet, final Map<String, SheetConfiguration> sheetConfigMap,
			final List<String> formList, final boolean hasEachCommand) {

		for (String formname : formList) {
			SheetConfiguration sheetConfig = sheetConfigMap.get(formname);
			CellRange range = sheetConfig.getBodyCellRange();
			for (int index = range.getTopRow(); index <= range.getBottomRow(); index++) {
				Row row = sheet.getRow(index);
				if (row == null) {
					row = sheet.createRow(index);
				}
				if (hasEachCommand) {
					ConfigurationUtility.setOriginalRowNumInHiddenColumn(row, index);
				}

			}
		}

		if (hasEachCommand) {
			copyTemplateForTieCommands(sheet);
		}

	}
private void initTemplateForCommand ( final Sheet sheet , final Map < String , SheetConfiguration > sheetConfigMap , final List < String > formList , final boolean hasEachCommand ) { for ( String formname : formList ) { SheetConfiguration sheetConfig = sheetConfigMap . get ( formname ) ; CellRange range = sheetConfig . getBodyCellRange ( ) ; for ( int index = range . getTopRow ( ) ; index <= range . getBottomRow ( ) ; index ++ ) { Row row = sheet . getRow ( index ) ; if ( row == null ) { row = sheet . createRow ( index ) ; } if ( hasEachCommand ) { ConfigurationUtility . setOriginalRowNumInHiddenColumn ( row , index ) ; } } } if ( hasEachCommand ) { copyTemplateForTieCommands ( sheet ) ; } }
Initialize template for command to use. e.g. set origin row number and copy
template if there's each command. create missing row as row require
sequenced.

@param sheet
sheet.
@param sheetConfigMap
sheet config map.
@param formList
list of form.
@param hasEachCommand
whether has each command.
Initialize template for command to use . e . g . set origin row number and copy template if there s each command . create missing row as row require sequenced .