Example usage for com.google.gwt.user.client.ui Widget ensureDebugId

List of usage examples for com.google.gwt.user.client.ui Widget ensureDebugId

Introduction

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

Prototype

public final void ensureDebugId(String id) 

Source Link

Document

Ensure that the main Element for this UIObject has an ID property set, which allows it to integrate with third-party libraries and test tools.

Usage

From source file:org.kuali.student.common.ui.client.widgets.field.layout.element.FieldElement.java

License:Educational Community License

private void setDebugId(final Widget widget) {
    widget.ensureDebugId(DebugIdUtils.createWebDriverSafeDebugId(layout.getElement().getId()));
}

From source file:org.kuali.student.common.ui.client.widgets.search.KSPicker.java

License:Educational Community License

@Override
protected void onEnsureDebugId(String baseID) {
    super.onEnsureDebugId(baseID);
    Widget basicInputWidget = getInputWidget();
    if (basicInputWidget != null) {
        basicInputWidget.ensureDebugId(baseID + "-KSPicker-widget");
    }// w  w w . j  av  a2s. co  m
    advSearchLink.ensureDebugId(baseID + "-Advanced-Search-anchor");
}