Exemplo n.º 1
0
  private Element findAppNameElement(Element parent) {
    for (int i = 0; i < parent.getChildCount(); i++) {
      Node childNode = parent.getChild(i);

      if (Element.is(childNode)) {
        Element child = Element.as(childNode);
        if (child.getAttribute("name").equalsIgnoreCase(appearance.download())) { // $NON-NLS-1$
          return child;
        }
      }
    }
    return null;
  }
Exemplo n.º 2
0
 @Override
 public void render(Cell.Context context, MetadataTemplateInfo value, SafeHtmlBuilder sb) {
   appearance.render(sb, value.getId());
 }