public class GridLayer extends CompositeLayer
CompositeLayer.CompositeLayerPainter
layerPainter
DOT, VALUE_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
GridLayer(boolean useDefaultConfiguration) |
|
GridLayer(ILayer bodyLayer,
ILayer columnHeaderLayer,
ILayer rowHeaderLayer,
ILayer cornerLayer) |
|
GridLayer(ILayer bodyLayer,
ILayer columnHeaderLayer,
ILayer rowHeaderLayer,
ILayer cornerLayer,
boolean useDefaultConfiguration) |
Modifier and Type | Method and Description |
---|---|
boolean |
doCommand(ILayerCommand command)
Opportunity to respond to a command as it flows down the stack.
|
protected boolean |
doCommandOnChildLayers(ILayerCommand command)
How the GridLayer processes commands is very important.
|
ILayer |
getBodyLayer() |
ILayer |
getColumnHeaderLayer() |
ILayer |
getCornerLayer() |
ILayer |
getRowHeaderLayer() |
protected void |
init(boolean useDefaultConfiguration) |
protected void |
registerCommandHandlers()
Layers should use this method to register their command handlers
and call it from their constructor.
|
void |
setBodyLayer(ILayer bodyLayer) |
void |
setColumnHeaderLayer(ILayer columnHeaderLayer) |
void |
setCornerLayer(ILayer cornerLayer) |
void |
setRowHeaderLayer(ILayer rowHeaderLayer) |
String |
toString() |
addConfigLabelAccumulatorForRegion, configure, dispose, getBoundsByPosition, getCellByPosition, getCellPainter, getChildLayerByLayoutCoordinate, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnPositionOffset, getColumnWidthByPosition, getConfigLabelAccumulatorByRegionName, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getHeightOffset, getLayerPainter, getLayoutXByColumnPosition, getLayoutXByPixelX, getLayoutXYByChildLayer, getLayoutXYByPixelXY, getLayoutXYByPosition, getLayoutYByPixelY, getLayoutYByRowPosition, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getRowPositionOffset, getStartXOfColumnPosition, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, getWidthOffset, isColumnPositionResizable, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, saveState, setChildLayer, setConfigLabelAccumulatorForRegion, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, handleLayerEvent, hasLayerListener, registerCommandHandler, registerEventHandler, registerPersistable, removeLayerListener, setClientAreaProvider, setConfigLabelAccumulator, setLayerPainter, setRegionName, unregisterCommandHandler, unregisterPersistable
public GridLayer(ILayer bodyLayer, ILayer columnHeaderLayer, ILayer rowHeaderLayer, ILayer cornerLayer)
public GridLayer(ILayer bodyLayer, ILayer columnHeaderLayer, ILayer rowHeaderLayer, ILayer cornerLayer, boolean useDefaultConfiguration)
protected GridLayer(boolean useDefaultConfiguration)
protected void init(boolean useDefaultConfiguration)
protected void registerCommandHandlers()
AbstractLayer
registerCommandHandlers
in class AbstractLayer
protected boolean doCommandOnChildLayers(ILayerCommand command)
SelectCellCommand
) then you must inject your special
layer into the body. An injected column or row header will
never see the command because it will be consumed first by the body. In
practice, it's a good idea to implement all your command-handling logic
in the body.doCommandOnChildLayers
in class CompositeLayer
public ILayer getCornerLayer()
public void setCornerLayer(ILayer cornerLayer)
public ILayer getColumnHeaderLayer()
public void setColumnHeaderLayer(ILayer columnHeaderLayer)
public ILayer getRowHeaderLayer()
public void setRowHeaderLayer(ILayer rowHeaderLayer)
public ILayer getBodyLayer()
public void setBodyLayer(ILayer bodyLayer)
public String toString()
toString
in class AbstractLayer
public boolean doCommand(ILayerCommand command)
CompositeLayer
ILayerCommand.convertToTargetLayer(ILayer)
Handle commandsdoCommand
in interface ILayer
doCommand
in class CompositeLayer
command
- the command to performCopyright © 2013. All Rights Reserved.