org.eclipse.nebula.widgets.nattable.viewport
Class ViewportLayerTest

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.viewport.ViewportLayerTest

public class ViewportLayerTest
extends Object


Field Summary
protected  LayerListenerFixture layerListener
           
protected  ViewportLayer viewportLayer
           
 
Constructor Summary
ViewportLayerTest()
           
 
Method Summary
 void adjustColOrigin()
           
 void adjustRowOrigin()
           
 void getColumnCount()
           
 void getColumnIndexByPosition()
          0 1 2 3 4 5 6 7 8 9 |----|----|----|----|----|----|----|----|----|----|
 void getColumnIndexByPositionForAColumnOusideTheViewport()
           
 void getHeight()
          Height is calculated by adding of heights of all visible columns
 void getWidth()
          Width is calculated by adding of widths of all visible columns
 void moveColumnIntoViewportByMovingLeftAndRight()
          0 1 2 3 4 5 6 7 8 9 |----|----|----|----|----|----|----|----|----|----|
 void moveIntoViewportForAColPartiallyDisplayedAtTheRightEdge()
           
 void moveRowIntoViewportByMovingUpAndDown()
          Rows 0 1 2 3 4 |----|----|----|----|----|
 void resertStaticFieldsInViewportFixture()
           
 void scrollVerticallyByAPageCommand()
           
 void settingViewportColumnOriginFiresEvent()
           
 void settingViewportRowOriginFireEvent()
           
 void setup()
           
 void setViewportMinOriginColumnPosition()
           
 void setViewportMinOriginRowPosition()
           
 void setViewportOriginColumnPosition()
           
 void setViewportOriginRowPosition()
           
 void shouldPickUpTheDefaultClientAreaIfItHasNotBeenSet()
           
 void testMoveCellPositionIntoViewport()
           
 void testMoveColumnPositionIntoViewportFiresEvent()
          Scrolling Events fired when origin changes
 void testMoveColumnPositionIntoViewportForAColumnAlreadyInTheViewport()
           
 void testMoveColumnPositionIntoViewportSimpleCase()
           
 void testMoveRowPositionIntoViewport()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewportLayer

protected ViewportLayer viewportLayer

layerListener

protected LayerListenerFixture layerListener
Constructor Detail

ViewportLayerTest

public ViewportLayerTest()
Method Detail

setup

public void setup()

resertStaticFieldsInViewportFixture

public void resertStaticFieldsInViewportFixture()

testMoveColumnPositionIntoViewportSimpleCase

public void testMoveColumnPositionIntoViewportSimpleCase()

testMoveColumnPositionIntoViewportForAColumnAlreadyInTheViewport

public void testMoveColumnPositionIntoViewportForAColumnAlreadyInTheViewport()

moveColumnIntoViewportByMovingLeftAndRight

public void moveColumnIntoViewportByMovingLeftAndRight()
                                                throws Exception
0 1 2 3 4 5 6 7 8 9 |----|----|----|----|----|----|----|----|----|----|

Throws:
Exception

moveRowIntoViewportByMovingUpAndDown

public void moveRowIntoViewportByMovingUpAndDown()
                                          throws Exception
Rows 0 1 2 3 4 |----|----|----|----|----|

Throws:
Exception

moveIntoViewportForAColPartiallyDisplayedAtTheRightEdge

public void moveIntoViewportForAColPartiallyDisplayedAtTheRightEdge()
                                                             throws Exception
Throws:
Exception

getColumnIndexByPositionForAColumnOusideTheViewport

public void getColumnIndexByPositionForAColumnOusideTheViewport()

getColumnIndexByPosition

public void getColumnIndexByPosition()
0 1 2 3 4 5 6 7 8 9 |----|----|----|----|----|----|----|----|----|----|


testMoveRowPositionIntoViewport

public void testMoveRowPositionIntoViewport()

testMoveCellPositionIntoViewport

public void testMoveCellPositionIntoViewport()

getColumnCount

public void getColumnCount()
                    throws Exception
Throws:
Exception

getWidth

public void getWidth()
              throws Exception
Width is calculated by adding of widths of all visible columns

Throws:
Exception

getHeight

public void getHeight()
               throws Exception
Height is calculated by adding of heights of all visible columns

Throws:
Exception

testMoveColumnPositionIntoViewportFiresEvent

public void testMoveColumnPositionIntoViewportFiresEvent()
                                                  throws Exception
Scrolling Events fired when origin changes

Throws:
Exception

setViewportOriginColumnPosition

public void setViewportOriginColumnPosition()
                                     throws Exception
Throws:
Exception

settingViewportColumnOriginFiresEvent

public void settingViewportColumnOriginFiresEvent()
                                           throws Exception
Throws:
Exception

setViewportMinOriginColumnPosition

public void setViewportMinOriginColumnPosition()
                                        throws Exception
Throws:
Exception

setViewportOriginRowPosition

public void setViewportOriginRowPosition()
                                  throws Exception
Throws:
Exception

settingViewportRowOriginFireEvent

public void settingViewportRowOriginFireEvent()
                                       throws Exception
Throws:
Exception

setViewportMinOriginRowPosition

public void setViewportMinOriginRowPosition()
                                     throws Exception
Throws:
Exception

scrollVerticallyByAPageCommand

public void scrollVerticallyByAPageCommand()
                                    throws Exception
Throws:
Exception

adjustRowOrigin

public void adjustRowOrigin()
                     throws Exception
Throws:
Exception

adjustColOrigin

public void adjustColOrigin()
                     throws Exception
Throws:
Exception

shouldPickUpTheDefaultClientAreaIfItHasNotBeenSet

public void shouldPickUpTheDefaultClientAreaIfItHasNotBeenSet()
                                                       throws Exception
Throws:
Exception


Copyright © 2015. All rights reserved.