T
- Type of the bean in the backing list.public class DetailGlazedListsEventLayer<T> extends AbstractLayerTransform implements IUniqueIndexLayer, ca.odell.glazedlists.event.ListEventListener<T>, PropertyChangeListener
ListEvent
ListEvent
fired by the GlazedLists immediately.layerPainter
DOT, VALUE_SEPARATOR
Constructor and Description |
---|
DetailGlazedListsEventLayer(IUniqueIndexLayer underlyingLayer,
ca.odell.glazedlists.EventList<T> eventList)
Create a new
DetailGlazedListsEventLayer which is in fact a ListEventListener
that listens to GlazedLists events and translate them into events that are understandable
by the NatTable. |
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) |
int |
getRowPositionByIndex(int rowIndex) |
void |
listChanged(ca.odell.glazedlists.event.ListEvent<T> event)
GlazedLists event handling.
|
void |
propertyChange(PropertyChangeEvent event)
Object property updated event
|
void |
setEventList(ca.odell.glazedlists.EventList<T> newEventList)
Change the underlying
EventList this layer is listening to. |
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 DetailGlazedListsEventLayer(IUniqueIndexLayer underlyingLayer, ca.odell.glazedlists.EventList<T> eventList)
DetailGlazedListsEventLayer
which is in fact a ListEventListener
that listens to GlazedLists events and translate them into events that are understandable
by the NatTable.underlyingLayer
- The underlying layer of type IUniqueIndexLayer
eventList
- The EventList
this layer should be added as listener.public void listChanged(ca.odell.glazedlists.event.ListEvent<T> event)
listChanged
in interface ca.odell.glazedlists.event.ListEventListener<T>
public boolean doCommand(ILayerCommand command)
ILayer
ILayerCommand.convertToTargetLayer(ILayer)
doCommand
in interface ILayer
doCommand
in class AbstractLayerTransform
command
- the command to performpublic void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
protected void fireEventFromSWTDisplayThread(ILayerEvent event)
event
- The ILayerEvent to fire from the SWT Display thread.public void setEventList(ca.odell.glazedlists.EventList<T> newEventList)
EventList
this layer is listening to.newEventList
- the EventList
to listen on.public int getColumnPositionByIndex(int columnIndex)
getColumnPositionByIndex
in interface IUniqueIndexLayer
public int getRowPositionByIndex(int rowIndex)
getRowPositionByIndex
in interface IUniqueIndexLayer
Copyright © 2013. All Rights Reserved.