本文整理了Java中org.openide.nodes.FilterNode.overridesGetDisplayName()
方法的一些代码示例,展示了FilterNode.overridesGetDisplayName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FilterNode.overridesGetDisplayName()
方法的具体详情如下:
包路径:org.openide.nodes.FilterNode
类名称:FilterNode
方法名:overridesGetDisplayName
暂无
代码示例来源:origin: org.netbeans.api/org-openide-nodes
/** Get a display name containing HTML markup. <strong><b>Note:</b> If you subclass
* FilterNode and override <code>getDisplayName()</code>, this method will
* always return null unless you override it as well (assuming that if you're
* changing the display name, you don't want an HTML display name constructed
* from the original node's display name to be what shows up in views of
* this node).</strong> If <code>getDisplayName()</code> is not overridden,
* this method will return whatever the original node returns from this
* method.
* <p>
* Note that if you do override <code>getDisplayName</code>, you should also override
* this method to return null.
*
*
*
* @see org.openide.nodes.Node#getHtmlDisplayName
* @return An HTML display name, if available, or null if no display name
* is available */
@Override
public String getHtmlDisplayName() {
if (overridesGetDisplayName()) {
return null;
} else {
return delegating(DELEGATE_GET_DISPLAY_NAME) ? original.getHtmlDisplayName() : super.getHtmlDisplayName();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Get a display name containing HTML markup. <strong><b>Note:</b> If you subclass
* FilterNode and override <code>getDisplayName()</code>, this method will
* always return null unless you override it as well (assuming that if you're
* changing the display name, you don't want an HTML display name constructed
* from the original node's display name to be what shows up in views of
* this node).</strong> If <code>getDisplayName()</code> is not overridden,
* this method will return whatever the original node returns from this
* method.
* <p>
* Note that if you do override <code>getDisplayName</code>, you should also override
* this method to return null.
*
*
*
* @see org.openide.nodes.Node#getHtmlDisplayName
* @return An HTML display name, if available, or null if no display name
* is available */
public String getHtmlDisplayName() {
if (overridesGetDisplayName()) {
return null;
} else {
return delegating (DELEGATE_GET_DISPLAY_NAME) ?
original.getHtmlDisplayName() : super.getHtmlDisplayName();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Get a display name containing HTML markup. <strong><b>Note:</b> If you subclass
* FilterNode and override <code>getDisplayName()</code>, this method will
* always return null unless you override it as well (assuming that if you're
* changing the display name, you don't want an HTML display name constructed
* from the original node's display name to be what shows up in views of
* this node).</strong> If <code>getDisplayName()</code> is not overridden,
* this method will return whatever the original node returns from this
* method.
* <p>
* Note that if you do override <code>getDisplayName</code>, you should also override
* this method to return null.
*
*
*
* @see org.openide.nodes.Node#getHtmlDisplayName
* @return An HTML display name, if available, or null if no display name
* is available */
public String getHtmlDisplayName() {
if (overridesGetDisplayName()) {
return null;
} else {
return delegating (DELEGATE_GET_DISPLAY_NAME) ?
original.getHtmlDisplayName() : super.getHtmlDisplayName();
}
}
内容来源于网络,如有侵权,请联系作者删除!