Cell(int columnIndex, int rowIndex, int columnNum, int rowNum, String colName, String rowName, Table table) { this(columnNum, rowNum, colName, rowName, table); this.columnIndex = (((Rows)table.rows()).hasHeader && !table.rows().locatorChanged()) ? columnIndex + 1 : columnIndex; this.rowIndex = rowIndex; this.table = table; }
Cell(int columnIndex, int rowIndex, int columnNum, int rowNum, String colName, String rowName, Table table) { this(columnNum, rowNum, colName, rowName, table); this.columnIndex = (((Rows)table.rows()).hasHeader && !table.rows().locatorChanged()) ? columnIndex + 1 : columnIndex; this.rowIndex = rowIndex; this.table = table; }
Cell(int columnNum, int rowNum, String colName, String rowName, Table table) { this.columnNum = columnNum; this.rowNum = rowNum; this.columnName = colName; this.rowName = rowName; int colIndex = columnNum - 1 + table.columns().getStartIndex(); int rowIndex = rowNum - 1 + table.rows().getStartIndex(); if (table.cellLocatorTemplate != null) setLocator(fillByMsgTemplate(table.cellLocatorTemplate, colIndex, rowIndex)); else { if (table.rows().locatorChanged()) getFunc = () -> table.row(rowNum).get(columnNum-1).value; else { if (table.columns().locatorChanged()) getFunc = () -> table.column(columnNum).get(rowNum-1).value; }} if (!hasLocator() && getFunc == null) setLocator(fillByMsgTemplate(defaultLocator, columnNum, rowNum)); this.table = table; }
Cell(int columnNum, int rowNum, String colName, String rowName, Table table) { this.columnNum = columnNum; this.rowNum = rowNum; this.columnName = colName; this.rowName = rowName; int colIndex = columnNum - 1 + table.columns().getStartIndex(); int rowIndex = rowNum - 1 + table.rows().getStartIndex(); if (table.cellLocatorTemplate != null) setLocator(fillByMsgTemplate(table.cellLocatorTemplate, colIndex, rowIndex)); else { if (table.rows().locatorChanged()) getFunc = () -> table.row(rowNum).get(columnNum-1).value; else { if (table.columns().locatorChanged()) getFunc = () -> table.column(columnNum).get(rowNum-1).value; }} if (!hasLocator() && getFunc == null) setLocator(fillByMsgTemplate(defaultLocator, columnNum, rowNum)); this.table = table; }