Java Code Examples for gwt.material.design.client.constants.HideOn

The following examples show how to use gwt.material.design.client.constants.HideOn. 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-demo   Source File: NavigatedView.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void buildScrollSpy(List<Links> links, MaterialWidget panel) {
    this.panel = panel;
    for(Links link : links) {
        MaterialLink spy = new MaterialLink();
        spy.setText(link.getTitle());
        spy.setHref(link.getLink());
        scrollspy.add(spy);
    }
    panel.setMarginTop(40);
    scrollspy.setHideOn(HideOn.HIDE_ON_MED_DOWN);
    scrollspy.setTop(0);
    panel.add(scrollspy);
    scrollspy.addAttachHandler(attachEvent -> {
        MaterialPushpin.apply(scrollspy, 300.0, 10000.0, 64.0);
    });
}
 
Example 2
Source Project: gwt-material-addins   Source File: QuestionProgress.java    License: Apache License 2.0 5 votes vote down vote up
@Override
protected void onLoad() {
    super.onLoad();

    totalLabel.setHideOn(HideOn.HIDE_ON_SMALL_DOWN);
    add(totalLabel);

    progress.setPercent(50);
    progress.setType(ProgressType.DETERMINATE);
    add(progress);

    reset();
}
 
Example 3
Source Project: gwt-material   Source File: MaterialNavSection.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Container for App Toolbar and App Sidebar, contains Material
 * Links, Icons or any other material components.
 */
public MaterialNavSection() {
    super();
    setHideOn(HideOn.HIDE_ON_MED_DOWN);
}
 
Example 4
Source Project: gwt-material   Source File: HasHideOn.java    License: Apache License 2.0 votes vote down vote up
void setHideOn(HideOn hideOn); 
Example 5
Source Project: gwt-material   Source File: HasHideOn.java    License: Apache License 2.0 votes vote down vote up
HideOn getHideOn();