Example usage for com.google.gwt.user.client.ui UIObject getElement

List of usage examples for com.google.gwt.user.client.ui UIObject getElement

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui UIObject getElement.

Prototype

public Element getElement() 

Source Link

Document

Gets a handle to the object's underlying DOM element.

Usage

From source file:org.pentaho.mantle.client.dialogs.scheduling.ScheduleEditor.java

License:Open Source License

private void hide(boolean applyToParent, UIObject... objs) {
    for (UIObject obj : objs) {
        Element ele = obj.getElement();
        if (applyToParent) {
            ele = ele.getParentElement();
        }/*from  www.  j a  va  2s  .  c  om*/
        ele.getStyle().setDisplay(Display.NONE);
    }
}

From source file:org.pentaho.ui.xul.gwt.AbstractGwtXulComponent.java

License:Open Source License

public Object getManagedObject() {
    if (managedObject == null) {
        return managedObject;
    }/* w  w  w .  j a v a  2  s . c o  m*/

    if ((!StringUtils.isEmpty(getId()) && (managedObject instanceof UIObject))) {
        UIObject u = (UIObject) managedObject;
        if (u.getElement() != null) {
            ((UIObject) managedObject).getElement().setId(this.getId());
        }
    }
    return managedObject;
}

From source file:org.vectomatic.dnd.DataTransferExt.java

License:Open Source License

/**
 * Set the drag source. Usually you would not change this, but it will
 * affect which node the drag and dragend events are fired at. The default
 * target is the node that was dragged./*w  w w.j  ava  2  s .c  o m*/
 * @param uiObject The element to add.
 */
public final void addElement(UIObject uiObject) {
    addElement_(uiObject.getElement());
}

From source file:org.waveprotocol.wave.client.common.webdriver.DebugClassHelper.java

License:Apache License

/**
 * Adds a debug class to a UIObject./*from   w  ww . j av a2s.  co m*/
 *
 * @param uiObject the object to modify
 * @param debugClass to be added
 */
public static final void addDebugClass(UIObject uiObject, String debugClass) {
    Preconditions.checkNotNull(uiObject, "uiObject cannot be null");
    addDebugClass(uiObject.getElement(), debugClass);
}

From source file:org.waveprotocol.wave.client.common.webdriver.DebugClassHelper.java

License:Apache License

/**
 * Removes a debug class from a UIObject.
 *
 * @param uiObject the object to modify/*w w w.j  a v  a 2 s  .c  o m*/
 * @param debugClass to be removed
 */
public static final void removeDebugClass(UIObject uiObject, String debugClass) {
    Preconditions.checkNotNull(uiObject, "uiObject cannot be null");
    removeDebugClass(uiObject.getElement(), debugClass);
}

From source file:org.waveprotocol.wave.client.common.webdriver.DebugClassHelper.java

License:Apache License

/**
 * Removes all debug classes from a UIObject.
 * @param uiObject The UIObject to remove debug classes from.
 *///  w w w. java2 s  .  c  o  m
public static void clearDebugClasses(UIObject uiObject) {
    clearDebugClasses(uiObject.getElement());
}