use of org.eclipse.nebula.widgets.nattable.ui.matcher.CellLabelMouseEventMatcher in project nebula.widgets.nattable by eclipse.
the class CellLabelMouseEventMatcherTest method shouldTakeTheRegionIntoAccountWhileMatching.
@Test
public void shouldTakeTheRegionIntoAccountWhileMatching() throws Exception {
CellLabelMouseEventMatcher matcher = new CellLabelMouseEventMatcher(GridRegion.COLUMN_HEADER, MouseEventMatcher.LEFT_BUTTON, TEST_LABEL);
boolean match = matcher.matches(this.natTableFixture, new MouseEvent(SWTUtils.getLeftClickEvent(100, 100, 0, this.natTableFixture)), new LabelStack(GridRegion.BODY));
Assert.assertFalse(match);
}
use of org.eclipse.nebula.widgets.nattable.ui.matcher.CellLabelMouseEventMatcher in project nebula.widgets.nattable by eclipse.
the class CellLabelMouseEventMatcherTest method shouldMatchCellsWithCustomLabels.
@Test
public void shouldMatchCellsWithCustomLabels() throws Exception {
CellLabelMouseEventMatcher matcher = new CellLabelMouseEventMatcher(GridRegion.BODY, MouseEventMatcher.LEFT_BUTTON, TEST_LABEL);
boolean match = matcher.matches(this.natTableFixture, new MouseEvent(SWTUtils.getLeftClickEvent(100, 100, 0, this.natTableFixture)), new LabelStack(GridRegion.BODY));
Assert.assertTrue(match);
}
use of org.eclipse.nebula.widgets.nattable.ui.matcher.CellLabelMouseEventMatcher in project nebula.widgets.nattable by eclipse.
the class CellLabelMouseEventMatcherTest method shouldTakeTheButtomIntoAccountWhileMatching.
@Test
public void shouldTakeTheButtomIntoAccountWhileMatching() throws Exception {
CellLabelMouseEventMatcher matcher = new CellLabelMouseEventMatcher(GridRegion.BODY, MouseEventMatcher.RIGHT_BUTTON, TEST_LABEL);
boolean match = matcher.matches(this.natTableFixture, new MouseEvent(SWTUtils.getLeftClickEvent(100, 100, 0, this.natTableFixture)), new LabelStack(GridRegion.BODY));
Assert.assertFalse(match);
}
Aggregations