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

The following examples show how to use gwt.material.design.client.ui.MaterialDropDown. These examples are extracted from open source projects. 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 Project: gwt-material-addins   Source File: MaterialMenuBarTest.java    License: 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 Project: gwt-material-addins   Source File: LanguageSelector.java    License: Apache License 2.0 4 votes vote down vote up
public MaterialDropDown getDropdown() {
    return dropdown;
}