|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.nebula.widgets.nattable.layer.AbstractLayer
org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsEventLayer<T>
T - Type of the bean in the backing list.public class GlazedListsEventLayer<T>
This layer acts as the event listener for:
ListEvent
RowStructuralRefreshEvent is fired for any number of GlazedLists
events received during that interval.
PropertyChangeEvent(s) are propagated immediately as a
PropertyUpdateEvent.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer |
|---|
commandHandlers, eventHandlers, layerPainter |
| Fields inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable |
|---|
DOT, VALUE_SEPARATOR |
| Constructor Summary | |
|---|---|
GlazedListsEventLayer(IUniqueIndexLayer underlyingLayer,
ca.odell.glazedlists.EventList<T> eventList)
|
|
| Method Summary | |
|---|---|
void |
activate()
Activates the handling of GlazedLists events. |
void |
deactivate()
Deactivates the handling of GlazedLists events. |
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 |
isActive()
|
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)
|
| Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer |
|---|
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, handleLayerEvent, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.ILayerListener |
|---|
handleLayerEvent |
| Methods inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable |
|---|
loadState, saveState |
| Constructor Detail |
|---|
public GlazedListsEventLayer(IUniqueIndexLayer underlyingLayer,
ca.odell.glazedlists.EventList<T> eventList)
| Method Detail |
|---|
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 PropertyChangeListenerprotected void fireEventFromSWTDisplayThread(ILayerEvent event)
public boolean doCommand(ILayerCommand command)
ILayerILayerCommand.convertToTargetLayer(ILayer)
doCommand in interface ILayerdoCommand in class AbstractLayerTransformcommand - the command to perform
public boolean isDisposed()
public void setEventList(ca.odell.glazedlists.EventList<T> newEventList)
newEventList - the EventList to listen on.public void setTestMode(boolean testMode)
public void activate()
This is usually necessary to perform huge updates of the data model to avoid concurrency issues. By default the GlazedListsEventLayer is activated. You can deactivate it prior performing bulk updates and activate it again after the update is finished for a better event handling.
public void deactivate()
This is usually necessary to perform huge updates of the data model to avoid concurrency issues. By default the GlazedListsEventLayer is activated. You can deactivate it prior performing bulk updates and activate it again after the update is finished for a better event handling.
public boolean isActive()
ListEvents into NatTable or not.public int getColumnPositionByIndex(int columnIndex)
getColumnPositionByIndex in interface IUniqueIndexLayerpublic int getRowPositionByIndex(int rowIndex)
getRowPositionByIndex in interface IUniqueIndexLayer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||