Java Code Examples for gwt.material.design.client.ui.MaterialPanel#add()

The following examples show how to use gwt.material.design.client.ui.MaterialPanel#add() . 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: MaterialDndTest.java    From gwt-material-addins with Apache License 2.0 6 votes vote down vote up
public void testRestriction() {
    // UiBinder
    // given
    MaterialPanel panel = getWidget(false);
    MaterialIcon iconIgnore = new MaterialIcon();
    MaterialLabel labelIgnore = new MaterialLabel();
    panel.add(iconIgnore);
    panel.add(labelIgnore);

    // when / then
    checkRestriction(panel, iconIgnore.getElement(), labelIgnore.getElement());

    // Standard
    // given
    attachWidget();

    // when / then
    checkRestriction(panel, iconIgnore.getElement(), labelIgnore.getElement());
}
 
Example 2
Source File: ScrollHelperTest.java    From gwt-material with Apache License 2.0 5 votes vote down vote up
@Override
protected MaterialPanel createWidget() {
    MaterialPanel container = new MaterialPanel();
    MaterialPanel target = new MaterialPanel();
    container.add(target);
    return container;
}