protected void applyCssToElement(Map<String,String> properties, HTMLElement element) { if (properties != null && !properties.isEmpty()) { CSSStyleDeclaration style = element.getStyle(); cssPropertiesHelper.readCssValues(properties) .stream().forEach(cssValue -> { String prop = cssValue.getProperty(); String val = cssValue.getValue(); style.setProperty(prop, val); }); } }
private void showElement( HTMLElement element, boolean show ) { element.getStyle().setProperty( "display", show ? Style.Display.INLINE_BLOCK.getCssName() : Style.Display.NONE.getCssName() ); } }
@Inject public NavCarouselWidgetView(AlertBox alertBox) { this.alertBox = alertBox; alertBox.setLevel(AlertBox.Level.WARNING); alertBox.setCloseEnabled(false); alertBox.getElement().getStyle().setProperty("width", "96%"); }
@Inject public NavTilesWidgetView(AlertBox alertBox) { this.alertBox = alertBox; alertBox.setLevel(AlertBox.Level.WARNING); alertBox.setCloseEnabled(false); alertBox.getElement().getStyle().setProperty("width", "96%"); }
@Inject public NavCarouselWidgetView(AlertBox alertBox) { this.alertBox = alertBox; alertBox.setLevel(AlertBox.Level.WARNING); alertBox.setCloseEnabled(false); alertBox.getElement().getStyle().setProperty("width", "96%"); }
@Inject public NavTilesWidgetView(AlertBox alertBox) { this.alertBox = alertBox; alertBox.setLevel(AlertBox.Level.WARNING); alertBox.setCloseEnabled(false); alertBox.getElement().getStyle().setProperty("width", "96%"); }
protected void applyCssProperties(HTMLElement widget) { List<CssValue> cssValues = layoutCssHelper.readCssValues(layoutComponent.getProperties()); cssValues.forEach(cssValue -> { String prop = cssValue.getProperty(); String val = cssValue.getValue(); widget.getStyle().setProperty(prop, val); }); } }
protected void applyCssProperties(HTMLElement widget) { List<CssValue> cssValues = layoutCssHelper.readCssValues(layoutComponent.getProperties()); cssValues.forEach(cssValue -> { String prop = cssValue.getProperty(); String val = cssValue.getValue(); widget.getStyle().setProperty(prop, val); }); } }
@Inject public PerspectiveWidgetView(AlertBox alertBox) { this.alertBox = alertBox; alertBox.setLevel(AlertBox.Level.WARNING); alertBox.setCloseEnabled(false); CSSStyleDeclaration style = alertBox.getElement().getStyle(); style.setProperty("width", "30%"); style.setProperty("margin", "10px"); }
@Before public void setUp() { when(confirmInlineNotification.getElement()).thenReturn(confirmInlineNotificationElement); when(confirmInlineNotificationElement.getStyle()).thenReturn(confirmInlineNotificationStyle); }
@Before public void setUp() { when(confirmInlineNotification.getElement()).thenReturn(confirmInlineNotificationElement); when(confirmInlineNotificationElement.getStyle()).thenReturn(confirmInlineNotificationStyle); }
@Inject public PerspectiveWidgetView(AlertBox alertBox) { this.alertBox = alertBox; alertBox.setLevel(AlertBox.Level.WARNING); alertBox.setCloseEnabled(false); CSSStyleDeclaration style = alertBox.getElement().getStyle(); style.setProperty("width", "30%"); style.setProperty("margin", "10px"); }
public TargetDivNavWidgetView(AlertBox alertBox) { this.alertBox = alertBox; alertBox.setLevel(AlertBox.Level.WARNING); alertBox.setCloseEnabled(false); alertBox.getElement().getStyle().setProperty("width", "96%"); }
@Override public void addItem(SelectorLabelItem item) { HTMLElement element = item.getView().getElement(); element.getStyle().setProperty("margin", "3px"); labelSetDiv.appendChild(element); }
private HTMLElement getPreviewElement() { HTMLElement previewElement = helper.getPreviewElement(ElementWrapperWidget.getWidget(content)); previewElement.getStyle().setProperty("cursor", "default"); addCSSClass(previewElement, "le-widget"); addCSSClass(previewElement, "uf-perspective-col"); return previewElement; }