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

The following examples show how to use gwt.material.design.client.constants.HideOn. 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: NavigatedView.java    From gwt-material-demo with 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 File: QuestionProgress.java    From gwt-material-addins with 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 File: MaterialNavSection.java    From gwt-material with 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 File: HasHideOn.java    From gwt-material with Apache License 2.0 votes vote down vote up
void setHideOn(HideOn hideOn); 
Example #5
Source File: HasHideOn.java    From gwt-material with Apache License 2.0 votes vote down vote up
HideOn getHideOn();