Example usage for com.google.gwt.user.client.ui Anchor getHTML

List of usage examples for com.google.gwt.user.client.ui Anchor getHTML

Introduction

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

Prototype

public String getHTML() 

Source Link

Usage

From source file:org.opennms.features.poller.remote.gwt.client.TagPanel.java

License:Open Source License

/**
 * <p>selectTag</p>//w  w  w. j a va 2s.  c o m
 *
 * @param tag a {@link java.lang.String} object.
 */
public void selectTag(String tag) {
    for (Widget widget : tagPanel) {
        if (widget instanceof Anchor) {
            Anchor anchor = (Anchor) widget;
            if (tag != null && tag.replaceAll(" ", "&nbsp;").equals(anchor.getHTML())) {
                anchor.addStyleName(tagStyles.selectedTag());
            } else {
                anchor.removeStyleName(tagStyles.selectedTag());
            }
        }
    }
}