public boolean isDisplayed() { String display = m_tr.getStyle().getDisplay(); return display==null || !display.equalsIgnoreCase( "none" ); } }
public boolean isDisplayed() { String display = m_tr.getStyle().getDisplay(); return display == null || !display.equalsIgnoreCase( "none" ); } }
/** For internal use only. May be removed or replaced in the future. */ public boolean isScrollPositionVisible() { return scrollPositionElement != null && !scrollPositionElement .getStyle().getDisplay().equals(Display.NONE.toString()); }
public Widget getFirstVisibleCell() { for (int i = 0; i < flow.getWidgetCount(); i++) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (disp == null || disp.isEmpty()) return w; if (Display.NONE.getCssName().equals(disp)) continue; return w; } return null; }
public Widget getFirstVisibleCell() { for (int i = 0; i < flow.getWidgetCount(); i++) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (disp == null || disp.isEmpty()) return w; if (Display.NONE.getCssName().equals(disp)) continue; return w; } return null; }
public Widget getLastVisibleCell() { for (int i = flow.getWidgetCount() - 1; i >= 0; i--) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (disp == null || disp.isEmpty()) return w; if (Display.NONE.getCssName().equals(disp)) continue; return w; } return null; } }
public Widget getLastVisibleCell() { for (int i = flow.getWidgetCount() - 1; i >= 0; i--) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (disp == null || disp.isEmpty()) return w; if (Display.NONE.getCssName().equals(disp)) continue; return w; } return null; } }
public Widget getLastVisibleCell() { for (int i = flow.getWidgetCount() - 1; i >= 0; i--) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (disp == null || disp.isEmpty()) return w; if (Display.NONE.getCssName().equals(disp)) continue; return w; } return null; } }
public List<Widget> getAllVisibleCells() { List<Widget> rslt = null; for (int i = 0; i < flow.getWidgetCount(); i++) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (!Empty.is(disp) && Display.NONE.getCssName().equals(disp)) continue; if (rslt == null) rslt = new ArrayList<>(); rslt.add(w); } return rslt; }
public Widget getFirstVisibleCell() { for (int i = 0; i < flow.getWidgetCount(); i++) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (disp == null || disp.isEmpty()) return w; if (Display.NONE.getCssName().equals(disp)) continue; return w; } return null; }
public List<Widget> getAllVisibleCells() { List<Widget> rslt = null; for (int i = 0; i < flow.getWidgetCount(); i++) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (!Empty.is(disp) && Display.NONE.getCssName().equals(disp)) continue; if (rslt == null) rslt = new ArrayList<>(); rslt.add(w); } return rslt; }
private boolean isWidgetVisibilityHidden(final Widget app) { return Visibility.HIDDEN.getCssName().equals(app.getElement().getStyle().getVisibility()) || Style.Display.NONE.getCssName().equals(app.getElement().getStyle().getDisplay()); }
public List<Widget> getAllVisibleCells() { List<Widget> rslt = null; for (int i = 0; i < flow.getWidgetCount(); i++) { Widget w = flow.getWidget(i); String disp = w.getElement().getStyle().getDisplay(); if (!Empty.is(disp) && Display.NONE.getCssName().equals(disp)) continue; if (rslt == null) rslt = new ArrayList<>(); rslt.add(w); } return rslt; }
String oldDisplay = style.getDisplay(); style.clearDisplay();
@Override protected int getIconsOffsetWidth() { Style presentationsIconStyle = presentationsEditIcon.getElement().getStyle(); if ("none".equals(presentationsIconStyle.getDisplay())) { return super.getIconsOffsetWidth(); } ComputedStyle cs = new ComputedStyle(presentationsEditIcon.getElement()); double right = cs.getDoubleProperty("right"); return (int) Math.ceil(right + cs.getWidth()); }
@Override protected int getIconsOffsetWidth() { Style presentationsIconStyle = presentationsEditIcon.getElement().getStyle(); if ("none".equals(presentationsIconStyle.getDisplay())) { return super.getIconsOffsetWidth(); } ComputedStyle cs = new ComputedStyle(presentationsEditIcon.getElement()); double right = cs.getDoubleProperty("right"); return (int) Math.ceil(right + cs.getWidth()); }
protected void alignContent(Element e, LayoutManager layoutManager) { if (getWidget().isVisible() && !Display.NONE.getCssName().equals(e.getStyle().getDisplay())) { int width = layoutManager.getInnerWidth(e); final Style style = e.getStyle(); style.setLeft(50, Unit.PCT); style.setMarginLeft(-width / 2, Unit.PX); } }
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);*/ } }
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);*/ } }
public void testProgress() { // given MaterialCollapsible collapsible = getWidget(); MaterialCollapsibleItem item1 = (MaterialCollapsibleItem) collapsible.getWidget(FIRST_ITEM); // when / then item1.expand(); item1.showProgress(ProgressType.INDETERMINATE); assertEquals(3, item1.getWidgetCount()); assertTrue(item1.getWidget(2) instanceof MaterialProgress); assertEquals(Display.NONE.getCssName(), item1.getBody().getElement().getStyle().getDisplay()); // when / then item1.hideProgress(); assertEquals(Display.BLOCK.getCssName(), item1.getBody().getElement().getStyle().getDisplay()); }