jaxx.runtime.binding
Class SimpleJAXXObjectBinding

java.lang.Object
  extended by jaxx.runtime.binding.DefaultJAXXBinding
      extended by jaxx.runtime.binding.SimpleJAXXObjectBinding
All Implemented Interfaces:
PropertyChangeListener, EventListener, JAXXBinding

public abstract class SimpleJAXXObjectBinding
extends DefaultJAXXBinding

Created: 5 déc. 2009

Version:
$Revision: 2013 $

Mise a jour: $Date: 2010-06-30 18:48:34 +0200 (mer., 30 juin 2010) $ par : $Author: tchemit $

Author:
tchemit

Field Summary
protected  String[] propertyNames
           
 
Fields inherited from class jaxx.runtime.binding.DefaultJAXXBinding
defaultBinding, source
 
Constructor Summary
SimpleJAXXObjectBinding(JAXXObject source, String id, boolean defaultBinding, String... propertyNames)
          Creates a new Data binding which will run the given data binding when it receives a PropertyChangeEvent.
 
Method Summary
 void applyDataBinding()
          Apply the binding without processing it (say just install listeners).
 boolean canApply()
           
 String[] getPropertyNames()
           
 void removeDataBinding()
          Remove the binding.
 
Methods inherited from class jaxx.runtime.binding.DefaultJAXXBinding
getId, getSource, isDefaultBinding, propertyChange, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jaxx.runtime.JAXXBinding
processDataBinding
 

Field Detail

propertyNames

protected final String[] propertyNames
Constructor Detail

SimpleJAXXObjectBinding

public SimpleJAXXObjectBinding(JAXXObject source,
                               String id,
                               boolean defaultBinding,
                               String... propertyNames)
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).
propertyNames - the name of properties to listen on source
Method Detail

canApply

public boolean canApply()

getPropertyNames

public String[] getPropertyNames()

applyDataBinding

public void applyDataBinding()
Description copied from interface: JAXXBinding
Apply the binding without processing it (say just install listeners).


removeDataBinding

public void removeDataBinding()
Description copied from interface: JAXXBinding
Remove the binding.



Copyright © 2008-2010 CodeLutin. All Rights Reserved.