/** * Returns the attached Media Element. * * @return the Media Element */ public MediaElement getMediaElement() { return this.getElement().cast(); }
/** * Get the underlying button element. * * @return the {@link ButtonElement} */ protected ButtonElement getButtonElement() { return getElement().cast(); } }
private InputElement getInputElement() { return getElement().cast(); } }
/** * Returns the attached Canvas Element. * * @return the Canvas Element */ public CanvasElement getCanvasElement() { return this.getElement().cast(); }
private InputElement getInputElement() { return getElement().cast(); } }
private TextAreaElement getTextAreaElement() { return getElement().cast(); } }
@Override public ImageElement getImageElement(Image image) { return image.getElement().cast(); }
private FrameElement getFrameElement() { return getElement().cast(); } }
private InputElement getInputElement() { return getElement().cast(); } }
private SelectElement getSelectElement() { return getElement().cast(); } }
private FormElement getFormElement() { return getElement().cast(); }
private InputElement getInputElement() { return getElement().cast(); }
/** * Render html into a table section. This is achieved by first setting the html in a DIV * element, and then swap the table section with the corresponding element in the DIV. This * method is used in IE since the normal optimizations are not feasible. * * @param table the {@link AbstractCellTable} * @param section the {@link TableSectionElement} to replace * @param html the html of a table section element containing the rows */ private void replaceTableSection(AbstractCellTable<?> table, TableSectionElement section, SafeHtml html) { String sectionName = section.getTagName().toLowerCase(Locale.ROOT); TableSectionElement newSection = convertToSectionElement(table, sectionName, html); TableElement tableElement = table.getElement().cast(); tableElement.replaceChild(newSection, section); if ("tbody".equals(sectionName)) { ((TableSectionChangeHandler) table).onTableBodyChange(newSection); } else if ("thead".equals(sectionName)) { ((TableSectionChangeHandler) table).onTableHeadChange(newSection); } else if ("tfoot".equals(sectionName)) { ((TableSectionChangeHandler) table).onTableFootChange(newSection); } } }
/** * Get the TextAreaElement for the widget * * @return TextAreaElement element of the widget */ private TextAreaElement getTextAreaElement() { return getElement().cast(); }
@Override public void setRawValue(String value) { boolean b = Boolean.valueOf(value).booleanValue(); ((InputElement) getInputEl().dom.cast()).setChecked(b); }
@Override default HTMLElement getElement() { try { return TemplateWidgetMapper.get(this).getElement().cast(); } catch (final Throwable t) { throw new RuntimeException( "An error occurred while invoking getElement." + " This interface should only be extended by @Templated beans and cannot be invoked before a bean is in service.", t); } }
DivElement outerDiv = getElement().cast(); outerDiv.appendChild(childContainer);
this.colGroupEnabled = enableColGroup; table = getElement().cast(); table.setCellSpacing(0); if (enableColGroup) {
private void setAccept(final String[] validFileExtensions) { this.validFileExtensions = validFileExtensions; final InputElement element = up.getElement().cast(); element.setAccept(makeAcceptString(validFileExtensions)); }
protected void onMouseDown(FieldEvent fe) { if (field instanceof CheckBox && !GXT.isIE) { // blur is firing before check box is changed // mouse down on input fires before blur so stop event to prevent blur Element target = fe.getEvent().getEventTarget().cast(); InputElement input = field.el().selectNode("input").dom.cast(); if (target == input.cast()) { fe.stopEvent(); } } }