/** * Creates an HTML OPTIONS element. * * @return the newly-created element * @deprecated there is no "options" element; use {@link #createOption()} * instead */ @Deprecated public static com.google.gwt.user.client.Element createOptions() { return Document.get().createElement("options").cast(); }
/** * Creates an HTML element. * * @param tagName the HTML tag of the element to be created * @return the newly-created element */ public static com.google.gwt.user.client.Element createElement(String tagName) { return Document.get().createElement(tagName).cast(); }
/** * Creates an empty flow panel with a custom tag. */ public FlowPanel(String tag) { setElement(Document.get().createElement(tag)); }
public DomBodyBuilder startBody() { if (bodyBuilder == null) { bodyBuilder = new DomBodyBuilder(this); } start(Document.get().createElement("body"), bodyBuilder); return bodyBuilder; }
public DomElementBuilder trustedStart(String tagName) { /* * Validate the tag before trying to create the element, or the browser may * throw a JS error and prevent us from triggering an * IllegalArgumentException. */ assertValidTagName(tagName); start(Document.get().createElement(tagName), elementBuilder); return elementBuilder; }
setElement(Document.get().createElement(tag)); return;
/** * Creates an empty collapsible item. */ public MaterialContainer() { super(Document.get().createElement("main")); }
/** * @param tagName * The tag name of a DOM element. * @return A list component that displays UI components for individual models in an element with the given tag name. */ public ListComponent<M, C> inElement(final String tagName) { return factory.apply((HTMLElement) Document.get().createElement(tagName)); }
/** * Creates an HTML element. * * @param tagName the HTML tag of the element to be created * @return the newly-created element */ public static com.google.gwt.user.client.Element createElement(String tagName) { return Document.get().createElement(tagName).cast(); }
/*************************************** * Creates a new instance. */ public MenuPanel() { setElement(Document.get().createElement("nav")); }
@UiConstructor public Abbreviation(final String title) { super(Document.get().createElement(ElementTags.ABBR)); setTitle(title); } }
public DomElementBuilder trustedStart(String tagName) { /* * Validate the tag before trying to create the element, or the browser may * throw a JS error and prevent us from triggering an * IllegalArgumentException. */ assertValidTagName(tagName); start(Document.get().createElement(tagName), elementBuilder); return elementBuilder; }
@PatchMethod static ButtonElement createButtonElement(Object domImpl, Document doc, String type) { ButtonElement e = doc.createElement("button").cast(); e.setAttribute("type", type); return e; }
public DomBodyBuilder startBody() { if (bodyBuilder == null) { bodyBuilder = new DomBodyBuilder(this); } start(Document.get().createElement("body"), bodyBuilder); return bodyBuilder; }
public WidgetBase(String tag) { WElement we = Document.get().createElement(tag).cast(); we.setWidgetBase(this); setElement(we); } public WidgetBase(Element el) {
@Override public void setTitle(String title) { Element titleElement = Document.get().createElement("h3"); this.container.appendChild(titleElement); StyleUtils.addStyle(titleElement, Popover.STYLE_TITLE); titleElement.setInnerText(title); }
private Element ensureElement() { if (this.element == null) { this.element = (Element) Document.get().createElement(this.tag); this.setElement(this.element); StyleUtils.initStyle(this); StyleUtils.addStyle(this.element, EditorOutput.STYLE_CONTROL_STATIC); this.ensureElement(this.element); } return this.element; }
/** * @return a new icon element. We only create this when {@link #iconElement} * is null or the {@link #iconType} has changed. */ protected Element createIconElement() { Element e = Document.get().createElement(ElementTags.I); e.addClassName(Styles.FONT_AWESOME_BASE); e.addClassName(iconType.getCssName()); e.getStyle().setPaddingRight(5, Unit.PX); return e; }
public Navbar() { setElement(Document.get().createElement(ElementTags.NAV)); setStyleName(Styles.NAVBAR); setType(NavbarType.DEFAULT); getElement().setAttribute(Attributes.ROLE, NAVIGATION); }
public Navbar() { setElement(Document.get().createElement(ElementTags.NAV)); setStyleName(Styles.NAVBAR); setType(NavbarType.DEFAULT); getElement().setAttribute(Attributes.ROLE, NAVIGATION); }