📄 utils.java
字号:
package com.extjs.serverside.table;public class Utils { public final static ColumnRenderer BOLD_COLUMN = new CustomRenderer("bold", "return '<b>'+value+'</b>';"); public static ColumnRenderer getDateFormatRenderer(String format) { return new ColumnRenderer("Ext.util.Format.dateRenderer('"+format+"')"); } public static String getDataIndex(TableColumn[] tc, int cellPosition) { String tagName = tc[cellPosition].getDataIndex(); if (tagName == null) { tagName = "cell" + cellPosition; } return tagName; } public static String getInitializer(TableColumn tc, int cellPosition) { String definition = tc.getDefinition(); if (definition==null) { // it's a hidden column, no need to initalize the column model. return ""; } String dataIndex = tc.getDataIndex(); if (dataIndex == null) { dataIndex = "cell" + cellPosition; } return (cellPosition > 0 ? ",{" : "{") + definition + ", dataIndex:\"" + dataIndex + "\"}"; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -