gwt.material.design.client.ui.MaterialDropDown Java Examples

The following examples show how to use gwt.material.design.client.ui.MaterialDropDown. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MaterialMenuBarTest.java    From gwt-material-addins with Apache License 2.0 6 votes vote down vote up
public void testStructure() {
    // given
    MaterialMenuBar menuBar = getWidget(false);

    // when / then
    final String ACTIVATOR = "dp-activator";
    MaterialLink link = new MaterialLink();
    MaterialDropDown dropDown = new MaterialDropDown();
    link.setActivates(ACTIVATOR);
    dropDown.setActivator(ACTIVATOR);
    menuBar.add(link);
    menuBar.add(dropDown);
    assertEquals(ACTIVATOR, link.getActivates());
    assertEquals(ACTIVATOR, dropDown.getActivator());
    assertEquals(link, menuBar.getWidget(0));
    assertEquals(dropDown, menuBar.getWidget(1));
}
 
Example #2
Source File: LanguageSelector.java    From gwt-material-addins with Apache License 2.0 4 votes vote down vote up
public MaterialDropDown getDropdown() {
    return dropdown;
}