@Test public void testSetXY() { addElementsToGrid(); for(int x = 0; x < COLUMNS; x++) { for(int y = 0; y < ROWS; y++) { Assert.assertEquals(elements[x][y], navigation.get(x, y)); } } }
public Actionable get(int x, int y) { return navigation.get(getIndex(x, y)); }
GridUiNavigation implements UiNavigation { public Actionable get(int x, int y) { return navigation.get(getIndex(x, y)); } }
GridUiNavigation implements UiNavigation { public Actionable get(int x, int y) { return navigation.get(getIndex(x, y)); } GridUiNavigation(int xsColumns); }
GridUiNavigation implements UiNavigation { public Actionable get(int x, int y) { return navigation.get(getIndex(x, y)); } GridUiNavigation(int xsColumns); @Override void layout(ScreenSize screenSize); @Override void add(Actionable actionable); @Override void remove(Actionable actionable); @Override void removeAll(); @Override void set(int index, Actionable actionable); Actionable get(int x, int y); void set(int x, int y, Actionable actionable); @Override Actionable navigate(int keycode); @Override Actionable getCursor(); @Override Actionable resetCursor(); @Override Actionable resetCursor(boolean triggerHoverEvent); void setWidth(ScreenSize screenSize, int columns); int getTotalColumns(); int getTotalRows(); @Override String toString(); @Override void onHoverBegin(Hoverable source); @Override void onHoverEnd(Hoverable source); }
GridUiNavigation implements UiNavigation { public Actionable get(int x, int y) { return navigation.get(getIndex(x, y)); } GridUiNavigation(int xsColumns); @Override void layout(ScreenSize screenSize); @Override void add(Actionable actionable); @Override void remove(Actionable actionable); @Override void removeAll(); @Override void set(int index, Actionable actionable); Actionable get(int x, int y); void set(int x, int y, Actionable actionable); @Override Actionable navigate(int keycode); @Override Actionable getCursor(); @Override Actionable resetCursor(); @Override Actionable resetCursor(boolean triggerHoverEvent); void setWidth(ScreenSize screenSize, int columns); int getTotalColumns(); int getTotalRows(); @Override String toString(); @Override void onHoverBegin(Hoverable source); @Override void onHoverEnd(Hoverable source);  }