class JListElementsBinding
extends AbstractSyntheticBinding
implements ListDataListener, PropertyChangeListener
Tracks changes to the bound list model and propagates updates for the synthetic elements property.
| Fields inherited from class | Fields |
|---|---|
class AbstractFullBinding |
converter, reverseConverter, sourceBinding, targetBinding, validator |
| Constructor and description |
|---|
JListElementsBinding(PropertyBinding propertyBinding, TargetBinding target)Creates a binding for the synthetic elements property. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
contentsChanged(ListDataEvent e)Updates the target when existing model items change. |
|
void |
intervalAdded(ListDataEvent e)Updates the target when items are inserted into the model. |
|
void |
intervalRemoved(ListDataEvent e)Updates the target when items are removed from the model. |
|
void |
propertyChange(PropertyChangeEvent event)Rebinds listeners when the list model instance changes. |
|
protected void |
syntheticBind()Starts listening to the list model and model replacement events. |
|
protected void |
syntheticUnbind()Stops listening to the list model and model replacement events. |
| Methods inherited from class | Name |
|---|---|
class AbstractSyntheticBinding |
bind, rebind, setSourceBinding, setTargetBinding, syntheticBind, syntheticUnbind, unbind |
class AbstractFullBinding |
getConverter, getReverseConverter, getSourceBinding, getTargetBinding, getValidator, reverseUpdate, setConverter, setReverseConverter, setSourceBinding, setTargetBinding, setValidator, update |
List currently supplying element events for this binding.
Creates a binding for the synthetic elements property.
propertyBinding - the source property bindingtarget - the target binding to updateUpdates the target when existing model items change.
e - the list data eventUpdates the target when items are inserted into the model.
e - the list data eventUpdates the target when items are removed from the model.
e - the list data eventRebinds listeners when the list model instance changes.
event - the model property change eventStarts listening to the list model and model replacement events.
Stops listening to the list model and model replacement events.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.