org.openide.nodes.AbstractNode.getHtmlDisplayName()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(21)

本文整理了Java中org.openide.nodes.AbstractNode.getHtmlDisplayName()方法的一些代码示例,展示了AbstractNode.getHtmlDisplayName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractNode.getHtmlDisplayName()方法的具体详情如下:
包路径:org.openide.nodes.AbstractNode
类名称:AbstractNode
方法名:getHtmlDisplayName

AbstractNode.getHtmlDisplayName介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui

@Override
  public String getHtmlDisplayName() {
//        if (Kenai.getDefault().getUrl().toString().equals(kenaiInstance.getUrl())) {
//            return "<b>" + getDisplayName() + "</b>"; // NOI18N
//        }
    return super.getHtmlDisplayName();
  }

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-callgraph

@Override
public String getHtmlDisplayName() {
  if (call != null) {
    return call.getHtmlDisplayName();
  }
  return super.getHtmlDisplayName();
}
@Override

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-java-project-ui

public @Override String getHtmlDisplayName() {
   try {
    String result = file.getFileSystem().getDecorator().annotateNameHtml (
      super.getDisplayName(), files);
    //Make sure the super string was really modified
    if (result != null && !super.getDisplayName().equals(result)) {
      return result;
    }
   } catch (FileStateInvalidException e) {
     Exceptions.printStackTrace(e);
   }
   return super.getHtmlDisplayName();
}

代码示例来源:origin: nl.cloudfarming.client/nbtaskfocus-core

@Override
public String getHtmlDisplayName() {
  String htmlName = null;
  if (null != task) {
    if (task.isActive()) {
      htmlName = "<b>" + task.getTaskName() + "</b>";
    } else {
      htmlName = task.getTaskName();
    }
  } else {
    htmlName = super.getHtmlDisplayName();
  }
  return htmlName;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-maven-repository

@Override
public String getHtmlDisplayName() {
  if (node.getState() == DependencyNode.OMITTED_FOR_DUPLICATE) {
    return "<html><s>" + getDisplayName() + "</s></html>";
  }
  if (node.getState() == DependencyNode.OMITTED_FOR_CONFLICT) {
    return "<html><font color=\"!nb.errorForeground\"><s>" + getDisplayName() + "</s></font></html>";
  }
  return super.getHtmlDisplayName(); //To change body of generated methods, choose Tools | Templates.
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-xml-xam-ui

public String getHtmlDisplayName() {
  String name = super.getHtmlDisplayName();
  if (isValid()) {
    if (decorator != null) {
      if (name == null) {
        name = getDisplayName();
      }
      name = decorator.getHtmlDisplayName(name, this);
    }
  } else {
    return "<s>" + name == null ? getDisplayName() : name + "</s>";
  }
  return name;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide-loaders

/** Get a display name formatted using the limited HTML subset supported
* by <code>HtmlRenderer</code>.  If the underlying 
* <code>FileSystem.Status</code> is an instance of HmlStatus,
* this method will return non-null if status information is added.
*
* @return a string containing compliant HTML markup or null
* @see org.openide.awt.HtmlRenderer
* @see org.openide.nodes.Node#getHtmlDisplayName
* @since 4.13 
*/
public String getHtmlDisplayName() {
  try {
    FileSystem.Status stat = 
      obj.getPrimaryFile().getFileSystem().getStatus();
    if (stat instanceof HtmlStatus) {
      HtmlStatus hstat = (HtmlStatus) stat;
            String result = hstat.annotateNameHtml (
        super.getDisplayName(), new LazyFilesSet());
            //Make sure the super string was really modified
      if (!super.getDisplayName().equals(result)) {
        return result;
      }
    }
  } catch (FileStateInvalidException e) {
    //do nothing and fall through
  }
  return super.getHtmlDisplayName();
}

相关文章

最新文章

更多