T
- Type of the bean in the backing list.public class GlazedListsEventLayer<T> extends AbstractLayerTransform implements IUniqueIndexLayer, ca.odell.glazedlists.event.ListEventListener<T>, PropertyChangeListener
ListEvent
RowStructuralRefreshEvent
is fired for any number of GlazedLists events received during that interval.
PropertyChangeEvent(s) are propagated immediately as a PropertyUpdateEvent
.
layerPainter
DOT, VALUE_SEPARATOR
Constructor and Description |
---|
GlazedListsEventLayer(IUniqueIndexLayer underlyingLayer,
ca.odell.glazedlists.EventList<T> eventList) |
Modifier and Type | Method and Description |
---|---|
boolean |
doCommand(ILayerCommand command)
Opportunity to respond to a command as it flows down the stack.
|
protected void |
fireEventFromSWTDisplayThread(ILayerEvent event)
These update events are likely to cause a repaint on NatTable.
|
int |
getColumnPositionByIndex(int columnIndex) |
protected Runnable |
getEventNotifier()
Fires a NatTable refresh event, if any glazed list events have occurred.
|
int |
getRowPositionByIndex(int rowIndex) |
boolean |
isDisposed() |
void |
listChanged(ca.odell.glazedlists.event.ListEvent<T> event)
Glazed list event handling.
|
void |
propertyChange(PropertyChangeEvent event)
Object property updated event
|
void |
setEventList(ca.odell.glazedlists.EventList<T> newEventList) |
void |
setTestMode(boolean testMode) |
configure, dispose, getCellByPosition, getCellPainter, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getConfigLabelsByPosition, 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
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, handleLayerEvent, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterPersistable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addLayerListener, configure, dispose, fireLayerEvent, getBoundsByPosition, getCellByPosition, getCellPainter, getClientAreaProvider, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getConfigLabelsByPosition, 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
handleLayerEvent
loadState, saveState
public GlazedListsEventLayer(IUniqueIndexLayer underlyingLayer, ca.odell.glazedlists.EventList<T> eventList)
protected Runnable getEventNotifier()
public void listChanged(ca.odell.glazedlists.event.ListEvent<T> event)
listChanged
in interface ca.odell.glazedlists.event.ListEventListener<T>
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
protected void fireEventFromSWTDisplayThread(ILayerEvent event)
public boolean doCommand(ILayerCommand command)
ILayer
ILayerCommand.convertToTargetLayer(ILayer)
doCommand
in interface ILayer
doCommand
in class AbstractLayerTransform
command
- the command to performpublic boolean isDisposed()
public void setEventList(ca.odell.glazedlists.EventList<T> newEventList)
newEventList
- the EventList
to listen on.public void setTestMode(boolean testMode)
public int getColumnPositionByIndex(int columnIndex)
getColumnPositionByIndex
in interface IUniqueIndexLayer
public int getRowPositionByIndex(int rowIndex)
getRowPositionByIndex
in interface IUniqueIndexLayer
Copyright © 2013. All Rights Reserved.