Author: jcouteau Date: 2010-05-10 18:06:33 +0200 (Mon, 10 May 2010) New Revision: 1888 Url: http://nuiton.org/repositories/revision/jaxx/1888 Log: Update databinding doc Modified: trunk/src/site/rst/dataBinding.rst Modified: trunk/src/site/rst/dataBinding.rst =================================================================== --- trunk/src/site/rst/dataBinding.rst 2010-05-10 10:00:42 UTC (rev 1887) +++ trunk/src/site/rst/dataBinding.rst 2010-05-10 16:06:33 UTC (rev 1888) @@ -65,6 +65,30 @@ propriétés attachées (les propriétés qui lancent des PropertyChangeEvent quand elles sont modifiées), même sur des classes qu'il n'a jamais vu auparavant. +Vous pouvez aussi complexifier la gestion de vos évènements en utilisant des +attributs de classe. JAXX détecte les changements que vous pouvez y apporter et +instrumente le code en conséquence. JAXX reconnait que l'on met à jour un +attribut et ajoute des PropertyChangeEvent synthétiques. L'impact sur les +performances est le plus souvent négligeable. -.. Trouver le site de l'ancien JAXX pour cette partie : The JAXX website lists -which properties can be tracked for each and every Swing component. \ No newline at end of file +Limitations +----------- + +Le data-binding parse le code Java cherchant des méthodes et attributs dont il +sait écouter les modifications. Si une méthode représente une propriété qui +lance un PropertyChangeEvent, JAXX le découvre via l'introspection. + + Limitations + +.. Data binding parses through Java code looking for methods and fields that it +.. knows how to listen for changes to. If a method represents a property which +.. fires PropertyChangeEvent (a bound property), JAXX discovers this via +.. introspection. For non-bound properties or other types of methods altogether, +.. the TagHandler for the tag must know how to deal with the method. The TagHandler +.. for JTextField, for instance, knows that getText() must be handled via a +.. DocumentListener on the Document. + +.. If a method is not 'known' as described above, JAXX has no idea how to listen to it or if it even makes sense to listen to. + +.. As field updates are handled by instrumenting the JAXX code, changing fields outside of JAXX (i.e. from ordinary Java code) bypasses JAXX's listeners and the changes will not be detected. +
participants (1)
-
jcouteau@users.nuiton.org