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: | Custom editor button not displayed for property editors if getAsText=null, isPaintable=true, supportsCustomEditor=true | ||
---|---|---|---|
Product: | platform | Reporter: | Unknown <non_migrated_user> |
Component: | Explorer | Assignee: | _ tboudreau <tboudreau> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | A11Y, FOCUS |
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 29447 | ||
Bug Blocks: |
Description
Unknown
2003-03-10 21:57:12 UTC
[s1s5](030306), [jdk1.4.1](01) #1 - worksforme #2 - worksforme #3 - reproducible The problem is that the default inplace editor panics at getAsText returning null. I reproduced this, creating a property editor with the described characteristics. This will work with the property sheet rewrite (the custom editor button will always be visible and focusable. I should make a note here that in the case getAsText returns null, the new sheet should default that to opening the custom editor). Workaround 1: Return "" or something from getAsText - you can always ignore it in setAsText. Workaround 2: Supply a custom inplace editor via hinting so the property sheet has some valid editor to instantiate (this could just be JComponent that overrides paint () and delegates to the property editor's paint method, so the appearance is consistent and the code is in one place. Workaround 3: If there's something useful you could return from getTags() that would also solve the problem. Sorry, missed the 7 key in the blocks field. Moving to 4.0, will be fixed as Tim said, along with the rewrite. Joe, question for you - did suggested workarounds work for you? Is it enough for you now in 3.5 timeframe or is it a stopper? Property sheet rewrite integrated. Tested this with a custom node & property. It works correctly. 200312091900 |