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: | Inconsistent display name for components | ||
---|---|---|---|
Product: | obsolete | Reporter: | bugbridge <bugbridge> |
Component: | visualweb | Assignee: | _ sandipchitale <sandipchitale> |
Status: | NEW --- | ||
Severity: | blocker | CC: | sherryzhou |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
bugbridge
2007-01-31 21:07:40 UTC
Sherry, Does this bug still apply ? Thanks Yes, this is still valid in build 200707130000. Assigning this to insync. This is because of the way the display name of a component is computed at designtime. For components which does not have a "text" property, the display name is simply the component id. But if the component name has text property then the display name is "componentid:<text>". Not sure why this convention is used in insync. Insync tries to display the default property's value if it is non null. The default property in case of components like Checkbox is "value" property. It may be that the default property should be "label" property to get a effect similar to Hyperlink. Assigning back to components. Sandip, why I assigned this to insync is to remove the appending of such values (in this case default property's value) to the display name. I don't know who came with that idea, but it looks ugly at several places (example binding dialog etc). Default property value is used for proper binding in case of drag and drop (where user does not explicitly set the property for binding), so it can not be changed. If explicit display name is available from beaninfo, use only that value, else use the id as the display name. This is what I see in other IDE's. "text" is the default property for Static Text. Its value can be "</b> <font some text value" In the binding dialog it displays as statictext1:<b><font>some text value ... Marking this as an enhancement. This is how it has always worked. |