org.eclipse.nebula.widgets.nattable.freeze
Class CompositeFreezeLayer
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
org.eclipse.nebula.widgets.nattable.layer.CompositeLayer
org.eclipse.nebula.widgets.nattable.freeze.CompositeFreezeLayer
- All Implemented Interfaces:
- ILayer, ILayerListener, IUniqueIndexLayer, IPersistable
public class CompositeFreezeLayer
- extends CompositeLayer
- implements IUniqueIndexLayer
| Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.CompositeLayer |
addConfigLabelAccumulatorForRegion, configure, dispose, doCommandOnChildLayers, getBoundsByPosition, getCellByPosition, getCellPainter, getChildLayerByLayoutCoordinate, getChildLayerByRegionName, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnPositionOffset, getColumnWidthByPosition, getConfigLabelAccumulatorByRegionName, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getHeightOffset, getLayoutXByColumnPosition, getLayoutXByPixelX, getLayoutXCount, getLayoutXYByChildLayer, getLayoutXYByPixelXY, getLayoutXYByPosition, getLayoutYByPixelY, getLayoutYByRowPosition, getLayoutYCount, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getRowPositionOffset, getStartXOfColumnPosition, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, getWidthOffset, isColumnPositionResizable, isRowPositionResizable, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, setChildLayer, setConfigLabelAccumulatorForRegion, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions |
| Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer |
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, hasLayerListener, registerCommandHandler, registerEventHandler, registerPersistable, removeLayerListener, setClientAreaProvider, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistable |
| Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.ILayer |
addLayerListener, configure, dispose, fireLayerEvent, getBoundsByPosition, getCellByPosition, getCellPainter, getClientAreaProvider, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartXOfColumnPosition, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, hasLayerListener, isColumnPositionResizable, isRowPositionResizable, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, registerCommandHandler, registerPersistable, removeLayerListener, setClientAreaProvider, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions, unregisterCommandHandler, unregisterPersistable |
CompositeFreezeLayer
public CompositeFreezeLayer(FreezeLayer freezeLayer,
ViewportLayer viewportLayer,
SelectionLayer selectionLayer)
CompositeFreezeLayer
public CompositeFreezeLayer(FreezeLayer freezeLayer,
ViewportLayer viewportLayer,
SelectionLayer selectionLayer,
boolean useDefaultConfiguration)
handleLayerEvent
public void handleLayerEvent(ILayerEvent event)
- Description copied from class:
AbstractLayer
- Handle layer event notification. Convert it to your context and propagate
UP.
If you override this method you MUST NOT FORGET to raise
the event up the layer stack by calling
super.fireLayerEvent(event) - unless you plan to eat the
event yourself.
- Specified by:
handleLayerEvent in interface ILayerListener- Overrides:
handleLayerEvent in class AbstractLayer
- Parameters:
event - the event
isFrozen
public boolean isFrozen()
getLayerPainter
public ILayerPainter getLayerPainter()
- Specified by:
getLayerPainter in interface ILayer- Overrides:
getLayerPainter in class AbstractLayer
- Returns:
ILayerPainter. Defaults to
GridLineCellLayerPainter
registerCommandHandlers
protected void registerCommandHandlers()
- Description copied from class:
AbstractLayer
- Layers should use this method to register their command handlers and call
it from their constructor. This allows easy overriding if required of
command handlers
- Overrides:
registerCommandHandlers in class AbstractLayer
doCommand
public boolean doCommand(ILayerCommand command)
- 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 co-ordinates using
ILayerCommand.convertToTargetLayer(ILayer) Handle commands
- Specified by:
doCommand in interface ILayer- Overrides:
doCommand in class CompositeLayer
- Parameters:
command - the command to perform
- Returns:
- true if the command has been handled, false otherwise
getColumnPositionByIndex
public int getColumnPositionByIndex(int columnIndex)
- Specified by:
getColumnPositionByIndex in interface IUniqueIndexLayer
getRowPositionByIndex
public int getRowPositionByIndex(int rowIndex)
- Specified by:
getRowPositionByIndex in interface IUniqueIndexLayer
saveState
public void saveState(String prefix,
Properties properties)
- Description copied from interface:
IPersistable
- Saves the state to the given Properties using the specified prefix. Note:
The prefix must be prepended to the property key to support multiple
states within one Properties instance.
- Specified by:
saveState in interface IPersistable- Overrides:
saveState in class CompositeLayer
- Parameters:
prefix - The prefix to use for the state keys. Is also used as the
state configuration name.properties - The Properties instance to save the state to.
loadState
public void loadState(String prefix,
Properties properties)
- Description copied from interface:
IPersistable
- Restore the state out of the given Properties identified by the specified
prefix. Note: The prefix must be prepended to the property key to support
multiple states within one Properties instance.
- Specified by:
loadState in interface IPersistable- Overrides:
loadState in class CompositeLayer
- Parameters:
prefix - The prefix to use for the state keys. Is also used as the
state configuration name.properties - The Properties instance to load the state from.
Copyright © 2015. All rights reserved.