Class FilterRowHeaderComposite<T>
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
org.eclipse.nebula.widgets.nattable.layer.CompositeLayer
org.eclipse.nebula.widgets.nattable.filterrow.FilterRowHeaderComposite<T>
- All Implemented Interfaces:
ILayer
,ILayerListener
,IPersistable
1 column x 2 rows Composite layer
- First row is the
ColumnHeaderLayer
- Second row is the composite is the filter row layer. The filter row layer
is a
DimensionallyDependentLayer
dependent on theColumnHeaderLayer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.nebula.widgets.nattable.layer.CompositeLayer
CompositeLayer.CompositeLayerPainter
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
commandHandlers, eventHandlers, eventHelperLock, layerPainter
Fields inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable
DOT, VALUE_SEPARATOR
-
Constructor Summary
ConstructorDescriptionFilterRowHeaderComposite
(IFilterStrategy<T> filterStrategy, ILayer columnHeaderLayer, IDataProvider columnHeaderDataProvider, IConfigRegistry configRegistry) Creates aFilterRowHeaderComposite
with a createdFilterRowDataLayer
.FilterRowHeaderComposite
(ILayer columnHeaderLayer, FilterRowDataLayer<T> filterRowDataLayer) Creates aFilterRowHeaderComposite
with the providedFilterRowDataLayer
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
doCommand
(ILayerCommand command) Opportunity to respond to a command as it flows down the stack.int
Returns the total height in pixels of this layer.int
boolean
void
setFilterRowVisible
(boolean filterRowVisible) Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.CompositeLayer
addConfigLabelAccumulatorForRegion, configure, dispose, doCommandOnChildLayers, getBoundsByPosition, getCellByPosition, getCellPainter, getChildLayerByLayoutCoordinate, getChildLayerByRegionName, getChildLayerLayout, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnPositionOffset, getColumnWidthByPosition, getConfigLabelAccumulatorByRegionName, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeightOffset, getLayoutXByColumnPosition, getLayoutXByPixelX, getLayoutXCount, getLayoutXYByChildLayer, getLayoutXYByPixelXY, getLayoutXYByPosition, getLayoutYByPixelY, getLayoutYByRowPosition, getLayoutYCount, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getProvidedLabels, getRegionLabelsByXY, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getRowPositionOffset, getStartXOfColumnPosition, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, getWidthOffset, isColumnPositionResizable, isDynamicSizeLayer, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, saveState, setChildLayer, setConfigLabelAccumulatorForRegion, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getClientAreaProvider, getConfigLabelAccumulator, getLayerPainter, getRegionName, handleLayerEvent, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setClientAreaProvider, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistable
-
Constructor Details
-
FilterRowHeaderComposite
public FilterRowHeaderComposite(IFilterStrategy<T> filterStrategy, ILayer columnHeaderLayer, IDataProvider columnHeaderDataProvider, IConfigRegistry configRegistry) Creates aFilterRowHeaderComposite
with a createdFilterRowDataLayer
.- Parameters:
filterStrategy
- TheIFilterStrategy
to which the set filter value should be applied. Used to create aFilterRowDataLayer
.columnHeaderLayer
- TheILayer
to which theFilterRowDataLayer
is dependent. Will be placed in the first row of thisCompositeLayer
. Typically theColumnHeaderLayer
.columnHeaderDataProvider
- TheIDataProvider
of the column header needed to retrieve the real column count of the column header and not a transformed one. Used to create aFilterRowDataLayer
.configRegistry
- TheIConfigRegistry
needed to retrieve theIDisplayConverter
for converting the values on state save/load operations. Used to create aFilterRowDataLayer
.
-
FilterRowHeaderComposite
Creates aFilterRowHeaderComposite
with the providedFilterRowDataLayer
. Allows to use aFilterRowDataLayer
with a custom configuration.- Parameters:
columnHeaderLayer
- TheILayer
to which theFilterRowDataLayer
is dependent. Will be placed in the first row of thisCompositeLayer
. Typically theColumnHeaderLayer
.filterRowDataLayer
- TheFilterRowDataLayer
which is used for backing the filter data and is rendered in the second row of thisCompositeLayer
.- Since:
- 2.3
-
-
Method Details
-
getFilterRowDataLayer
-
getHeight
public int getHeight()Description copied from interface:ILayer
Returns the total height in pixels of this layer.- Specified by:
getHeight
in interfaceILayer
- Overrides:
getHeight
in classCompositeLayer
- Returns:
- The total height in pixels of this layer.
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceILayer
- Overrides:
getRowCount
in classCompositeLayer
- Returns:
- The number of rows in this layer.
-
isFilterRowVisible
public boolean isFilterRowVisible() -
setFilterRowVisible
public void setFilterRowVisible(boolean filterRowVisible) -
doCommand
Description copied from class:CompositeLayer
Opportunity to respond to a command as it flows down the stack. If the layer is not interested in the command it should allow the command to keep traveling down the stack.Note: Before the layer can process a command it must convert the command to its local coordinates using
ILayerCommand.convertToTargetLayer(ILayer)
Handle commands- Specified by:
doCommand
in interfaceILayer
- Overrides:
doCommand
in classCompositeLayer
- Parameters:
command
- The command to execute.- Returns:
true
if the command has been handled and was therefore consumed,false
otherwise.
-