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


Java GridRenderer.getTheme方法代码示例

本文整理汇总了Java中org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.GridRenderer.getTheme方法的典型用法代码示例。如果您正苦于以下问题:Java GridRenderer.getTheme方法的具体用法?Java GridRenderer.getTheme怎么用?Java GridRenderer.getTheme使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.GridRenderer的用法示例。


在下文中一共展示了GridRenderer.getTheme方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: renderCell

import org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.GridRenderer; //导入方法依赖的package包/类
@Override
public Group renderCell(final GridCell<String> cell,
                        final GridBodyCellRenderContext context) {
    if (cell == null || cell.getValue() == null) {
        return null;
    }

    final GridRenderer renderer = context.getRenderer();
    final GridRendererTheme theme = renderer.getTheme();

    final Group g = new Group();
    final Text t = theme.getBodyText()
            .setText(cell.getValue().getValue())
            .setListening(false)
            .setX(context.getCellWidth() / 2)
            .setY(context.getCellHeight() / 2);
    g.add(t);
    return g;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:20,代码来源:ListBoxColumnDOMElementSingletonRenderer.java

示例2: renderCell

import org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.GridRenderer; //导入方法依赖的package包/类
@Override
public Group renderCell(final GridCell<Integer> cell,
                        final GridBodyCellRenderContext context) {
    if (cell == null || cell.getValue() == null) {
        return null;
    }

    final GridRenderer renderer = context.getRenderer();
    final GridRendererTheme theme = renderer.getTheme();

    final Group g = new Group();
    final Text t = theme.getBodyText()
            .setText(Integer.toString(cell.getValue().getValue()))
            .setListening(false)
            .setX(context.getCellWidth() / 2)
            .setY(context.getCellHeight() / 2);
    g.add(t);
    return g;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:20,代码来源:IntegerColumnRenderer.java

示例3: getExpressionCellText

import org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.GridRenderer; //导入方法依赖的package包/类
public static Group getExpressionCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) {
    final GridRenderer gridRenderer = context.getRenderer();
    final GridRendererTheme theme = gridRenderer.getTheme();

    final Group g = new Group();
    final Text t = theme.getBodyText()
            .setText(gridCell.getValue().getValue())
            .setListening(false)
            .setX(5)
            .setY(5)
            .setFontFamily(BaseExpressionGridTheme.FONT_FAMILY_EXPRESSION)
            .setTextAlign(TextAlign.LEFT);
    t.setWrapper(new TextLineBreakWrap(t));
    g.add(t);

    return g;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:18,代码来源:RendererUtils.java

示例4: getCenteredCellText

import org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.GridRenderer; //导入方法依赖的package包/类
public static Group getCenteredCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) {
    final GridRenderer gridRenderer = context.getRenderer();
    final GridRendererTheme theme = gridRenderer.getTheme();

    final Group g = new Group();
    final Text t = theme.getBodyText()
            .setText(gridCell.getValue().getValue())
            .setListening(false)
            .setX(context.getCellWidth() / 2)
            .setY(context.getCellHeight() / 2);
    g.add(t);
    return g;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:14,代码来源:RendererUtils.java


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