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

spreadsheet tab editable now

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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -