org.autoplot.dom.BindingSupport

It is apparent that the overhead of BeansBinding is so great that a lightweight binding engine would dramatically improve performance. This encapsulates.


toStringConverter

converter for objects which have a toString/parse pair. This works for:

The convertForward method captures the class of the object.


bind

bind( org.autoplot.dom.DomNode src, String srcProp, Object dst, String dstProp, Converter c ) → void

bind the two object properties together using a lightweight binding (introspection and property change listener, rather than beans binding.

Parameters

src - a DomNode
srcProp - name of the property, which may not refer to a path (a.b.c)
dst - an Object
dstProp - name of the property, which may not refer to a path (a.b.c)
c - bean converter for converting the property.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


capitalize

capitalize( String name ) → String

Parameters

name - a String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isBound

isBound( Object node, String property ) → boolean

return true if the object is bound to something. Note this is beyond the vap bindings, and includes the bindings used to implement features like TimeSeriesBrowse.

Parameters

node - the dom node.
property - the property name.

Returns:

true if a binding is found.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


printStatus

printStatus( ) → void

print the status of all the bindings.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


toString

toString( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


totalBindings

totalBindings( ) → int

return the total number of bindings implemented in this facility. This was introduced to aid in debugging, when trying to identify memory leaks. https://sourceforge.net/p/autoplot/bugs/1362/

Returns:

the total number of bindings implemented in this facility.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


unbind

unbind( org.autoplot.dom.DomNode master ) → void

Parameters

master - a DomNode

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]

unbind( org.autoplot.dom.DomNode master, String property, Object dst, String dstProp ) → void