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

x33g5p2x  于2022-01-15 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(79)

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

AbstractNode.fireIconChange介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-nodes

/** Change the icon. */
private final void setIconBaseWithExtension(String base, String extension) {
  if (base.equals(iconBase) && extension.equals(iconExtension)) {
    return;
  }
  this.iconBase = base;
  this.iconExtension = extension;
  fireIconChange();
  fireOpenedIconChange();
}

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

/** Change the icon.
* One need only specify the base resource name;
* the real name of the icon is obtained by the applying icon message
* formats.
*
* <p>For example, for the base <code>resource/MyIcon</code>, the
* following images may be used according to the icon state and
* {@link java.beans.BeanInfo#getIcon presentation type}:
*
* <ul><li><code>resource/MyIcon.gif</code><li><code>resource/MyIconOpen.gif</code>
* <li><code>resource/MyIcon32.gif</code><li><code>resource/MyIconOpen32.gif</code></ul>
*
* <P>
* This method may be used to dynamically switch between different sets
* of icons for different configurations. If the set is changed,
* an icon property change event is fired.
*
* @param base base resouce name (no initial slash)
*/
public void setIconBase (String base) {
  this.iconBase = base;
  fireIconChange ();
  fireOpenedIconChange ();
}

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

/** Change the icon.
* One need only specify the base resource name;
* the real name of the icon is obtained by the applying icon message
* formats.
*
* <p>For example, for the base <code>resource/MyIcon</code>, the
* following images may be used according to the icon state and
* {@link java.beans.BeanInfo#getIcon presentation type}:
*
* <ul><li><code>resource/MyIcon.gif</code><li><code>resource/MyIconOpen.gif</code>
* <li><code>resource/MyIcon32.gif</code><li><code>resource/MyIconOpen32.gif</code></ul>
*
* <P>
* This method may be used to dynamically switch between different sets
* of icons for different configurations. If the set is changed,
* an icon property change event is fired.
*
* @param base base resouce name (no initial slash)
*/
public void setIconBase (String base) {
  this.iconBase = base;
  fireIconChange ();
  fireOpenedIconChange ();
}

相关文章

微信公众号

最新文章

更多