@Override public HTMLElement getDefaultMessageContainer() { return document.createElement("P"); }
@Inject public CellEditorControlsViewImpl(final Document document, final Div cellEditorControls, final Div cellEditorControlsContainer) { this.cellEditorControls = cellEditorControls; this.cellEditorControlsContainer = cellEditorControlsContainer; this.body = document.getBody(); }
final HTMLElement hr = getDocument().createElement("hr"); addCSSClass(hr, "kie-dock__divider"); final Div group = (Div) getDocument().createElement("div"); addCSSClass(group, "panel-group"); final Div heading = (Div) getDocument().createElement("div"); addCSSClass(heading, "panel-heading"); final Div title = (Div) getDocument().createElement("div"); addCSSClass(title, "panel-title"); final Anchor anchorTitle = (Anchor) getDocument().createElement("a"); anchorTitle.setAttribute("data-toggle", "collapse"); final Div content = (Div) getDocument().createElement("div"); addCSSClass(content, "panel-collapse"); final Div divPanel = (Div) getDocument().createElement("div"); addCSSClass(divPanel, "panel-body"); final Div div = (Div) getDocument().createElement("div");
@PostConstruct private void init( ) { itemStrongContent = document.createElement( "strong" ); }
protected native void hide(final Element e) /*-{ $wnd.jQuery(e).modal('hide') }-*/; }
@Override public HTMLElement createContainer() { Div div = (Div) Window.getDocument().createElement("div"); return div; }
public void show() { document.getBody().appendChild(div); show(div); }
@Override public HTMLElement createContainer() { Div div = (Div) Window.getDocument().createElement("div"); return div; }
protected native void hide(final Element e) /*-{ $wnd.jQuery(e).modal('hide') }-*/; }
protected HTMLElement createElement(String type) { return getDocument().createElement(type); }
private void setupOnResize() { document.getBody().setOnresize(event -> calculateWidth()); }
protected HTMLElement createElement(String type) { return getDocument().createElement(type); }
public void show(){ document.getBody().appendChild(div); show(div); }
@Override public HTMLElement provide(final Class<?>[] typeargs, final Annotation[] qualifiers) { for (final Annotation anno : qualifiers) { if (anno.annotationType().equals(Named.class)) { final String tagName = ((Named) anno).value(); try { return Window.getDocument().createElement(tagName); } catch (Throwable t) { throw new RuntimeException("An error occurred while attempting to create an element with the tag name [" + tagName + "].", t); } } } throw new RuntimeException( "Cannot provide an HTMLELement for an injection point of HTMLElement without a @Named qualifier specifying the tag name."); }
private native void hide(final Element e) /*-{ $wnd.jQuery(e).modal('hide') }-*/;
@Override public HTMLElement provide(final Class<?>[] typeargs, final Annotation[] qualifiers) { for (final Annotation anno : qualifiers) { if (anno.annotationType().equals(Named.class)) { final String tagName = ((Named) anno).value(); try { return Window.getDocument().createElement(tagName); } catch (Throwable t) { throw new RuntimeException("An error occurred while attempting to create an element with the tag name [" + tagName + "].", t); } } } throw new RuntimeException( "Cannot provide an HTMLELement for an injection point of HTMLElement without a @Named qualifier specifying the tag name."); }
public void show() { document.getBody().appendChild(div); show(div); }
@Override public void showProperty(String property) { HTMLElement strong = document.createElement("strong"); strong.setTextContent(property); HTMLElement li = document.createElement("li"); li.appendChild(strong); properties.appendChild(li); }
private void setupOnResize() { document.getBody().setOnresize(event -> calculateWidth()); }
@Override public HTMLElement createRow(LayoutRow layoutRow) { Div div = (Div) Window.getDocument().createElement("div"); div.setClassName("row"); return div; }