Package com.google.gwt.user.client.ui.SuggestBox

Examples of com.google.gwt.user.client.ui.SuggestBox.SuggestionDisplay.moveSelectionDown()


    List<Suggestion> suggestions = createSuggestions("test0", "test1", "test2",
        "test3");
    display.showSuggestions(box, suggestions, false, false, NULL_CALLBACK);
    assertNull(display.getCurrentSelection());

    display.moveSelectionDown();
    assertEquals(suggestions.get(0), display.getCurrentSelection());
    display.moveSelectionDown();
    assertEquals(suggestions.get(1), display.getCurrentSelection());
    display.moveSelectionDown();
    assertEquals(suggestions.get(2), display.getCurrentSelection());
View Full Code Here


    display.showSuggestions(box, suggestions, false, false, NULL_CALLBACK);
    assertNull(display.getCurrentSelection());

    display.moveSelectionDown();
    assertEquals(suggestions.get(0), display.getCurrentSelection());
    display.moveSelectionDown();
    assertEquals(suggestions.get(1), display.getCurrentSelection());
    display.moveSelectionDown();
    assertEquals(suggestions.get(2), display.getCurrentSelection());
    display.moveSelectionUp();
    assertEquals(suggestions.get(1), display.getCurrentSelection());
View Full Code Here

    display.moveSelectionDown();
    assertEquals(suggestions.get(0), display.getCurrentSelection());
    display.moveSelectionDown();
    assertEquals(suggestions.get(1), display.getCurrentSelection());
    display.moveSelectionDown();
    assertEquals(suggestions.get(2), display.getCurrentSelection());
    display.moveSelectionUp();
    assertEquals(suggestions.get(1), display.getCurrentSelection());
    display.moveSelectionUp();
    assertEquals(suggestions.get(0), display.getCurrentSelection());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.