Skip to content

Implement specificWorkbookSheet method#238

Open
HasaanA16 wants to merge 1 commit into
apache:trunkfrom
HasaanA16:trunk
Open

Implement specificWorkbookSheet method#238
HasaanA16 wants to merge 1 commit into
apache:trunkfrom
HasaanA16:trunk

Conversation

@HasaanA16

@HasaanA16 HasaanA16 commented Jul 9, 2021

Copy link
Copy Markdown

The specificWorkbookSheet() takes a workbook and sheetNumber as an argument, and creates an html of a specific sheet using the predefined method processSheet().

Initially it was not possible as processSheet() is protected and cannot be used.

}

public void processWorkbook(HSSFWorkbook workbook) {
public void processWorkbookSheet(HSSFWorkbook workbook) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't need to be renamed

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, naming is not an issue. It was just my idea. Keeping the name same is also fine

htmlDocumentFacade.updateStylesheet();
}

public void processWorkbookSheet(HSSFWorkbook workbook, int sheetNumber) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you call this processWorksheet?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be better to just pass a HSSFWorksheet in the input instead of a workbook and sheetNumber?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants