jaxx.runtime
Interface JAXXObject

All Superinterfaces:
JAXXContext

public interface JAXXObject
extends JAXXContext

The JAXXObject interface is implemented by all classes produced by the JAXX compiler.


Method Summary
 void applyDataBinding(java.lang.String id)
           
 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.
 java.util.Map<java.lang.String,java.lang.Object> get$objectMap()
          Pretrieves the dictonary of knwon objects indexed by their ids.
 JAXXContext getDelegateContext()
           
 java.lang.Object getObjectById(java.lang.String id)
          Retrieves an object defined in an XML tag by its ID.
 void processDataBinding(java.lang.String dest)
          Processes a data binding by name.
 void removeDataBinding(java.lang.String id)
           
 
Methods inherited from interface jaxx.runtime.JAXXContext
getContextValue, getContextValue, getParentContainer, getParentContainer, removeContextValue, removeContextValue, setContextValue, setContextValue
 

Method Detail

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.

applyDataBinding

void applyDataBinding(java.lang.String id)

removeDataBinding

void removeDataBinding(java.lang.String id)

getDelegateContext

JAXXContext getDelegateContext()

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

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


Copyright © 2008-2009 CodeLutin. All Rights Reserved.