Jiaju Zhuang
5 years ago
4 changed files with 30 additions and 1 deletions
@ -0,0 +1,21 @@
|
||||
package com.alibaba.easyexcel.test.temp.simple; |
||||
|
||||
import com.alibaba.excel.write.handler.AbstractSheetWriteHandler; |
||||
import com.alibaba.excel.write.metadata.holder.WriteSheetHolder; |
||||
import com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder; |
||||
|
||||
import lombok.extern.slf4j.Slf4j; |
||||
|
||||
/** |
||||
* @author Jiaju Zhuang |
||||
*/ |
||||
@Slf4j |
||||
public class WriteHandler extends AbstractSheetWriteHandler { |
||||
|
||||
@Override |
||||
public void afterSheetCreate(WriteWorkbookHolder writeWorkbookHolder, |
||||
WriteSheetHolder writeSheetHolder) { |
||||
log.info("锁住"); |
||||
writeSheetHolder.getSheet().protectSheet("edit"); |
||||
} |
||||
} |
Loading…
Reference in new issue