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: | Decoration support | ||
---|---|---|---|
Product: | platform | Reporter: | Sergey Petrov <sj-nb> |
Component: | Graph | Assignee: | issues@platform <issues> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Sergey Petrov
2007-06-13 17:31:57 UTC
The basic problem of this "decorations" is its definition. What exactly these decorations should do and how they are assigned/invoked to procced their changes. In general, it is hard to implement a generic decoration since they has to be aware of every Widget in the library and change them accordingly. For now there is a Widget.notifyStateChanged method. This method is notifying on each object-related widget when a state of the object is changed. It is totally up to the developer of such Widget to install/update a particular Look&Feel. Regarding the border-recalculation - you can wrap your Widget (with resizing) into a top-level Widget that would have a Vertical Flow Layout. Then the top-level widget will always start from [0,0] point and the border insets of original widget with eliminated. Yes, I'll solve my cases in current lib, it was just a question if it possible/have sense to add library support for such feature. The whole problem is the definition of the feature. If you have a patch for the library, feel free to attach it to the issue. I am leaving the issue opened. |