|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jfacefactories.binders.ListBinder
public final class ListBinder
Methods for databinding List
controls.
Method Summary | ||
---|---|---|
|
bind(java.lang.Object bean,
java.lang.String propertyName,
java.util.Collection<T> values,
org.eclipse.swt.widgets.List control)
Binds the passed List control to the passed property on
the passed bean, offering the passed values. |
|
void |
bind(java.lang.Object bean,
java.lang.String propertyName,
java.lang.Object inputBean,
java.lang.String inputPropertyName,
org.eclipse.swt.widgets.List control)
Binds the passed List control to the passed property on
the passed bean, offering values provided by a second 'input' bean's
property. |
|
protected org.eclipse.core.databinding.DataBindingContext |
getContext()
Accessor to context. |
|
protected IExceptionHandler |
getExceptionHandler()
Accessor to exception handler. |
|
protected org.eclipse.core.databinding.observable.Realm |
getRealm()
Accessor to validation realm. |
|
protected void |
runInRealm(java.lang.Runnable runnable)
Runs the passed runnable in the current validation realm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public <T> void bind(java.lang.Object bean, java.lang.String propertyName, java.util.Collection<T> values, org.eclipse.swt.widgets.List control)
List
control to the passed property on
the passed bean, offering the passed values.
List
's style defines binding behaviour:
SWT.SINGLE
- single selection is allowed, bound to a
property of type T on the bean
SWT.MULTIPLE
- multi selection is allowed, bound to a
Collection
of type T on the bean.
bean
- - cannot be nullpropertyName
- - cannot be nullvalues
- - the values to be displayed, cannot be nullcontrol
- - cannot be nullpublic void bind(java.lang.Object bean, java.lang.String propertyName, java.lang.Object inputBean, java.lang.String inputPropertyName, org.eclipse.swt.widgets.List control)
List
control to the passed property on
the passed bean, offering values provided by a second 'input' bean's
property.
List
's style defines binding behaviour:
SWT.SINGLE
- single selection is allowed, bound to a
property of type T on the bean
SWT.MULTIPLE
- multi selection is allowed, bound to a
Collection
of type T on the bean.
PropertyChangeListeners
(i.e.
has an addPropertyChangeListener(String, PropertyChangeListener)
and equivalent remove methods) then the input value is observed and the
List's
content updated whenever the input value changes
(the existing selection is maintained if possible).
bean
- - cannot be null, the bean whose property is setpropertyName
- - cannot be null, the property on this beaninputBean
- - cannot be null, the bean providing the
List
's valuesinputPropertyName
- - cannot be null, the property on the
inputBean that supplies the values - must be an array or a
java.util.Collection
control
- - cannot be null, the List
to be boundprotected org.eclipse.core.databinding.DataBindingContext getContext()
protected org.eclipse.core.databinding.observable.Realm getRealm()
protected void runInRealm(java.lang.Runnable runnable)
runnable
- protected IExceptionHandler getExceptionHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |