Package sc.bind
Annotation Type Bindable
-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) public @interface Bindable
Use this annotation to mark properties as "bindable" - i.e. sending change events so they can be used as a source variable in a data binding expression using StrataCode's data binding libraries and the :=, =: and :=: operators. By default, the generated code includes a Bind.sendEvent to notify listeners when this property is used in a binding expression. For fields, getX and setX methods are generated using customizable templates for defining a property. If there already exists a setX method, a different template is used which by default renames the existing method calls it from the generated setX method. You can override either template to customize how events are sent. For example, the getX method could be modified to recompute the value for lazy evaluation. You can set @Bindable at the class level to make all properties bindable by default or on a field, getX or setX method.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
crossScope
Set to true for those bindings where the changeEvents might come from some other thread operating in another context.int
delay
Set to 0 does the same thing as doLater=true.boolean
doLater
Set to true to run this binding in a doLaterboolean
history
Set to true to enable recording of the history of values.boolean
immediate
Set to true to force immediate mode (default depends on BindingContext)boolean
inactive
Set this to true to initially disable the binding.boolean
manual
Set to true for properties that do their own 'sendEvent' calls, or to just eliminate warnings about unbinding properties when another means is used to refresh the bindingboolean
origin
For trace or history include the origin - the stack trace and bindings leading up to this change.int
priority
For doLater=true, the priority to pass to the invokeLater call - 0 is the default that runs before refreshboolean
queued
Set to true to force queued mode (default depends on BindingContext)boolean
sameValueCheck
Should this binding not send a change event when setX is called with the same value.boolean
skipNull
Set to true to eliminate a null value being passed to a method as part of the bindingboolean
trace
Set to enable selective tracing - each time the binding is initialized, set, retrieved, destroyedboolean
verbose
Set to enable verbose events on this binding - i.e.
-