fixedtextcellrenderer.java
来自「webwork source」· Java 代码 · 共 36 行
JAVA
36 行
/* * @author Walter Szewelanczyk * @version 0.01 * date Aug 23, 2001 */package webwork.view.taglib.ui.table.renderer;import webwork.view.taglib.ui.table.WebTable;/** * usefull if a column has an embeded ID number needed for a link but you want it to * say something else. */public class FixedTextCellRenderer extends AbstractCellRenderer{ /** * this is the text that will be shown in the column */ protected String _text = ""; public String getCellValue(WebTable table, Object data, int row, int col) { return _text; } public String getText() { return _text; } public void setText(String text) { _text = text; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?