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

x33g5p2x  于2022-01-24 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(163)

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

Node.findDelegatingLookup介绍

[英]Finds delegating lookup that was previously registered
[中]查找以前注册的委派查找

代码示例

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

  1. /** Fires a change event for {@link #PROP_COOKIE}.
  2. * The old and new values are set to null.
  3. */
  4. protected final void fireCookieChange() {
  5. Lookup l = findDelegatingLookup();
  6. if (l instanceof NodeLookup) {
  7. ((NodeLookup) l).updateLookupAsCookiesAreChanged(null);
  8. }
  9. fireOwnPropertyChange(PROP_COOKIE, null, null);
  10. }

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

  1. /** Obtains a Lookup representing additional content of this Node.
  2. * If the lookup was provided in a constructor, it is returned here,
  3. * if not, a lookup based on the content of <link>getCookie</link>
  4. * method is provided.
  5. *
  6. * @return lookup for this node
  7. * @since 3.11
  8. */
  9. public final Lookup getLookup() {
  10. synchronized (listeners) {
  11. Lookup l = internalLookup(true);
  12. if (l != null) {
  13. return l;
  14. }
  15. l = findDelegatingLookup();
  16. if (l != null) {
  17. return l;
  18. }
  19. // create new lookup and use it
  20. NodeLookup nl = new NodeLookup(this);
  21. registerDelegatingLookup(nl);
  22. return nl;
  23. }
  24. }

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

  1. /** Fires a change event for {@link #PROP_COOKIE}.
  2. * The old and new values are set to null.
  3. */
  4. protected final void fireCookieChange () {
  5. Lookup l = findDelegatingLookup ();
  6. if (l instanceof NodeLookup) {
  7. ((NodeLookup)l).updateLookupAsCookiesAreChanged (null);
  8. }
  9. fireOwnPropertyChange (PROP_COOKIE, null, null);
  10. }

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

  1. /** Fires a change event for {@link #PROP_COOKIE}.
  2. * The old and new values are set to null.
  3. */
  4. protected final void fireCookieChange () {
  5. Lookup l = findDelegatingLookup ();
  6. if (l instanceof NodeLookup) {
  7. ((NodeLookup)l).updateLookupAsCookiesAreChanged (null);
  8. }
  9. fireOwnPropertyChange (PROP_COOKIE, null, null);
  10. }

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

  1. /** Obtains a Lookup represeting additional content of this Node.
  2. * If the lookup was provided in a constructor, it is returned here,
  3. * if not, a lookup based on the content of <link>getCookie</link>
  4. * method is provided.
  5. *
  6. * @return lookup for this node
  7. * @since 3.11
  8. */
  9. public final Lookup getLookup () {
  10. synchronized (listeners) {
  11. Lookup l = internalLookup (true);
  12. if (l != null) {
  13. return l;
  14. }
  15. l = findDelegatingLookup ();
  16. if (l != null) {
  17. return l;
  18. }
  19. // create new lookup and use it
  20. NodeLookup nl = new NodeLookup (this);
  21. registerDelegatingLookup (nl);
  22. return nl;
  23. }
  24. }

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

  1. /** Obtains a Lookup represeting additional content of this Node.
  2. * If the lookup was provided in a constructor, it is returned here,
  3. * if not, a lookup based on the content of <link>getCookie</link>
  4. * method is provided.
  5. *
  6. * @return lookup for this node
  7. * @since 3.11
  8. */
  9. public final Lookup getLookup () {
  10. synchronized (listeners) {
  11. Lookup l = internalLookup (true);
  12. if (l != null) {
  13. return l;
  14. }
  15. l = findDelegatingLookup ();
  16. if (l != null) {
  17. return l;
  18. }
  19. // create new lookup and use it
  20. NodeLookup nl = new NodeLookup (this);
  21. registerDelegatingLookup (nl);
  22. return nl;
  23. }
  24. }

相关文章