当前位置: 首页>>代码示例>>Java>>正文


Java HasDOMElementResources类代码示例

本文整理汇总了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());
    }
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:20,代码来源:BaseGridData.java

示例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);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:32,代码来源:BaseGridData.java

示例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();
        }
    }
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:BaseGridWidget.java

示例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();
        }
    }
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:GridWidgetDnDMouseMoveHandler.java

示例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);
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:16,代码来源:GuidedDecisionTablePresenter.java

示例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));
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:12,代码来源:DMNGridPanel.java

示例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);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:9,代码来源:RelationColumn.java

示例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);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:8,代码来源:ExpressionEditorColumn.java


注:本文中的org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。