org.eclipse.nebula.widgets.nattable.blink
Class BlinkLayer<T>
java.lang.Object
   org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
       org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
           org.eclipse.nebula.widgets.nattable.blink.BlinkLayer<T>
org.eclipse.nebula.widgets.nattable.blink.BlinkLayer<T>
- Type Parameters:
- T- Type of the Bean in the backing IDataProvider
- All Implemented Interfaces: 
- ILayer, ILayerListener, IUniqueIndexLayer, IPersistable
- public class BlinkLayer<T> 
- extends AbstractLayerTransform- implements IUniqueIndexLayer
Blinks cells when they are updated.
 Returns blinking cell styles for the cells which have been updated.
 Every time its asked for config labels:
         Checks the UpdateEventsCache for changes to the cell
         If a cell is updated
                The cell is tracked as 'blinking' and blinking config labels are returned
                A TimerTask is started which will stop the blinking after the blink period is over
 
 
 
 
| Constructor Summary | 
| BlinkLayer(IUniqueIndexLayer dataLayer,
           IRowDataProvider<T> listDataProvider,
           IRowIdAccessor<T> rowIdAccessor,
           IColumnPropertyResolver columnPropertyResolver,
           IConfigRegistry configRegistry)
 | 
| BlinkLayer(IUniqueIndexLayer dataLayer,
           IRowDataProvider<T> listDataProvider,
           IRowIdAccessor<T> rowIdAccessor,
           IColumnPropertyResolver columnPropertyResolver,
           IConfigRegistry configRegistry,
           boolean triggerBlinkOnRowUpdate)
 | 
| BlinkLayer(IUniqueIndexLayer dataLayer,
           IRowDataProvider<T> listDataProvider,
           IRowIdAccessor<T> rowIdAccessor,
           IColumnPropertyResolver columnPropertyResolver,
           IConfigRegistry configRegistry,
           boolean triggerBlinkOnRowUpdate,
           ScheduledExecutorService scheduler)
 | 
 
 
| Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform | 
| configure, doCommand, getCellByPosition, getCellPainter, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartXOfColumnPosition, getStartYOfRowPosition, getUnderlyingLayer, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, isColumnPositionResizable, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, saveState, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions | 
 
| Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer | 
| addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistable | 
 
 
| Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.ILayer | 
| addLayerListener, configure, doCommand, fireLayerEvent, getBoundsByPosition, getCellByPosition, getCellPainter, getClientAreaProvider, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getLayerPainter, 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 | 
 
 
blinkingEnabled
protected boolean blinkingEnabled
BlinkLayer
public BlinkLayer(IUniqueIndexLayer dataLayer,
                  IRowDataProvider<T> listDataProvider,
                  IRowIdAccessor<T> rowIdAccessor,
                  IColumnPropertyResolver columnPropertyResolver,
                  IConfigRegistry configRegistry)
BlinkLayer
public BlinkLayer(IUniqueIndexLayer dataLayer,
                  IRowDataProvider<T> listDataProvider,
                  IRowIdAccessor<T> rowIdAccessor,
                  IColumnPropertyResolver columnPropertyResolver,
                  IConfigRegistry configRegistry,
                  boolean triggerBlinkOnRowUpdate)
BlinkLayer
public BlinkLayer(IUniqueIndexLayer dataLayer,
                  IRowDataProvider<T> listDataProvider,
                  IRowIdAccessor<T> rowIdAccessor,
                  IColumnPropertyResolver columnPropertyResolver,
                  IConfigRegistry configRegistry,
                  boolean triggerBlinkOnRowUpdate,
                  ScheduledExecutorService scheduler)
dispose
public void dispose()
- 
- Specified by:
- disposein interface- ILayer
- Overrides:
- disposein class- AbstractLayerTransform
 
- 
 
getConfigLabelsByPosition
public LabelStack getConfigLabelsByPosition(int columnPosition,
                                            int rowPosition)
- 
- Specified by:
- getConfigLabelsByPositionin interface- ILayer
- Overrides:
- getConfigLabelsByPositionin class- AbstractLayerTransform
 
- 
 
resolveConfigTypes
public LabelStack resolveConfigTypes(ILayerCell cell,
                                     Object oldValue,
                                     Object newValue)
- Find the IBlinkingCellResolverfrom theConfigRegistry.
 Use this to find the config types associated with a blinking cell.
 
- 
 
- 
- Parameters:
- cell- the cell
- oldValue- the old value
- newValue- the new value
- Returns:
- a LabelStack containing resolved config types associated with the cell
 
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:
- handleLayerEventin interface- ILayerListener
- Overrides:
- handleLayerEventin class- AbstractLayer
 
- 
- Parameters:
- event- the event
 
setBlinkingEnabled
public void setBlinkingEnabled(boolean enabled)
- 
 
- 
 
getColumnPositionByIndex
public int getColumnPositionByIndex(int columnIndex)
- 
- Specified by:
- getColumnPositionByIndexin interface- IUniqueIndexLayer
 
- 
 
getRowPositionByIndex
public int getRowPositionByIndex(int rowIndex)
- 
- Specified by:
- getRowPositionByIndexin interface- IUniqueIndexLayer
 
- 
 
setBlinkDurationInMilis
public void setBlinkDurationInMilis(int blinkDurationInMilis)
- 
 
- 
 
Copyright © 2014. All rights reserved.