Package jaxx.runtime

Interface JAXXObject

All Superinterfaces:
JAXXContext, java.io.Serializable

public interface JAXXObject
extends JAXXContext, java.io.Serializable
The JAXXObject interface is implemented by all classes produced by the JAXX compiler.
  • Method Details

    • getObjectById

      java.lang.Object getObjectById​(java.lang.String id)
      Retrieves an object defined in an XML tag by its ID.
      Parameters:
      id - the id of the component to retrieve
      Returns:
      the object
    • get$objectMap

      java.util.Map<java.lang.String,​java.lang.Object> get$objectMap()
      Pretrieves the dictonary of knwon objects indexed by their ids.
      Returns:
      the dictonary of objects.
    • getDelegateContext

      JAXXContext getDelegateContext()
      Returns:
      the JAXXContext attached to the object
    • getDataBindings

      JAXXBinding[] getDataBindings()
      Returns:
      all the databinding registred on the jaxx object
    • registerDataBinding

      void registerDataBinding​(JAXXBinding binding)
      Register a new binding in the jaxx object.
      Parameters:
      binding - the binding to add
    • applyDataBinding

      void applyDataBinding​(java.lang.String id)
      Apply the data bind by name and then process it.
      Parameters:
      id - the id of the databinding
    • processDataBinding

      void processDataBinding​(java.lang.String dest)
      Processes a data binding by name. Data binding names are comprised of an object ID and a property name: for example, the data binding in the tag <JLabel id='label' text='{foo.getText()}'/> is named "label.text". Processing a data binding causes it to reevaluate its expression, in this case foo.getText().
      Parameters:
      dest - the name of the data binding to run
    • processDataBinding

      void processDataBinding​(java.lang.String dest, boolean force)
      Processes a data binding by name. Data binding names are comprised of an object ID and a property name: for example, the data binding in the tag <JLabel id='label' text='{foo.getText()}'/> is named "label.text". Processing a data binding causes it to reevaluate its expression, in this case foo.getText().
      Parameters:
      dest - the name of the data binding to run
      force - flag to force binding, even if already on run
    • removeDataBinding

      void removeDataBinding​(java.lang.String id)
      Remove a databinding by name.
      Parameters:
      id - the name of databinding to remove
    • getDataBinding

      JAXXBinding getDataBinding​(java.lang.String bindingId)
      Obtain a binding given his id.
      Parameters:
      bindingId - the id of the binding
      Returns:
      the binding, or null if not found.
      Since:
      2.4.2
      See Also:
      JAXXBinding
    • firePropertyChange

      void firePropertyChange​(java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
      All JAXXObject implements are capable of broadcasting PropertyChangeEvent, and furthermore (for technical reasons) must allow code in outside packages, specifically the JAXX runtime, to trigger these events.
      Parameters:
      name - the name of the property which changed
      oldValue - the old value of the property
      newValue - the new value of the property
    • addPropertyChangeListener

      void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
      Register a general PropertyChangeListener.
      Parameters:
      listener - the listener to register
    • addPropertyChangeListener

      void addPropertyChangeListener​(java.lang.String property, java.beans.PropertyChangeListener listener)
      Register a PropertyChangeListener. for the given propertyName.
      Parameters:
      property - the property name to listen
      listener - the listener to register
    • removePropertyChangeListener

      void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
      Unregister a general PropertyChangeListener.
      Parameters:
      listener - the listener to unregister
    • removePropertyChangeListener

      void removePropertyChangeListener​(java.lang.String property, java.beans.PropertyChangeListener listener)
      Unregister a PropertyChangeListener. for the given propertyName.
      Parameters:
      property - the property name to listen
      listener - the listener to unregister
    • getParentContainer

      <O extends java.awt.Container> O getParentContainer​(java.lang.Class<O> clazz)
      Return parent's container corresponding to the Class clazz
      Type Parameters:
      O - type of container to obtain from context
      Parameters:
      clazz - clazz desired
      Returns:
      parent's container
    • getParentContainer

      <O extends java.awt.Container> O getParentContainer​(java.lang.Object top, java.lang.Class<O> clazz)
      Return parent's container corresponding to the Class clazz
      Type Parameters:
      O - type of container to obtain from context
      Parameters:
      top - the top container
      clazz - desired
      Returns:
      parent's container