Class DefaultJAXXBinding

    • Field Detail

      • source

        protected final JAXXObject source
        The source of the binding.
      • defaultBinding

        protected final boolean defaultBinding
        flag to know true : if the binding was init from a generated jaxx object, false otherwise.
      • reloadAfterFire

        protected final boolean reloadAfterFire
        Internal state to reapply the binding after each fires :this is sometimes necessary when binding is complex. For example with this binding
         ui.getModel().getProperty()
         
        We need to listen two things : first listen on ui the modification of model, then on model the property.
        Since:
        2.4.2
    • Constructor Detail

      • DefaultJAXXBinding

        public DefaultJAXXBinding​(JAXXObject source,
                                  String id,
                                  boolean defaultBinding)
        Creates a new Data binding which will run the given data binding when it receives a PropertyChangeEvent.
        Parameters:
        source - the JAXXObject source of the binding
        id - the name of the data binding to run
        defaultBinding - flag to knwon if binding is coming from a generated jaxx object (true).
      • DefaultJAXXBinding

        public DefaultJAXXBinding​(JAXXObject source,
                                  String id,
                                  boolean defaultBinding,
                                  boolean reloadAfterFire)
        Creates a new Data binding which will run the given data binding when it receives a PropertyChangeEvent.
        Parameters:
        source - the JAXXObject source of the binding
        id - the name of the data binding to run
        defaultBinding - flag to know if binding is coming from a generated jaxx object (true).
        reloadAfterFire - flag to know if the binding need to be reload after each fires