public class ColumnHeaderLayer extends DimensionallyDependentLayer
Modifier and Type | Field and Description |
---|---|
protected RenameColumnHelper |
renameColumnHelper |
layerPainter
DOT, VALUE_SEPARATOR
Constructor and Description |
---|
ColumnHeaderLayer(IUniqueIndexLayer baseLayer,
ILayer horizontalLayerDependency,
SelectionLayer selectionLayer)
Creates a column header layer using the default configuration and painter
|
ColumnHeaderLayer(IUniqueIndexLayer baseLayer,
ILayer horizontalLayerDependency,
SelectionLayer selectionLayer,
boolean useDefaultConfiguration) |
ColumnHeaderLayer(IUniqueIndexLayer baseLayer,
ILayer horizontalLayerDependency,
SelectionLayer selectionLayer,
boolean useDefaultConfiguration,
ILayerPainter layerPainter) |
Modifier and Type | Method and Description |
---|---|
LabelStack |
getConfigLabelsByPosition(int columnPosition,
int rowPosition) |
Object |
getDataValueByPosition(int columnPosition,
int rowPosition) |
String |
getDisplayModeByPosition(int columnPosition,
int rowPosition) |
String |
getOriginalColumnLabel(int columnPosition) |
String |
getRenamedColumnLabel(int columnPosition) |
String |
getRenamedColumnLabelByIndex(int columnIndex) |
SelectionLayer |
getSelectionLayer() |
boolean |
isColumnRenamed(int columnIndex) |
protected void |
registerCommandHandlers()
Layers should use this method to register their command handlers
and call it from their constructor.
|
boolean |
renameColumnIndex(int columnIndex,
String customColumnName) |
boolean |
renameColumnPosition(int columnPosition,
String customColumnName) |
configure, doCommand, getBaseLayer, getClientAreaProvider, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getHeight, getHorizontalLayerDependency, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartXOfColumnPosition, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getVerticalLayerDependency, getWidth, isColumnPositionResizable, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, saveState, setClientAreaProvider, setHorizontalLayerDependency, setVerticalLayerDependency, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions
addConfiguration, addLayerListener, clearConfiguration, dispose, fireLayerEvent, getBoundsByPosition, getCellByPosition, getCellPainter, getConfigLabelAccumulator, getRegionName, handleLayerEvent, hasLayerListener, registerCommandHandler, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterPersistable
protected RenameColumnHelper renameColumnHelper
public ColumnHeaderLayer(IUniqueIndexLayer baseLayer, ILayer horizontalLayerDependency, SelectionLayer selectionLayer)
baseLayer
- The data provider for this layerhorizontalLayerDependency
- The layer to link the horizontal dimension to, typically the body layerselectionLayer
- The selection layer required to respond to selection eventspublic ColumnHeaderLayer(IUniqueIndexLayer baseLayer, ILayer horizontalLayerDependency, SelectionLayer selectionLayer, boolean useDefaultConfiguration)
public ColumnHeaderLayer(IUniqueIndexLayer baseLayer, ILayer horizontalLayerDependency, SelectionLayer selectionLayer, boolean useDefaultConfiguration, ILayerPainter layerPainter)
baseLayer
- The data provider for this layerhorizontalLayerDependency
- The layer to link the horizontal dimension to, typically the body layerselectionLayer
- The selection layer required to respond to selection eventsuseDefaultConfiguration
- If default configuration should be applied to this layerlayerPainter
- The painter for this layer or null
to use the painter of the base layerpublic String getDisplayModeByPosition(int columnPosition, int rowPosition)
getDisplayModeByPosition
in interface ILayer
getDisplayModeByPosition
in class DimensionallyDependentLayer
columnPosition
- the column position of the cellrowPosition
- the row position of the cellDisplayMode
for the cell at the given position.
The DisplayMode
affects the settings out of the ConfigRegistry
.
Display mode is NORMAL by default.
Example: SelectionLayer
overrides this to return the SELECT
label for cells which are selected.
public LabelStack getConfigLabelsByPosition(int columnPosition, int rowPosition)
getConfigLabelsByPosition
in interface ILayer
getConfigLabelsByPosition
in class DimensionallyDependentLayer
public SelectionLayer getSelectionLayer()
public Object getDataValueByPosition(int columnPosition, int rowPosition)
getDataValueByPosition
in interface ILayer
getDataValueByPosition
in class DimensionallyDependentLayer
protected void registerCommandHandlers()
AbstractLayer
registerCommandHandlers
in class AbstractLayer
public String getOriginalColumnLabel(int columnPosition)
public String getRenamedColumnLabel(int columnPosition)
public String getRenamedColumnLabelByIndex(int columnIndex)
public boolean isColumnRenamed(int columnIndex)
public boolean renameColumnPosition(int columnPosition, String customColumnName)
public boolean renameColumnIndex(int columnIndex, String customColumnName)
Copyright © 2013. All Rights Reserved.