JXSearchPanel references PatternModel that couldn't be localized

View: New views
3 Messages — Rating Filter:   Alert me  

JXSearchPanel references PatternModel that couldn't be localized

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

In my code I use the component JXSearchPanel which uses the class PatternModel. But this last class references constants like "MATCH_RULE_CONTAINS" that couldn't be localized easily.

Is it possible to make it localizable ?

Thanks in advance.

Regards
[Message sent by forum member 'agathed' (agathed)]

http://forums.java.net/jive/thread.jspa?messageID=315438

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXSearchPanel references PatternModel that couldn't be localized

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have overrided the JXSearchPanel to change the comboBox Model and to have localized String displayed as the pattern name, but it is not clean at all.

Is there any plan to provide a localized version of the Search panel and have the PatternModel supporting different locale ?
[Message sent by forum member 'agathed' (a.degoy@...)]

http://forums.java.net/jive/thread.jspa?messageID=367251

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXSearchPanel references PatternModel that couldn't be localized

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I have overrided the JXSearchPanel to change the
> comboBox Model and to have localized String displayed
> as the pattern name, but it is not clean at all.
>
> Is there any plan to provide a localized version of
> the Search panel and have the PatternModel supporting
> different locale ?

you saw the code comment in the panel's bind method:

[code]
        // PENDING: map rules to localized strings
[/code]

so, yeah, sure, should be done (do we already have an issue? if not, please open a ticket in the swingx issue tracker) - contributions welcome :-)

CU
Jeanette
[Message sent by forum member 'kleopatra' (fastegal@...)]

http://forums.java.net/jive/thread.jspa?messageID=367258

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...