Java Code Examples for gwt.material.design.client.constants.Display
The following examples show how to use
gwt.material.design.client.constants.Display. 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 Source File: ProgressMixin.java License: Apache License 2.0 | 5 votes |
protected void applyCollapsibleProgress(boolean isShow) { MaterialCollapsibleItem item = (MaterialCollapsibleItem) uiObject; MaterialCollapsibleBody body = (MaterialCollapsibleBody) item.getWidget(1); if (uiObject.getElement().getClassName().contains(CssName.ACTIVE)) { if (isShow) { body.setDisplay(Display.NONE); item.add(progress); } else { body.setDisplay(Display.BLOCK); progress.removeFromParent(); } } }
Example 2
Source Project: gwt-material Source File: MaterialSplashScreen.java License: Apache License 2.0 | 5 votes |
@Override protected void onLoad() { setDisplay(Display.NONE); container.setWidth("100%"); container.getElement().getStyle().setMarginTop(15, Style.Unit.PCT); super.onLoad(); super.add(container); super.add(progress); }
Example 3
Source Project: gwt-material Source File: MaterialCollapsibleItem.java License: Apache License 2.0 | 5 votes |
/** * Make this item active. */ @Override public void setActive(boolean active) { this.active = active; if (parent != null) { fireCollapsibleHandler(); removeStyleName(CssName.ACTIVE); if (header != null) { header.removeStyleName(CssName.ACTIVE); } if (active) { if (parent.isAccordion()) { parent.clearActive(); } addStyleName(CssName.ACTIVE); if (header != null) { header.addStyleName(CssName.ACTIVE); } } if (body != null) { body.setDisplay(active ? Display.BLOCK : Display.NONE); } } else { GWT.log("Please make sure that the Collapsible parent is attached or existed.", new IllegalStateException()); } }
Example 4
Source Project: gwt-material Source File: MaterialCollapsible.java License: Apache License 2.0 | 5 votes |
@Override protected void clearActiveClass(HasWidgets widget) { super.clearActiveClass(widget); for (Widget child : widget) { if (child instanceof MaterialCollapsibleBody) { ((MaterialCollapsibleBody) child).setDisplay(Display.NONE); } } }
Example 5
Source Project: gwt-material Source File: MaterialDialogTest.java License: Apache License 2.0 | 5 votes |
public void testMultipleDialogZIndexes() { final int BASE_ZINDEX = 1000; for (int i = 1; i <= 5; i++) { MaterialDialog dialog = new MaterialDialog(); RootPanel.get().add(dialog); dialog.open(); // Expected Display : BLOCK assertEquals(Display.BLOCK.getCssName(), dialog.getElement().getStyle().getDisplay()); /*checkZIndex(dialog, i, BASE_ZINDEX);*/ } }
Example 6
Source Project: gwt-material Source File: MaterialSplashScreen.java License: Apache License 2.0 | 4 votes |
public void show() { setDisplay(Display.BLOCK); }
Example 7
Source Project: gwt-material Source File: MaterialSplashScreen.java License: Apache License 2.0 | 4 votes |
public void hide() { setDisplay(Display.NONE); }
Example 8
Source Project: gwt-material Source File: MaterialCollapsibleItem.java License: Apache License 2.0 | 4 votes |
@Override public void setWaves(WavesType waves) { super.setWaves(waves); setDisplay(Display.BLOCK); }
Example 9
Source Project: gwt-material Source File: HasInlineStyle.java License: Apache License 2.0 | votes |
void setDisplay(Display display);