You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fesod.apache.org by "codeLikeO (via GitHub)" <gi...@apache.org> on 2026/01/28 02:48:33 UTC

[I] [Bug] 文档错误,找不到对应类 [fesod]

codeLikeO opened a new issue, #835:
URL: https://github.com/apache/fesod/issues/835

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fesod/issues) and found nothing similar.
   
   
   ### Fesod version
   
   1.3.0
   
   ### JDK version
   
   21
   
   ### Operating system
   
   _No response_
   
   ### Steps To Reproduce
   
   文档有误,没有这个类 <img width="885" height="361" alt="Image" src="https://github.com/user-attachments/assets/4b6dab37-603b-4e22-9843-38ce427c800e" />
   
   ### Current Behavior
   
   1
   
   ### Expected Behavior
   
   1
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org


Re: [I] [Bug] 文档错误,找不到对应类 [fesod]

Posted by "delei (via GitHub)" <gi...@apache.org>.
delei closed issue #835: [Bug] 文档错误,找不到对应类
URL: https://github.com/apache/fesod/issues/835


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org


Re: [I] [Bug] 文档错误,找不到对应类 [fesod]

Posted by "bengbengbalabalabeng (via GitHub)" <gi...@apache.org>.
bengbengbalabalabeng commented on issue #835:
URL: https://github.com/apache/fesod/issues/835#issuecomment-3811261871

   Hi, @codeLikeO.
   
   You may try using `AbstractCellStyleStrategy` to customize the cell styles for either the header or the content. This class allows you to define your own styling logic.
   
   ```java
   public class CustomCellStyleWriteHandler extends AbstractCellStyleStrategy {
   
           @Override
           public int order() {
               // Customize the execution order
               return OrderConstant.SHEET_ORDER;
           }
   
           @Override
           protected void setHeadCellStyle(Cell cell, Head head, Integer relativeRowIndex) {
               CellStyle style = cell.getSheet().getWorkbook().createCellStyle();
               style.setFillForegroundColor(IndexedColors.YELLOW.getIndex());
               style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
               cell.setCellStyle(style);
           }
   
           @Override
           protected void setContentCellStyle(Cell cell, Head head, Integer relativeRowIndex) {
               CellStyle cellStyle = cell.getCellStyle();
               if(cellStyle == null) {
                   cellStyle = cell.getSheet().getWorkbook().createCellStyle();
               }
               cellStyle.setFillForegroundColor(IndexedColors.RED.getIndex());
               cellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
               cell.setCellStyle(cellStyle);
           }
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org