本文整理汇总了Java中org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources类的典型用法代码示例。如果您正苦于以下问题:Java HasDOMElementResources类的具体用法?Java HasDOMElementResources怎么用?Java HasDOMElementResources使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HasDOMElementResources类属于org.uberfire.ext.wires.core.grids.client.widget.dom包,在下文中一共展示了HasDOMElementResources类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateColumn
import org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources; //导入依赖的package包/类
@Override
public void updateColumn(final int index,
final GridColumn<?> column) {
//Destroy existing column
final GridColumn<?> existing = columns.get(index);
if (existing.getColumnRenderer() instanceof HasDOMElementResources) {
((HasDOMElementResources) existing.getColumnRenderer()).destroyResources();
}
//Replace existing with new column
column.setIndex(columns.get(index).getIndex());
columns.set(index,
column);
//Clear column data
for (GridRow row : rows) {
((BaseGridRow) row).deleteCell(column.getIndex());
}
}
示例2: deleteColumn
import org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources; //导入依赖的package包/类
@Override
public void deleteColumn(final GridColumn<?> column) {
final int index = column.getIndex();
for (GridColumn<?> c : columns) {
if (c.getIndex() > index) {
c.setIndex(c.getIndex() - 1);
}
}
//Destroy column
if (column.getColumnRenderer() instanceof HasDOMElementResources) {
((HasDOMElementResources) column.getColumnRenderer()).destroyResources();
}
removeColumn(column);
//Destroy column data
for (GridRow row : rows) {
((BaseGridRow) row).deleteCell(index);
final Map<Integer, GridCell<?>> clone = new HashMap<Integer, GridCell<?>>(row.getCells());
for (Map.Entry<Integer, GridCell<?>> e : clone.entrySet()) {
if (e.getKey() > index) {
((BaseGridRow) row).deleteCell(e.getKey());
((BaseGridRow) row).setCell(e.getKey() - 1,
e.getValue().getValue());
}
}
}
selectionsManager.onDeleteColumn(index);
}
示例3: destroyDOMElementResources
import org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources; //导入依赖的package包/类
void destroyDOMElementResources() {
for (GridColumn<?> column : model.getColumns()) {
if (column.getColumnRenderer() instanceof HasDOMElementResources) {
((HasDOMElementResources) column.getColumnRenderer()).destroyResources();
}
}
}
示例4: destroyColumns
import org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources; //导入依赖的package包/类
private void destroyColumns(final List<GridColumn<?>> columns) {
for (GridColumn<?> column : columns) {
if (column instanceof HasDOMElementResources) {
((HasDOMElementResources) column).destroyResources();
}
}
}
示例5: onClose
import org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources; //导入依赖的package包/类
@Override
public void onClose() {
terminateAnalysis();
if (uiModel != null) {
for (GridColumn<?> column : uiModel.getColumns()) {
if (column.getColumnRenderer() instanceof HasDOMElementResources) {
((HasDOMElementResources) column.getColumnRenderer()).destroyResources();
}
}
}
lockManager.releaseLock();
oracleFactory.destroy(oracle);
}
示例6: destroyDOMElements
import org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources; //导入依赖的package包/类
private MouseWheelHandler destroyDOMElements() {
return (event) -> gridLayer
.getGridWidgets()
.forEach(gridWidget -> gridWidget
.getModel()
.getColumns()
.stream()
.filter(gridColumn -> gridColumn instanceof HasDOMElementResources)
.map(gridColumn -> ((HasDOMElementResources) gridColumn))
.forEach(HasDOMElementResources::destroyResources));
}
示例7: destroyResources
import org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources; //导入依赖的package包/类
@Override
public void destroyResources() {
factory.destroyResources();
getHeaderMetaData().stream()
.filter(md -> md instanceof HasDOMElementResources)
.map(md -> (HasDOMElementResources) md)
.forEach(HasDOMElementResources::destroyResources);
}
示例8: destroyResources
import org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources; //导入依赖的package包/类
@Override
public void destroyResources() {
getHeaderMetaData().stream()
.filter(md -> md instanceof HasDOMElementResources)
.map(md -> (HasDOMElementResources) md)
.forEach(HasDOMElementResources::destroyResources);
}