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
DimensionallyDependentLayerdependent 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, layerPainterFields inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable
DOT, VALUE_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionFilterRowHeaderComposite(IFilterStrategy<T> filterStrategy, ILayer columnHeaderLayer, IDataProvider columnHeaderDataProvider, IConfigRegistry configRegistry) Creates aFilterRowHeaderCompositewith a createdFilterRowDataLayer.FilterRowHeaderComposite(ILayer columnHeaderLayer, FilterRowDataLayer<T> filterRowDataLayer) Creates aFilterRowHeaderCompositewith the providedFilterRowDataLayer. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoCommand(ILayerCommand command) Opportunity to respond to a command as it flows down the stack.intReturns the total height in pixels of this layer.intbooleanvoidsetFilterRowVisible(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, underlyingToLocalRowPositionsMethods 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 aFilterRowHeaderCompositewith a createdFilterRowDataLayer.- Parameters:
filterStrategy- TheIFilterStrategyto which the set filter value should be applied. Used to create aFilterRowDataLayer.columnHeaderLayer- TheILayerto which theFilterRowDataLayeris dependent. Will be placed in the first row of thisCompositeLayer. Typically theColumnHeaderLayer.columnHeaderDataProvider- TheIDataProviderof the column header needed to retrieve the real column count of the column header and not a transformed one. Used to create aFilterRowDataLayer.configRegistry- TheIConfigRegistryneeded to retrieve theIDisplayConverterfor converting the values on state save/load operations. Used to create aFilterRowDataLayer.
-
FilterRowHeaderComposite
Creates aFilterRowHeaderCompositewith the providedFilterRowDataLayer. Allows to use aFilterRowDataLayerwith a custom configuration.- Parameters:
columnHeaderLayer- TheILayerto which theFilterRowDataLayeris dependent. Will be placed in the first row of thisCompositeLayer. Typically theColumnHeaderLayer.filterRowDataLayer- TheFilterRowDataLayerwhich 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:ILayerReturns the total height in pixels of this layer.- Specified by:
getHeightin interfaceILayer- Overrides:
getHeightin classCompositeLayer- Returns:
- The total height in pixels of this layer.
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceILayer- Overrides:
getRowCountin classCompositeLayer- Returns:
- The number of rows in this layer.
-
isFilterRowVisible
public boolean isFilterRowVisible() -
setFilterRowVisible
public void setFilterRowVisible(boolean filterRowVisible) -
doCommand
Description copied from class:CompositeLayerOpportunity 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:
doCommandin interfaceILayer- Overrides:
doCommandin classCompositeLayer- Parameters:
command- The command to execute.- Returns:
trueif the command has been handled and was therefore consumed,falseotherwise.
-