Tabnine Logo
Element.setClassName
Code IndexAdd Tabnine to your IDE (free)

How to use
setClassName
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.setClassName (Showing top 20 results out of 315)

origin: com.extjs/gxt

/**
 * Sets the style name added to the header's text element.
 * 
 * @param textStyle the text style
 */
public void setTextStyle(String textStyle) {
 this.textStyle = textStyle;
 if (rendered) {
  contentEl.dom.setClassName(textStyle);
 }
}
origin: com.extjs/gxt

/**
 * Sets the element's style name.
 * 
 * @param style the style name
 * @return this
 */
public El setStyleName(String style) {
 dom.setClassName(style);
 return this;
}
origin: org.overlord/overlord-commons-gwt

/**
 * Sets the 'class' attribute on the "li" wrapper for the
 * given wiget.
 * @param w
 * @param theClass
 */
public void setLiClass(Widget w, String theClass) {
  if (this.wrapperMap.containsKey(w)) {
    this.wrapperMap.get(w).setClassName(theClass);
  }
}
origin: org.overlord/overlord-commons-gwt

/**
 * Sets the 'class' attribute on the "li" wrapper for the
 * given wiget.
 * @param w
 * @param theClass
 */
public void setLiClass(Widget w, String theClass) {
  if (this.liMap.containsKey(w)) {
    this.liMap.get(w).setClassName(theClass);
  }
}
origin: org.overlord/overlord-commons-gwt

/**
 * Constructor.
 */
public FontAwesomeIcon() {
  getElement().setClassName("fa"); //$NON-NLS-1$
}

origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public OverlayWidget() {
  super();
  modalityCurtain.setClassName("modal-curtain");
  this.getElement().appendChild(modalityCurtain);
}
origin: com.haulmont.cuba/cuba-web-toolkit

protected com.google.gwt.user.client.Element getModalityCurtain() {
  if (modalityCurtain == null) {
    modalityCurtain = DOM.createDiv();
    modalityCurtain.setClassName(CUBA_NOTIFICATION_MODALITY_CURTAIN);
  }
  return DOM.asOld(modalityCurtain);
}
origin: com.extjs/gxt

@Override
protected void onLayout(Container<?> container, El target) {
 if (innerCt == null) {
  // the innerCt prevents wrapping and shuffling while
  // the container is resizing
  Element div = DOM.createDiv();
  div.setClassName(innerCls);
  innerCt = target.appendChild(div);
 }
 renderAll(container, innerCt);
}
origin: org.kuali.student.core/ks-common-ui

public AbbrPanel(String title, String className){
  Element abbr = DOM.createElement("abbr");
  abbr.setTitle(title);
  abbr.setClassName(className);
  this.setElement(abbr);
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

@Override
protected void construct() {
  super.construct();
  detailsExpanderEl.setInnerText("[MORE]");  //TODO-TRANSLATE, but not with Message-Util
  detailsExpanderEl.setClassName("details-expander");
  getHeader().appendChild(detailsExpanderEl);
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

@Override
protected void construct() {
  super.construct();
  detailsExpanderEl.setInnerText("[MORE]");  //TODO-TRANSLATE, but not with Message-Util
  detailsExpanderEl.setClassName("details-expander");
  getHeader().appendChild(detailsExpanderEl);
}
origin: org.kuali.student.core/ks-common-ui

public AbbrPanel(String title, String className, String text){
  Element abbr = DOM.createElement("abbr");
  abbr.setTitle(title);
  abbr.setClassName(className);
  abbr.setInnerText(text);
  this.setElement(abbr);
}
origin: com.vaadin.addon/vaadin-touchkit-agpl

public VTabBar() {
  setElement(Document.get().createDivElement());
  setStyleName(CLASSNAME);
  wrapper.setClassName(CLASSNAME + "-wrapper");
  getElement().appendChild(wrapper);
  toolbarDiv.setClassName(CLASSNAME + "-toolbar");
  getElement().appendChild(toolbarDiv);
  TouchScrollDelegate.enableTouchScrolling(this, wrapper);
  
}
origin: com.haulmont.cuba/cuba-web-toolkit

public TableAggregationRow(TableWidget tableWidget) {
  this.tableWidget = tableWidget;
  setElement(Document.get().createDivElement());
  getElement().setClassName(tableWidget.getStylePrimaryName() + "-arow");
  getElement().getStyle().setOverflow(Overflow.HIDDEN);
}
origin: com.vaadin.addon/vaadin-touchkit-agpl

public VNavigationView() {
  setElement(Document.get().createDivElement());
  setStyleName(CLASSNAME);
  wrapper.setClassName(CLASSNAME + "-wrapper");
  getElement().appendChild(wrapper);
  toolbarDiv.setClassName(CLASSNAME + "-toolbar");
  getElement().appendChild(toolbarDiv);
  TouchScrollHandler touchScrollHandler = TouchScrollDelegate
      .enableTouchScrolling(this, wrapper);
  DOM.sinkEvents(wrapper, Event.ONSCROLL);
}
origin: org.overlord/overlord-commons-gwt

/**
 * Adds an option to the dropdown.
 * @param label
 * @param value
 */
public Anchor addOption(String label, String value) {
  Anchor a = new Anchor(label);
  a.getElement().setClassName(""); //$NON-NLS-1$
  a.getElement().setAttribute("data-value", value); //$NON-NLS-1$
  actions.add(a);
  return a;
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public VShellShowAllTabLabel(String label) {
  super(DOM.createElement("li"));
  addStyleName("show-all");
  textWrapper.getElement().setInnerHTML(label);
  textWrapper.getElement().setClassName("tab-title");
  this.add(textWrapper);
}
origin: com.extjs/gxt

protected Element getWidgetCell(int row, int col) {
 if (col == treeColumn) {
  Element cell = (Element) getCell(row, col);
  if (cell != null) {
   cell = El.fly(cell).selectNode(".x-tree3-node-text").dom;
   cell.setClassName("x-tree3-node-text x-tree3-node-text-widget");
   cell.getParentElement().getStyle().setProperty("padding", "2px 0px 2px 4px");
   return cell;
  }
 }
 return super.getWidgetCell(row, col).cast();
}
origin: com.googlecode.gwtupload/gwtupload

public ModalUploadStatus() {
 super();
 super.asWidget().addStyleName("upld-status");
 box.add(super.asWidget());
 box.setGlassEnabled(true);
 box.setStyleName("upld-modal");
 box.setGlassStyleName("upld-modal-glass");
 ((Element) box.getElement().getFirstChild()).setClassName("GWTUpld");
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

protected void construct() {
  topicEl.setInnerText(topic);
  header.appendChild(messageTypeEl);
  header.appendChild(topicEl);
  addStyleName(STYLE_NAME);
  header.setClassName("header");
  getElement().appendChild(header);
  applyCloseIconStyles(closeEl);
  header.appendChild(closeEl);
  messageTypeEl.setInnerHTML(getMessageTypeCaption());
}
com.google.gwt.user.clientElementsetClassName

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • setInnerText
  • getId
  • setInnerHTML
  • addClassName
  • getAttribute
  • getInnerHTML
  • getAttribute,
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • removeChild,
  • getChildCount,
  • getOffsetHeight,
  • removeAttribute,
  • removeClassName

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Notification (javax.management)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now