Skip to main content

Adventure Demo variant ...

2 replies [Last post]
Anonymous

Hi folks,

just committed a variant of the Adventure demo to highlight some subtle
additions to the databinding during the last weeks

- there's a BindingHandler (extracted from JForm) which manages a
collection of Bindings that should be pulled/pushed jointly.

- BindingFactory has a new method createMetaBinding which creates and
binds the metaData of a field to a JLabel

- JXTable delegates column creation and configuration to a pluggable new
class ColumnFactory. The binding layer contains an enhanced metadata
aware subclass.

All still very raw but I think some advantages can be seen in the demo
;-) As always, feedback welcome.

Jeanette

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Thomas Bierhance

Hi Jeanette,

I'm not into the binding stuff, but to avoid another monologue... ;-)

> - BindingFactory has a new method createMetaBinding which creates and
> binds the metaData of a field to a JLabel

Could this be used to facilitate i18n? It would be cool to have a control that
lets the user change the current local and see the label's be updated accordingly.

Thomas

P.S. Is it me or the source code: the older version (AdventureDemo.java without
Ex) is not displaying any data on my machine?!

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

Kleopatra

Thomas Bierhance wrote:
> Hi Jeanette,
>
> I'm not into the binding stuff, but to avoid another monologue... ;-)
>

no danger - my weekend is starting right now!

>
>>- BindingFactory has a new method createMetaBinding which creates and
>>binds the metaData of a field to a JLabel
>
>
> Could this be used to facilitate i18n? It would be cool to have a control that
> lets the user change the current local and see the label's be updated accordingly.
>

yes, that's one of the possible uses. Another might be to enable/disable
the component and its label in synch. Note that the meta-binding handles
the colon (respecting component-orientation, JForm already uses this
ability in auto-layout mode)

> Thomas
>
> P.S. Is it me or the source code: the older version (AdventureDemo.java without
> Ex) is not displaying any data on my machine?!

no, not only you - some code is commented, probably because it has some
intermediate experimental api.

Have a nice weekend (in Berlin it's raining - booooo)
Jeanette

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