public class ScenarioSimulationGridHeaderUtilities extends Object
| Constructor and Description |
|---|
ScenarioSimulationGridHeaderUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static ScenarioHeaderMetaData |
getColumnScenarioHeaderMetaData(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
double cx,
double cy)
Retrieve the
ScenarioHeaderMetaData from the GridColumn of a GridWidget at a given point x. |
static ScenarioHeaderMetaData |
getColumnScenarioHeaderMetaData(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column,
double cy)
Retrieve the
ScenarioHeaderMetaData from the GridColumn of a GridWidget at a given point. |
static org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> |
getGridColumn(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
double cx)
Retrieve the
GridColumn of a GridWidget at a given point x. |
static Integer |
getUiHeaderRowIndex(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column,
double cy)
Gets the header row index corresponding to the provided Canvas y-coordinate relative to the grid.
|
static boolean |
hasEditableHeader(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column) |
static boolean |
isEditableHeader(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column,
Integer uiHeaderRowIndex) |
static org.uberfire.ext.wires.core.grids.client.widget.context.GridBodyCellEditContext |
makeRenderContext(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.impl.BaseGridRendererHelper.RenderingInformation ri,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.impl.BaseGridRendererHelper.ColumnInformation ci,
int uiHeaderRowIndex) |
static org.uberfire.ext.wires.core.grids.client.widget.context.GridBodyCellEditContext |
makeRenderContext(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.impl.BaseGridRendererHelper.RenderingInformation ri,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.impl.BaseGridRendererHelper.ColumnInformation ci,
com.ait.lienzo.client.core.types.Point2D rp,
int uiHeaderRowIndex) |
public ScenarioSimulationGridHeaderUtilities()
public static Integer getUiHeaderRowIndex(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget, org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column, double cy)
INodeXYEvent using CoordinateUtilities.convertDOMToGridCoordinate(GridWidget, Point2D)gridWidget - GridWidget to check.column - Column on which the even has occurredcy - y-coordinate relative to the GridWidget.public static ScenarioHeaderMetaData getColumnScenarioHeaderMetaData(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget, double cx, double cy)
ScenarioHeaderMetaData from the GridColumn of a GridWidget at a given point x.
It returns null if none is present at that position.gridWidget - cx - cy - public static ScenarioHeaderMetaData getColumnScenarioHeaderMetaData(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget, org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column, double cy)
ScenarioHeaderMetaData from the GridColumn of a GridWidget at a given point.
It returns null if none is present at that position.gridWidget - column - cy - public static org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> getGridColumn(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
double cx)
GridColumn of a GridWidget at a given point x.
It returns null if none is present at that position.gridWidget - cx - public static boolean hasEditableHeader(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
public static boolean isEditableHeader(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column,
Integer uiHeaderRowIndex)
public static org.uberfire.ext.wires.core.grids.client.widget.context.GridBodyCellEditContext makeRenderContext(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.impl.BaseGridRendererHelper.RenderingInformation ri,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.impl.BaseGridRendererHelper.ColumnInformation ci,
int uiHeaderRowIndex)
public static org.uberfire.ext.wires.core.grids.client.widget.context.GridBodyCellEditContext makeRenderContext(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.impl.BaseGridRendererHelper.RenderingInformation ri,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.impl.BaseGridRendererHelper.ColumnInformation ci,
com.ait.lienzo.client.core.types.Point2D rp,
int uiHeaderRowIndex)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.