|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Binder
The Binder that do the data binding things.
| Method Summary | |
|---|---|
void |
addCommandBinding(Component comp,
java.lang.String evtnm,
java.lang.String commandExpr,
java.util.Map<java.lang.String,java.lang.Object> commandArgs)
Add a new command bindins. |
void |
addFormBindings(Component comp,
java.lang.String id,
java.lang.String initExpr,
java.lang.String[] loadExprs,
java.lang.String[] saveExprs,
java.lang.String validatorExpr,
java.util.Map<java.lang.String,java.lang.Object> bindingArgs,
java.util.Map<java.lang.String,java.lang.Object> validatorArgs)
Add new form Bindings. |
void |
addPropertyBinding(Component comp,
java.lang.String attr,
java.lang.String initExpr,
java.lang.String[] loadExprs,
java.lang.String[] saveExprs,
java.lang.String converterExpr,
java.lang.String validatorExpr,
java.util.Map<java.lang.String,java.lang.Object> bindingArgs,
java.util.Map<java.lang.String,java.lang.Object> converterArgs,
java.util.Map<java.lang.String,java.lang.Object> validatorArgs)
Add new property Bindings. |
Converter |
getConverter(java.lang.String name)
Returns the _converter of the given _converter name. |
BindEvaluatorX |
getEvaluatorX()
Returns the BindEvaluatorX used by this Binder. |
Tracker |
getTracker()
Returns associated dependency tracker of this binder. |
Validator |
getValidator(java.lang.String name)
Returns the _validator of the given _validator name. |
java.lang.Object |
getViewModel()
Returns associated ViewModel of this binder. |
void |
notifyChange(java.lang.Object bean,
java.lang.String property)
Notify change of the property. |
void |
postCommand(java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> args)
post command this binder, binder will queue the command, and fired later. |
void |
removeBindings(Component comp)
Remove all managed bindings that associated with the specified component. |
void |
removeBindings(Component comp,
java.lang.String key)
Remove all managed Binding that associated with the specified component and attribute name, event name, or form id. |
void |
sendCommand(java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> args)
send command fired to this binder and process the command immediately |
void |
setPhaseListener(PhaseListener listener)
Sets the associated phase listener to intervene the binding life cycle. |
void |
setViewModel(java.lang.Object viewModel)
Sets associated ViewModel of this binder. |
| Method Detail |
|---|
BindEvaluatorX getEvaluatorX()
BindEvaluatorX used by this Binder.
void addCommandBinding(Component comp,
java.lang.String evtnm,
java.lang.String commandExpr,
java.util.Map<java.lang.String,java.lang.Object> commandArgs)
comp - the associated componentevtnm - the associated component event namecommandExpr - the command expressioncommandArgs - other key-value pairs pairs for command
void addFormBindings(Component comp,
java.lang.String id,
java.lang.String initExpr,
java.lang.String[] loadExprs,
java.lang.String[] saveExprs,
java.lang.String validatorExpr,
java.util.Map<java.lang.String,java.lang.Object> bindingArgs,
java.util.Map<java.lang.String,java.lang.Object> validatorArgs)
comp - the associated component, must not nullid - the form id, must not nullinitExpr - init expressions ; null to ignore it ; the return value of initExpr must be a Form instanceloadExprs - load expressionssaveExprs - save expressionsvalidatorExpr - the provided validator expression; null to ignore itbindingArgs - args key-value pairs for binding.validatorArgs - args key-value pairs for validator
void addPropertyBinding(Component comp,
java.lang.String attr,
java.lang.String initExpr,
java.lang.String[] loadExprs,
java.lang.String[] saveExprs,
java.lang.String converterExpr,
java.lang.String validatorExpr,
java.util.Map<java.lang.String,java.lang.Object> bindingArgs,
java.util.Map<java.lang.String,java.lang.Object> converterArgs,
java.util.Map<java.lang.String,java.lang.Object> validatorArgs)
comp - the associated component, must not nullattr - the associated attribute of the component; ex label, styleinitExpr - init expressions ; null to ignore itloadExprs - load expressionssaveExprs - save expressionsconverterExpr - the provided converter expression; null to ignore it.validatorExpr - the provided validator expression; null to ignore it.bindingArgs - args key-value pairs for binding.converterArgs - args key-value pairs for convertervalidatorArgs - args key-value pairs for validatorvoid removeBindings(Component comp)
comp -
void removeBindings(Component comp,
java.lang.String key)
comp - the associated componentkey - the associated attribute name, event name, or form idConverter getConverter(java.lang.String name)
name - _converter name
Validator getValidator(java.lang.String name)
name - _validator name
void notifyChange(java.lang.Object bean,
java.lang.String property)
bean - the backing bean object.property - the property of the bean that change the value
void sendCommand(java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> args)
command - command nameargs - , arguments when notifing this command, it will be passed as a arguments of execution method of vm
void postCommand(java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> args)
command - command nameargs - , arguments when notifing this command, it will be passed as a arguments of execution method of vmjava.lang.Object getViewModel()
void setViewModel(java.lang.Object viewModel)
viewModel - the associated view model of this binder.void setPhaseListener(PhaseListener listener)
listener - the associated phase listener.Tracker getTracker()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||