Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide helper box only in the header and the first row of each template #960

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public byte[] getContent() {
}

var startIndex = 1; // start in row number 2 with index 1 as the header row has number 1 index 0
var helperStopIndex = 1; //stop in row number 2 with index 1 as the header row has number 1 index 0
int rowIndex = startIndex;
for (NGSMeasurementEntry measurement : measurements) {
Row row = getOrCreateRow(sheet, rowIndex);
Expand Down Expand Up @@ -195,7 +196,7 @@ public byte[] getContent() {
column.columnIndex(),
startIndex,
column.columnIndex(),
DEFAULT_GENERATED_ROW_COUNT - 1,
helperStopIndex,
helper.exampleValue(),
helper.description())
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public byte[] getContent() {
}

var startIndex = 1; // start in row number 2 with index 1 as the header row has number 1 index 0
var helperStopIndex = 1; //stop in row number 2 with index 1 as the header row has number 1 index 0
// make sure to create the visible sheet first
Sheet hiddenSheet = workbook.createSheet("hidden");
Name sequencingReadTypeArea = createOptionArea(hiddenSheet,
Expand All @@ -128,7 +129,7 @@ public byte[] getContent() {
column.columnIndex(),
startIndex,
column.columnIndex(),
DEFAULT_GENERATED_ROW_COUNT - 1,
helperStopIndex,
helper.exampleValue(),
helper.description()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public byte[] getContent() {
}

var startIndex = 1; // start in row number 2 with index 1 skipping the header in the first row
var helperStopIndex = 1; //stop in row number 2 with index 1 as the header row has number 1 index 0
var rowIndex = startIndex;

for (ProteomicsMeasurementEntry pxpEntry : measurements) {
Expand Down Expand Up @@ -199,7 +200,7 @@ public byte[] getContent() {
column.columnIndex(),
startIndex,
column.columnIndex(),
DEFAULT_GENERATED_ROW_COUNT - 1,
helperStopIndex,
helper.exampleValue(),
helper.description())
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public byte[] getContent() {
}

var startIndex = 1; // start in row number 2 with index 1 skipping the header in the first row

var helperStopIndex = 1; //stop in row number 2 with index 1 as the header row has number 1 index 0
// make sure to create the visible sheet first
Sheet hiddenSheet = workbook.createSheet("hidden");
Name digestionMethodArea = createOptionArea(hiddenSheet, "Digestion Method",
Expand All @@ -141,7 +141,7 @@ public byte[] getContent() {
column.columnIndex(),
startIndex,
column.columnIndex(),
DEFAULT_GENERATED_ROW_COUNT - 1,
helperStopIndex,
helper.exampleValue(),
helper.description())
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public static XSSFWorkbook createRegistrationTemplate(List<String> conditions,
}

var startIndex = 1; //start in the second row with index 1.
var helperStopIndex = 1; //stop in the second row with index 1

var hiddenSheet = workbook.createSheet("hidden");
Name analysisToBePerformedOptions = createOptionArea(hiddenSheet, "Analysis to be performed",
Expand Down Expand Up @@ -165,7 +166,7 @@ public static XSSFWorkbook createRegistrationTemplate(List<String> conditions,
column.columnIndex(),
startIndex,
column.columnIndex(),
MAX_ROW_INDEX_TO,
helperStopIndex,
helper.exampleValue(),
helper.description())
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public static XSSFWorkbook createUpdateTemplate(List<Sample> samples, List<Strin
}

var startIndex = 1; //start in the second row with index 1.
var helperStopIndex = 1; //stop in the second row with index 1.
int rowIndex = startIndex;
for (Sample sample : samples) {
Row row = getOrCreateRow(sheet, rowIndex);
Expand Down Expand Up @@ -161,7 +162,7 @@ public static XSSFWorkbook createUpdateTemplate(List<Sample> samples, List<Strin
column.columnIndex(),
startIndex,
column.columnIndex(),
MAX_ROW_INDEX_TO,
helperStopIndex,
helper.exampleValue(),
helper.description())
);
Expand Down
Loading