|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JAXXObject
The JAXXObject interface is implemented by all classes
produced by the JAXX compiler.
| Method Summary | ||
|---|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register a general PropertyChangeListener. |
|
void |
addPropertyChangeListener(String property,
PropertyChangeListener listener)
Register a PropertyChangeListener. |
|
void |
applyDataBinding(String id)
Apply the data bind by name and then process it. |
|
void |
firePropertyChange(String name,
Object oldValue,
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. |
|
Map<String,Object> |
get$objectMap()
Pretrieves the dictonary of knwon objects indexed by their ids. |
|
JAXXBinding[] |
getDataBindings()
|
|
JAXXContext |
getDelegateContext()
|
|
Object |
getObjectById(String id)
Retrieves an object defined in an XML tag by its ID. |
|
|
getParentContainer(Class<O> clazz)
Return parent's container corresponding to the Class clazz |
|
|
getParentContainer(Object top,
Class<O> clazz)
Return parent's container corresponding to the Class clazz |
|
void |
processDataBinding(String dest)
Processes a data binding by name. |
|
void |
processDataBinding(String dest,
boolean force)
Processes a data binding by name. |
|
void |
registerDataBinding(JAXXBinding binding)
Register a new binding in the jaxx object. |
|
void |
removeDataBinding(String id)
Remove a databinding by name. |
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Unregister a general PropertyChangeListener. |
|
void |
removePropertyChangeListener(String property,
PropertyChangeListener listener)
Unregister a PropertyChangeListener. |
|
| Methods inherited from interface jaxx.runtime.JAXXContext |
|---|
getContextValue, getContextValue, removeContextValue, removeContextValue, setContextValue, setContextValue |
| Method Detail |
|---|
Object getObjectById(String id)
id - the id of the component to retrieve
Map<String,Object> get$objectMap()
JAXXContext getDelegateContext()
JAXXContext attached to the objectJAXXBinding[] getDataBindings()
void registerDataBinding(JAXXBinding binding)
binding - the binding to addvoid applyDataBinding(String id)
id - the id of the databindingvoid processDataBinding(String dest)
<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().
dest - the name of the data binding to run
void processDataBinding(String dest,
boolean force)
<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().
dest - the name of the data binding to runforce - flag to force binding, even if already on runvoid removeDataBinding(String id)
id - the name of databinding to remove
void firePropertyChange(String name,
Object oldValue,
Object newValue)
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.
name - the name of the property which changedoldValue - the old value of the propertynewValue - the new value of the propertyvoid addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener.
listener - the listener to register
void addPropertyChangeListener(String property,
PropertyChangeListener listener)
PropertyChangeListener. for the given propertyName.
property - the property name to listenlistener - the listener to registervoid removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener.
listener - the listener to unregister
void removePropertyChangeListener(String property,
PropertyChangeListener listener)
PropertyChangeListener. for the given propertyName.
property - the property name to listenlistener - the listener to unregister<O extends Container> O getParentContainer(Class<O> clazz)
O - type of container to obtain from contextclazz - clazz desired
<O extends Container> O getParentContainer(Object top,
Class<O> clazz)
O - type of container to obtain from contexttop - the top containerclazz - desired
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||