org.eclipse.nebula.widgets.nattable.test.fixture
Class NatTableFixture

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.swt.widgets.Canvas
                      extended by org.eclipse.nebula.widgets.nattable.NatTable
                          extended by org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture
All Implemented Interfaces:
EventListener, ILayer, ILayerListener, IPersistable, IClientAreaProvider, org.eclipse.swt.events.PaintListener, org.eclipse.swt.graphics.Drawable, org.eclipse.swt.internal.SWTEventListener

public class NatTableFixture
extends NatTable


Field Summary
 
Fields inherited from class org.eclipse.nebula.widgets.nattable.NatTable
configurations, DEFAULT_STYLE_OPTIONS, id, INITIAL_PAINT_COMPLETE_FLAG
 
Fields inherited from class org.eclipse.swt.widgets.Control
view
 
Fields inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable
DOT, VALUE_SEPARATOR
 
Fields inherited from interface org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider
DEFAULT
 
Constructor Summary
NatTableFixture()
           
NatTableFixture(ILayer underlyingLayer)
           
NatTableFixture(ILayer underlyingLayer, boolean autoconfigure)
           
NatTableFixture(ILayer underlyingLayer, int width, int height, boolean autoconfigure)
           
NatTableFixture(org.eclipse.swt.widgets.Shell shell, ILayer underlyingLayer)
           
NatTableFixture(org.eclipse.swt.widgets.Shell shell, ILayer underlyingLayer, int width, int height)
           
 
Method Summary
 void enableEditingOnAllCells()
           
 ConfigRegistry getConfigRegistry()
           
 int getEventCount()
           
 void handleLayerEvent(ILayerEvent event)
          Handle an event notification from an ILayer
 boolean isUpdated()
           
 void registerLabelOnColumn(DataLayer bodyDataLayer, int columnIndex, String columnLabel)
           
 void registerLabelOnColumnHeader(DataLayer columnHeaderDataLayer, int columnIndex, String columnLabel)
           
 void scrollToColumn(int gridColumnPosition)
           
 void scrollToRow(int gridRowPosition)
           
 void updateResize()
           
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.NatTable
addConfiguration, addDragSupport, addDropSupport, addLayerListener, addOverlayPainter, checkSubclass, commitAndCloseActiveCellEditor, configure, configure, doCommand, fireLayerEvent, forceFocus, getActiveCellEditor, getBoundsByPosition, getCellByPosition, getCellPainter, getClientAreaProvider, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getID, getLayer, getLayerPainter, getOverlayPainters, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartXOfColumnPosition, getStartYOfRowPosition, getUiBindingRegistry, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getVisualChangeEventConflater, getWidth, hasLayerListener, initInternalListener, isColumnPositionResizable, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, paintControl, refresh, registerCommandHandler, registerPersistable, removeLayerListener, removeOverlayPainter, repaintCell, repaintColumn, repaintHorizontalLeftOver, repaintRow, repaintVerticalLeftOver, saveState, setClientAreaProvider, setConfigRegistry, setLayer, setLayerPainter, setTheme, setUiBindingRegistry, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions, unregisterCommandHandler, unregisterPersistable
 
Methods inherited from class org.eclipse.swt.widgets.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
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.ILayer
dispose
 
Methods inherited from interface org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider
getClientArea
 

Constructor Detail

NatTableFixture

public NatTableFixture()

NatTableFixture

public NatTableFixture(ILayer underlyingLayer)

NatTableFixture

public NatTableFixture(org.eclipse.swt.widgets.Shell shell,
                       ILayer underlyingLayer)

NatTableFixture

public NatTableFixture(org.eclipse.swt.widgets.Shell shell,
                       ILayer underlyingLayer,
                       int width,
                       int height)

NatTableFixture

public NatTableFixture(ILayer underlyingLayer,
                       boolean autoconfigure)

NatTableFixture

public NatTableFixture(ILayer underlyingLayer,
                       int width,
                       int height,
                       boolean autoconfigure)
Method Detail

handleLayerEvent

public void handleLayerEvent(ILayerEvent event)
Description copied from interface: ILayerListener
Handle an event notification from an ILayer

Specified by:
handleLayerEvent in interface ILayerListener
Overrides:
handleLayerEvent in class NatTable
Parameters:
event - the event

updateResize

public void updateResize()
Overrides:
updateResize in class NatTable

getEventCount

public int getEventCount()

isUpdated

public boolean isUpdated()

registerLabelOnColumn

public void registerLabelOnColumn(DataLayer bodyDataLayer,
                                  int columnIndex,
                                  String columnLabel)

registerLabelOnColumnHeader

public void registerLabelOnColumnHeader(DataLayer columnHeaderDataLayer,
                                        int columnIndex,
                                        String columnLabel)

scrollToColumn

public void scrollToColumn(int gridColumnPosition)

scrollToRow

public void scrollToRow(int gridRowPosition)

enableEditingOnAllCells

public void enableEditingOnAllCells()

getConfigRegistry

public ConfigRegistry getConfigRegistry()
Overrides:
getConfigRegistry in class NatTable
Returns:
IConfigRegistry used to hold the configuration bindings by Layer, DisplayMode and Config labels.


Copyright © 2015. All rights reserved.