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.

Bug 139866 - Disable OK button in Date Filed custom property editor if Date value invalid
Summary: Disable OK button in Date Filed custom property editor if Date value invalid
Status: REOPENED
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-14 12:47 UTC by Ivan Sidorkin
Modified: 2008-07-21 17:30 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2008-07-14 12:47:16 UTC
Product Version: NetBeans IDE Dev (Build 200807100006)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)


- open Date Filed custom property editor
- enter invalid date

OK button enabled

It should be disabled until valid date entered
Comment 1 Karol Harezlak 2008-07-15 13:58:31 UTC
Unfortunately it is not possible because of architecture of the Custom Property Editors. We cant control OK/RESET TO
DEFAULT/CANCEL UI components.
Comment 2 Ivan Sidorkin 2008-07-15 14:54:14 UTC
could you please explain what exactly you cant do.
You can disable OK button.
Comment 3 Karol Harezlak 2008-07-15 15:01:14 UTC
There is not public API to disable OK button, author of the Custom Component Property is only in charge of the JPanel
inside of the Custom Property Editor window. There is no public object references to the OK/RESET TO DEFAULT/CANCEL UI
components so that is why it can be done.
Comment 4 Ivan Sidorkin 2008-07-15 15:10:32 UTC
but at least GUI Builder and SOA developers can do it, why you can't?
Comment 5 Karol Harezlak 2008-07-15 15:19:31 UTC
Ok, could you point me to the particular Custom Component Property Editor? Maybe there is some API which I'm not aware of.
Comment 6 Ivan Sidorkin 2008-07-15 15:24:02 UTC
bounds property editor for JFrame
if you type letters in one of 4 fields OK button become disabled
Comment 7 Karol Harezlak 2008-07-15 15:53:50 UTC
Yes you are right, it looks like there is a possibility to control OK button through ExPropertyEditor.PROP_VALUE_VALID
and change property listeners. I'll try to somehow combine this API with our current Property Editor Mobility API. Not
sure how difficult it's going to be to implement it thats why I'm not sure if we'll have this feature in 6.5. Thanks for
pointing this out.