This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Remove useless expand handles when no children | ||
---|---|---|---|
Product: | contrib | Reporter: | _ hkrug <hkrug> |
Component: | Looks | Assignee: | Petr Hrebejk <phrebejk> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jglick |
Priority: | P1 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 23720 | ||
Bug Blocks: |
Description
_ hkrug
2002-10-23 16:17:24 UTC
My proposal is: Add a method "boolean Look.knownToHaveNoChilds(Look.NodeSubstitute)" (returns "false" in DefaultLook). The look node calls this method. Whenever the method returns "true", the handle is not drawn. There is already isLeaf(Look.NodeSubstitute); it works fine for most cases. The only case where you need a special API is when it can be quickly determined that a parent currently has no children, yet it is possible that it may later get children. This is true e.g. of displayed XML files: if you have a DOM tree already and are showing a node for some element with no content, you want to suppress the expand handle, yet permit it to be added later if a subelement is added. Whay applies to XML applies even more to the MDR explorer and similar apps. Here the handles on empty nodes are *very* announing ! Implemented in current looks version - openide/looks |