本文整理了Java中com.extjs.gxt.ui.client.widget.grid.Grid.onRender()
方法的一些代码示例,展示了Grid.onRender()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Grid.onRender()
方法的具体详情如下:
包路径:com.extjs.gxt.ui.client.widget.grid.Grid
类名称:Grid
方法名:onRender
暂无
代码示例来源:origin: com.extjs/gxt
@Override
protected void onRender(Element target, int index) {
super.onRender(target, index);
editSupport.doRender();
setAriaState("aria-readonly", "false");
}
代码示例来源:origin: pl.touk.tola/tola
@Override
protected void onRender(Element target, int index) {
super.onRender(target, index);
Menu contextMenu = new Menu();
MenuItem copySelected = new MenuItem("Skopiuj zaznaczone wiersze");
copySelected.setIconStyle("CopySelectedRows-icon");
copySelected.addSelectionListener(new SelectionListener<MenuEvent>() {
@Override
public void componentSelected(MenuEvent ce) {
List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
ColumnConfig col;
for (int i = 0; i < getColumnModel().getColumnCount(); i++) {
col = getColumnModel().getColumn(i);
if (col instanceof TolaGxtColumnConfig) {
TolaGxtColumnConfig rcol = (TolaGxtColumnConfig) col;
if (rcol.isParticipateInCsvGeneration()) {
columns.add(rcol);
}
}
}
BaseModelToCsvConverter converter = new BaseModelToCsvConverter(getSelectionModel().getSelectedItems());
String csv = converter.convert(columns.toArray(
new ColumnConfig[0]));
Clipboard.setText(csv);
}
});
contextMenu.add(copySelected);
setContextMenu(contextMenu);
}
代码示例来源:origin: com.extjs/gxt
@Override
protected void onRender(Element target, int index) {
super.onRender(target, index);
el().setTabIndex(0);
el().setElementAttribute("hideFocus", "true");
if (columnLines) {
addStyleName("x-grid-with-col-lines");
}
Accessibility.setRole(getElement(), "treegrid");
sinkEvents(Event.ONCLICK | Event.ONDBLCLICK | Event.MOUSEEVENTS | Event.KEYEVENTS);
}
内容来源于网络,如有侵权,请联系作者删除!