private void clearModelHandlers() { getAgent().clearModelHandlers(); }
private void clearModelHandlers() { getAgent().clearModelHandlers(); }
private void clearModelHandlers() { getAgent().clearModelHandlers(); }
@Override public PropertyChangeUnsubscribeHandle addPropertyChangeHandler(final PropertyChangeHandler<?> handler) { propertyChangeHandlerSupport.addPropertyChangeHandler(handler); final PropertyChangeUnsubscribeHandle agentUnsubHandle = getAgent().addPropertyChangeHandler(handler); return new OneTimeUnsubscribeHandle() { @Override public void doUnsubscribe() { agentUnsubHandle.unsubscribe(); } }; }
@Override public PropertyChangeUnsubscribeHandle addPropertyChangeHandler(final PropertyChangeHandler<?> handler) { propertyChangeHandlerSupport.addPropertyChangeHandler(handler); final PropertyChangeUnsubscribeHandle agentUnsubHandle = getAgent().addPropertyChangeHandler(handler); return new OneTimeUnsubscribeHandle() { @Override public void doUnsubscribe() { agentUnsubHandle.unsubscribe(); } }; }
@Override public <P> PropertyChangeUnsubscribeHandle addPropertyChangeHandler(final String property, final PropertyChangeHandler<P> handler) { propertyChangeHandlerSupport.addPropertyChangeHandler(property, handler); final PropertyChangeUnsubscribeHandle agentUnsubHandle = getAgent().addPropertyChangeHandler(property, handler); return new OneTimeUnsubscribeHandle() { @Override public void doUnsubscribe() { agentUnsubHandle.unsubscribe(); } }; }
@Override public <P> PropertyChangeUnsubscribeHandle addPropertyChangeHandler(final String property, final PropertyChangeHandler<P> handler) { propertyChangeHandlerSupport.addPropertyChangeHandler(property, handler); final PropertyChangeUnsubscribeHandle agentUnsubHandle = getAgent().addPropertyChangeHandler(property, handler); return new OneTimeUnsubscribeHandle() { @Override public void doUnsubscribe() { agentUnsubHandle.unsubscribe(); } }; }
@Override public PropertyChangeUnsubscribeHandle addPropertyChangeHandler(final PropertyChangeHandler<?> handler) { propertyChangeHandlerSupport.addPropertyChangeHandler(handler); final PropertyChangeUnsubscribeHandle agentUnsubHandle = getAgent().addPropertyChangeHandler(handler); return new OneTimeUnsubscribeHandle() { @Override public void doUnsubscribe() { agentUnsubHandle.unsubscribe(); } }; }
@Override public <P> PropertyChangeUnsubscribeHandle addPropertyChangeHandler(final String property, final PropertyChangeHandler<P> handler) { propertyChangeHandlerSupport.addPropertyChangeHandler(property, handler); final PropertyChangeUnsubscribeHandle agentUnsubHandle = getAgent().addPropertyChangeHandler(property, handler); return new OneTimeUnsubscribeHandle() { @Override public void doUnsubscribe() { agentUnsubHandle.unsubscribe(); } }; }
/** * Unbinds all widgets bound to the specified model property by previous calls * to {@link #bind(HasValue, Object, String)}. This method has no effect if * the specified property was never bound. * * @param property * The name of the property (or a property chain) to unbind, Must not * be null. * * @return the same {@link DataBinder} instance to support call chaining. * @throws InvalidPropertyExpressionException * If the provided property chain expression is invalid. */ public DataBinder<T> unbind(final String property) { for (final Binding binding : bindings.get(property)) { getAgent().unbind(binding); } bindings.removeAll(property); if (bindings.isEmpty()) { // Proxies without bindings will be removed from the cache to make sure // the garbage collector can do its job (see // BindableProxyFactory#removeCachedProxyForModel). We throw away the // reference to the proxy to force a new lookup in case this data binder // will be reused. unwrapProxy(); } return this; }
/** * Unbinds all widgets bound to the specified model property by previous calls * to {@link #bind(HasValue, Object, String)}. This method has no effect if * the specified property was never bound. * * @param property * The name of the property (or a property chain) to unbind, Must not * be null. * * @return the same {@link DataBinder} instance to support call chaining. * @throws InvalidPropertyExpressionException * If the provided property chain expression is invalid. */ public DataBinder<T> unbind(final String property) { for (final Binding binding : bindings.get(property)) { getAgent().unbind(binding); } bindings.removeAll(property); if (bindings.isEmpty()) { // Proxies without bindings will be removed from the cache to make sure // the garbage collector can do its job (see // BindableProxyFactory#removeCachedProxyForModel). We throw away the // reference to the proxy to force a new lookup in case this data binder // will be reused. unwrapProxy(); } return this; }
/** * Unbinds all widgets bound to the specified model property by previous calls * to {@link #bind(HasValue, Object, String)}. This method has no effect if * the specified property was never bound. * * @param property * The name of the property (or a property chain) to unbind, Must not * be null. * * @return the same {@link DataBinder} instance to support call chaining. * @throws InvalidPropertyExpressionException * If the provided property chain expression is invalid. */ public DataBinder<T> unbind(final String property) { for (final Binding binding : bindings.get(property)) { getAgent().unbind(binding); } bindings.removeAll(property); if (bindings.isEmpty()) { // Proxies without bindings will be removed from the cache to make sure // the garbage collector can do its job (see // BindableProxyFactory#removeCachedProxyForModel). We throw away the // reference to the proxy to force a new lookup in case this data binder // will be reused. unwrapProxy(); } return this; }
private DataBinder<T> unbind(final boolean clearBindings) { for (final Binding binding : bindings.values()) { getAgent().unbind(binding); } if (clearBindings) { bindings.clear(); } clearModelHandlers(); // Proxies without bindings will be removed from the cache to make sure the // garbage collector can do its job (see // BindableProxyFactory#removeCachedProxyForModel). We throw away the // reference to the proxy to force a new lookup in case this data binder // will be reused. unwrapProxy(); return this; }
private DataBinder<T> unbind(final boolean clearBindings) { for (final Binding binding : bindings.values()) { getAgent().unbind(binding); } if (clearBindings) { bindings.clear(); } clearModelHandlers(); // Proxies without bindings will be removed from the cache to make sure the // garbage collector can do its job (see // BindableProxyFactory#removeCachedProxyForModel). We throw away the // reference to the proxy to force a new lookup in case this data binder // will be reused. unwrapProxy(); return this; }
private DataBinder<T> unbind(final boolean clearBindings) { for (final Binding binding : bindings.values()) { getAgent().unbind(binding); } if (clearBindings) { bindings.clear(); } clearModelHandlers(); // Proxies without bindings will be removed from the cache to make sure the // garbage collector can do its job (see // BindableProxyFactory#removeCachedProxyForModel). We throw away the // reference to the proxy to force a new lookup in case this data binder // will be reused. unwrapProxy(); return this; }
final Binding binding = getAgent().bind(component, property, converter, bindOnKeyUp, initialState); bindings.put(property, binding); return this;
final Binding binding = getAgent().bind(component, property, converter, bindOnKeyUp, initialState); bindings.put(property, binding); return this;
final Binding binding = getAgent().bind(component, property, converter, bindOnKeyUp, initialState); bindings.put(property, binding); return this;
newProxy.getBindableProxyAgent().fireChangeEvents(getAgent(), initialState);
newProxy.getBindableProxyAgent().fireChangeEvents(getAgent(), initialState);