Skip to content

Commit 2cc5a78

Browse files
committed
Merge branch 'develop'
2 parents 0ab6a16 + 84f5cf5 commit 2cc5a78

19 files changed

Lines changed: 1333 additions & 1150 deletions

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121

2222
- name: Set up JDK
23-
uses: actions/setup-java@v3
23+
uses: actions/setup-java@v4
2424
with:
25-
java-version: '18'
25+
java-version: '25'
2626
distribution: 'liberica'
2727
cache: maven
2828

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,17 @@ ReportPage reportPage = new ExcelSheet(book.getSheetAt(0)); // использ
9595
```
9696
Используем API для доступа к данным таблиц
9797
```java
98-
// Регистронезависимо найдет ячейку с текстом "Таблица товаров",
99-
// парсит следующую за ней строку как заголовок таблицы,
100-
// оставшиеся строки парсятся как данные до пустой строки или конца файла
101-
Table productTable = reportPage.create("таблица товаров", ProductTableHeader.class);
102-
103-
// Регистронезависимо найдет ячейку с текстом "Таблица продаж",
104-
// парсит следующие за ней 2 строки заголовка таблицы,
105-
// оставшиеся строки парсятся как данные таблицы до строки, содержащей ячейку с текстом "Итого"
106-
Table salesTable = reportPage.create("таблица продаж", "итого", SalesTableHeader.class, 2);
98+
// Регистронезависимо найдет ячейку с текстом "Таблица товаров" - это имя таблицы.
99+
// Имя таблицы описано в единственной строке (2ой аргумент).
100+
// Парсит следующую 1 строку (5ый аргумент) как заголовок таблицы (заголовок описан с помощью enum ProductTableHeader).
101+
// Последующие строки парсятся как данные до пустой строки или конца файла (3ий аргумент 'null')
102+
Table productTable = reportPage.createTable("таблица товаров", 1, null, ProductTableHeader.class, 1);
103+
104+
// Регистронезависимо найдет ячейку с текстом "Таблица продаж" - это имя таблицы.
105+
// Имя таблицы описано в единственной строке (2ой аргумент).
106+
// Парсит следующие 2 строки (5ый аргумент) как заголовок таблицы (заголовок описан с помощью enum SalesTableHeader).
107+
// Последующие строки парсятся как данные таблицы до строки, содержащей ячейку с текстом "Итого" (3ий аргумент)
108+
Table salesTable = reportPage.createTable("таблица продаж", 1, "итого", SalesTableHeader.class, 2);
107109

108110
for (TableRow row : productTable) {
109111
// Извлечет наименования товаров "Яблоко", "Груша" из "Таблицы товаров"

0 commit comments

Comments
 (0)