public interface GridWidget extends com.ait.lienzo.client.core.shape.IPrimitive<com.ait.lienzo.client.core.shape.Group>, com.ait.lienzo.client.core.event.NodeMouseClickHandler, CellSelectionManager
| Modifier and Type | Method and Description |
|---|---|
void |
deselect()
Deselects the Widget; i.e. another GridWidget has been clicked on, so hide
any visual indicator that this Widget was selected.
|
com.ait.lienzo.client.core.shape.Group |
getBody()
Returns the Group representing the GridWidget's Body
|
CellSelectionManager |
getCellSelectionManager()
Returns the
CellSelectionManager associated with the GridWidget |
com.ait.lienzo.client.core.shape.Group |
getHeader()
Returns the Group representing the GridWidget's Header
|
double |
getHeight()
Returns the height of the whole Widget, including Header and Body.
|
GridData |
getModel()
Returns the Model backing the Widget.
|
GridRenderer |
getRenderer()
Returns the Renderer used to render the Widget.
|
BaseGridRendererHelper |
getRendererHelper()
Returns helper for rendering the Widget.
|
double |
getWidth()
Returns the width of the whole Widget.
|
boolean |
isSelected()
Returns the selected state of the Widget.
|
default boolean |
onDragHandle(com.ait.lienzo.client.core.event.INodeXYEvent event)
Checks whether a canvas coordinate is within the "drag handle" for the GridWidget.
|
boolean |
onGroupingToggle(double cellX,
double cellY,
double cellWidth,
double cellHeight)
Checks whether a cell-relative coordinate is "on" the hot-spot to toggle the collapsed/expanded state.
|
void |
select()
Selects the Widget; i.e. it has been clicked on, so show some visual indicator that it has been selected.
|
void |
setRenderer(GridRenderer renderer)
Returns the Rendered used to render the Widget.
|
boolean |
showContextMenuForCell(int uiRowIndex,
int uiColumnIndex)
Show context menu of a cell at coordinates 'uiRowIndex' and 'uiColumnIndex'.
|
boolean |
showContextMenuForHeader(int uiHeaderRowIndex,
int uiHeaderColumnIndex)
Show context menu of a header cell at coordinates 'uiHeaderRowIndex' and 'uiHeaderColumnIndex'.
|
attachToLayerColorMap, detachFromLayerColorMap, getAlpha, getControlHandleFactory, getDragBounds, getDragConstraint, getDragConstraints, getDragMode, getEventPropagationMode, getFillAlpha, getLocation, getOffset, getRotation, getRotationDegrees, getScale, getShear, getStrokeAlpha, getX, getY, isDraggable, isDragging, isEditable, setAlpha, setControlHandleFactory, setDragBounds, setDragConstraint, setDragConstraints, setDraggable, setDragging, setDragMode, setEditable, setEventPropagationMode, setFillAlpha, setLocation, setOffset, setOffset, setOffset, setRotation, setRotationDegrees, setScale, setScale, setScale, setShear, setShear, setStrokeAlpha, setX, setYaddAttributesChangedHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, animate, animate, asContainer, asContainerNode, asGroup, asGroupOf, asGuide, asLayer, asMultiPointShape, asNode, asPrimitive, asScene, asShape, asViewport, batch, cancelAttributesChangedBatcher, copy, draw, drawWithTransforms, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingBox, getBoundingBoxAttributes, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getLayer, getMetaData, getName, getNodeType, getOverLayer, getParent, getRequiredAttributes, getScene, getScratchPad, getTransformingAttributes, getUserData, getViewport, hasMetaData, isEventHandled, isListening, isVisible, moveDown, moveToBottom, moveToTop, moveUp, refresh, removeFromParent, setAttributesChangedBatcher, setID, setListening, setName, setUserData, setVisible, uuidgetFactory, toJSONObject, toJSONStringgetControlHandles, getControlHandlesonNodeMouseClickadjustSelection, selectCell, selectCell, selectHeaderCell, selectHeaderCell, startEditingCell, startEditingCellGridData getModel()
GridRenderer getRenderer()
void setRenderer(GridRenderer renderer)
renderer - BaseGridRendererHelper getRendererHelper()
com.ait.lienzo.client.core.shape.Group getBody()
com.ait.lienzo.client.core.shape.Group getHeader()
double getWidth()
double getHeight()
void select()
void deselect()
boolean isSelected()
boolean showContextMenuForHeader(int uiHeaderRowIndex,
int uiHeaderColumnIndex)
uiHeaderRowIndex - Header row index of cell to invoke context menuuiHeaderColumnIndex - Header column index of cell to invoke context menuboolean showContextMenuForCell(int uiRowIndex,
int uiColumnIndex)
uiRowIndex - Row index of cell to invoke context menuuiColumnIndex - Column index of cell to invoke context menuCellSelectionManager getCellSelectionManager()
CellSelectionManager associated with the GridWidgetboolean onGroupingToggle(double cellX,
double cellY,
double cellWidth,
double cellHeight)
cellX - The MouseEvent relative to the cell's x-coordinate.cellY - The MouseEvent relative to the cell's y-coordinate.cellWidth - Width of the containing cell.cellHeight - Height of the containing cell.default boolean onDragHandle(com.ait.lienzo.client.core.event.INodeXYEvent event)
CoordinateUtilities.convertDOMToGridCoordinate(GridWidget, Point2D)event - The INodeXYEvent relative to the canvas coordinate system.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.