java - How to make sheetname tab in vaadin spreadsheet readonly -
in vaadin-spreadsheet tab displays name of sheet editable. want make readonly. refer pic . suggestions? have tried spreadsheet.lockactivesheet() api not working
disclaimer: more suited comment, surpasses maximum length...
in excel protecting current sheet not prevent rename. protecting workbook it, please note that prevents addition, deletion, etc.
since vaadin implementation relies on apache poi try passing in spreadsheet constructor xssfworkbook locked structure.
nonetheless, looking @ sources, setworkbookprotected()
method seems setting whole sheet read-only, i'm unable validate assumption since don't have licence commercial add-on (test key expired).
public void setworkbookprotected(boolean workbookprotected) { sheettabsheet.setreadonly(workbookprotected); }
all in don't think there's dedicated method of doing this, nor easy workaround.
Comments
Post a Comment