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: | showing property value when textfield disabled | ||
---|---|---|---|
Product: | platform | Reporter: | Jan Benway <benway> |
Component: | Window System | Assignee: | David Strupl <dstrupl> |
Status: | CLOSED FIXED | ||
Severity: | enhancement | CC: | issues, raccah |
Priority: | P4 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Jan Benway
2000-12-20 23:26:26 UTC
This would be an API change--move further away from JavaBeans specification. Note that the Font editor implements paintValue to specially display its value, so getAsText -> null. However it is not reasonable for most propeds to do this as for GUI consistency it requires knowledge of how regular textual value painting appears (font, colors, positioning, ...) and is cumbersome. Do I get it right that what you request is to expose the code that paints the string and make your property editors in place paintable and call this exposed code? Maybe we could put such a code into the util package or somewhere. Jesse? It sounds like an ugly solution to me... the basic request should have been solved by JavaBeans API but was not, i.e. getAsText but not setAsText in a proped. Maybe we could have a proped hint "PROP_SET_AS_TEXT_DOES_NOTHING" ...? Jesse's comments are correct. We don't want the painting code exposed, we just want a way to specify to the property editor that this is the desired behavior. I discussed this with Jesse back in June and the shortcoming of the JavaBeans spec. It was decided that the IDE's property editing could provide this as an enhancement. Ok, I will add the special proped hint as Jesse suggests. You can now pass custom property with name "canEditAsText" in the beaninfo, for example like this: properties[PROPERTY_justString].setValue("canEditAsText", Boolean.FALSE); More details from where you can pass this here http://www.netbeans.org/www-nbdev/msg03079.html The value must be Boolean. Hope this helps. Marking this bug as fixed. If there are any problems with this, please reopen or file a new bug report. Thanks. Resolved for 3.4.x or earlier, no new info since then -> verified Resolved for 3.4.x or earlier, no new info since then -> closing. |