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

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

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

Node.getShortDescription介绍

暂无

代码示例

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

  1. @Override
  2. public String getShortDescription() {
  3. if (delegating(DELEGATE_GET_SHORT_DESCRIPTION)) {
  4. return original.getShortDescription();
  5. } else {
  6. return super.getShortDescription();
  7. }
  8. }

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

  1. /** Returns cached short description.
  2. * @return short description of represented node
  3. */
  4. public String getShortDescription() {
  5. String desc = shortDescription;
  6. if( desc == UNKNOWN ) {
  7. shortDescription = desc = node.getShortDescription ();
  8. }
  9. return desc;
  10. }

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

  1. /** Returns cached short description.
  2. * @return short description of represented node
  3. */
  4. public String getShortDescription() {
  5. String desc = shortDescription;
  6. if( desc == UNKNOWN ) {
  7. shortDescription = desc = node.getShortDescription ();
  8. }
  9. return desc;
  10. }

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

  1. public String getShortDescription () {
  2. if (delegating (DELEGATE_GET_SHORT_DESCRIPTION)) {
  3. return original.getShortDescription ();
  4. } else {
  5. return super.getShortDescription ();
  6. }
  7. }

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

  1. public String getShortDescription () {
  2. if (delegating (DELEGATE_GET_SHORT_DESCRIPTION)) {
  3. return original.getShortDescription ();
  4. } else {
  5. return super.getShortDescription ();
  6. }
  7. }

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

  1. public String getTooltipText(Object o) {
  2. Node n = Visualizer.findNode(o);
  3. if (n == null) {
  4. throw new IllegalStateException("TreeNode must be VisualizerNode but was: " + o + " of class " + o.getClass().getName());
  5. }
  6. return n.getShortDescription();
  7. }

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

  1. /** Returns cached short description.
  2. * @return short description of represented node
  3. */
  4. public String getShortDescription() {
  5. String desc = shortDescription;
  6. if (desc == UNKNOWN) {
  7. shortDescription = desc = node.getShortDescription();
  8. }
  9. String toolTip = ImageUtilities.getImageToolTip(ImageUtilities.icon2Image(icon != null ? icon : getIcon(false, false)));
  10. if (toolTip.length() > 0) {
  11. StringBuilder str = new StringBuilder(128);
  12. str.append("<html>").append(desc).append("<br>").append(toolTip).append("</html>");
  13. desc = str.toString();
  14. }
  15. return desc;
  16. }

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

  1. public void run() {
  2. //the following must run in EDT to avoid deadlocks, see #91371
  3. if (isDescriptionVisible() &&
  4. (Node.PROP_DISPLAY_NAME.equals(nm) || Node.PROP_SHORT_DESCRIPTION.equals(nm))) {
  5. //XXX SHOULD NOT BE FIRED TO NODELISTENERS
  6. Node n = (Node) evt.getSource();
  7. if (currNode == n) {
  8. String description = (String) n.getValue("nodeDescription"); //NOI18N
  9. psheet.setDescription(n.getDisplayName(), (description == null) ? n.getShortDescription() : description);
  10. table.setBeanName(n.getDisplayName());
  11. }
  12. }
  13. }
  14. };

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-inspect

  1. mediaLabel.setEnabled(isSelected);
  2. String toolTip = node.getShortDescription();
  3. renderer.setToolTipText(toolTip);

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

  1. String desc = (String) n.getValue("nodeDescription"); //NOI18N
  2. if (desc == null) {
  3. desc = n.getShortDescription();

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

  1. desc = n.getShortDescription();

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

  1. String desc = (String) n.getValue("nodeDescription"); //NOI18N
  2. if (desc == null) {
  3. desc = n.getShortDescription();

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

  1. psheet.setDescription(node.getDisplayName(), (description == null) ? node.getShortDescription() : description);

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

  1. String description = (String) node.getValue("nodeDescription"); //NOI18N
  2. psheet.setDescription(node.getDisplayName(), description == null ? node.getShortDescription() : description);

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

  1. String description = (String) node.getValue("nodeDescription"); //NOI18N
  2. psheet.setDescription(node.getDisplayName(), description == null ? node.getShortDescription() : description);

相关文章