class JListSelectedElementBinding
extends AbstractSyntheticBinding
implements PropertyChangeListener, ListSelectionListener
Tracks selection-related synthetic JList properties and forwards updates to a target binding.
| Fields inherited from class | Fields |
|---|---|
class AbstractFullBinding |
converter, reverseConverter, sourceBinding, targetBinding, validator |
| Constructor and description |
|---|
protected JListSelectedElementBinding(PropertyBinding source, TargetBinding target, String propertyName)Creates a binding for a synthetic selection-related property. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
JList |
getBoundList()Returns the list currently bound to this synthetic selection binding. |
|
void |
propertyChange(PropertyChangeEvent event)Updates the target when the list selection model instance changes. |
|
void |
setBoundList(JList boundList)Sets the list currently bound to this synthetic selection binding. |
|
void |
setTargetBinding(TargetBinding target)Sets the target binding to receive synthetic selection updates. |
|
void |
syntheticBind()Starts listening to selection model replacement and selection changes. |
|
void |
syntheticUnbind()Stops listening to selection model replacement and selection changes. |
|
void |
valueChanged(ListSelectionEvent e)Updates the target when the list selection changes. |
| 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 |
Creates a binding for a synthetic selection-related property.
source - the source property bindingtarget - the target binding to updatepropertyName - the synthetic property name to exposeReturns the list currently bound to this synthetic selection binding.
null when unboundUpdates the target when the list selection model instance changes.
event - the property change eventSets the list currently bound to this synthetic selection binding.
boundList - the bound listSets the target binding to receive synthetic selection updates.
target - the target bindingStarts listening to selection model replacement and selection changes.
Stops listening to selection model replacement and selection changes.
Updates the target when the list selection changes.
e - the selection eventCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.