Package org.eclipse.nebula.widgets.grid
Class GridVisibleRangeSupport
java.lang.Object
org.eclipse.nebula.widgets.grid.GridVisibleRangeSupport
public class GridVisibleRangeSupport
extends java.lang.Object
This support class adds the possibility to get informed when the visual range
in the grid is modified. E.g. to implement clever resource management
This support is provisional and may change
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GridVisibleRangeSupport.RangeChangedEvent
Event informing about the changestatic interface
GridVisibleRangeSupport.VisibleRangeChangedListener
Listener notified when the visible range changes -
Method Summary
Modifier and Type Method Description void
addRangeChangeListener(GridVisibleRangeSupport.VisibleRangeChangedListener listener)
Add a listener who is informed when the range is changedstatic GridVisibleRangeSupport
createFor(Grid grid)
Create a range support for the given grid instancevoid
removeRangeChangeListener(GridVisibleRangeSupport.VisibleRangeChangedListener listener)
Remove the listener from the ones informed when the range is changed
-
Method Details
-
addRangeChangeListener
Add a listener who is informed when the range is changed- Parameters:
listener
- the listener to add
-
removeRangeChangeListener
public void removeRangeChangeListener(GridVisibleRangeSupport.VisibleRangeChangedListener listener)Remove the listener from the ones informed when the range is changed- Parameters:
listener
-
-
createFor
Create a range support for the given grid instance- Parameters:
grid
- the grid instance the range support is created for- Returns:
- the created range support
-