protected class MappingEditor.MyDecoratorAdapterFactory extends DecoratorAdapterFactory
Modifier and Type | Field and Description |
---|---|
protected Action |
action |
protected boolean |
exclude |
protected java.util.Collection<java.lang.Object> |
listeningItemProviderDecorators |
protected Action |
multipleColumnsAction |
changeNotifier, decoratedAdapterFactory, itemProviderDecorators, parentAdapterFactory
Constructor and Description |
---|
MyDecoratorAdapterFactory(AdapterFactory adapterFactory,
Action action,
boolean exclude) |
MyDecoratorAdapterFactory(AdapterFactory adapterFactory,
Action action,
boolean exclude,
Action multipleColumnsAction) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
adapt(java.lang.Object o,
java.lang.Object t)
All adapter creation is delegated to this method, which yields decorated item providers.
|
protected IItemProviderDecorator |
createItemProviderDecorator(java.lang.Object object,
java.lang.Object type)
This is called when a new decorator is needed by
DecoratorAdapterFactory.adapt(Object,Object) . |
protected void |
doMappedObjectRefresh(java.lang.Object object) |
protected boolean |
doMappingRefresh(java.lang.Object object) |
void |
fireNotifyChanged(Notification note)
This calls
notifyChanged for each listener. |
java.util.List<?> |
getPrimaryMappedObjects(Mapping mapping) |
java.util.List<?> |
getSecondaryMappedObjects(Mapping mapping) |
boolean |
isFactoryForType(java.lang.Object t)
This just delegates to the
DecoratorAdapterFactory.decoratedAdapterFactory . |
adapt, adaptAllNew, adaptNew, addListener, dispose, getDecoratedAdapterFactory, getRootAdapterFactory, removeListener, setDecoratedAdapterFactory, setParentAdapterFactory
protected java.util.Collection<java.lang.Object> listeningItemProviderDecorators
protected Action action
protected Action multipleColumnsAction
protected boolean exclude
public MyDecoratorAdapterFactory(AdapterFactory adapterFactory, Action action, boolean exclude, Action multipleColumnsAction)
public MyDecoratorAdapterFactory(AdapterFactory adapterFactory, Action action, boolean exclude)
public boolean isFactoryForType(java.lang.Object t)
DecoratorAdapterFactory
DecoratorAdapterFactory.decoratedAdapterFactory
.isFactoryForType
in interface AdapterFactory
isFactoryForType
in class DecoratorAdapterFactory
t
- the key indicating the type of adapter in question.Adapter.isAdapterForType(java.lang.Object)
public java.lang.Object adapt(java.lang.Object o, java.lang.Object t)
DecoratorAdapterFactory
DecoratorAdapterFactory.createItemProviderDecorator(java.lang.Object, java.lang.Object)
to the adapters returned by DecoratorAdapterFactory.decoratedAdapterFactory
.adapt
in interface AdapterFactory
adapt
in class DecoratorAdapterFactory
o
- arbitrary object to adapt.t
- the key indicating the type of adapter required.null
if the type isn't supported or the object cannot be adapted to it.protected boolean doMappingRefresh(java.lang.Object object)
protected void doMappedObjectRefresh(java.lang.Object object)
public java.util.List<?> getPrimaryMappedObjects(Mapping mapping)
public java.util.List<?> getSecondaryMappedObjects(Mapping mapping)
protected IItemProviderDecorator createItemProviderDecorator(java.lang.Object object, java.lang.Object type)
DecoratorAdapterFactory
DecoratorAdapterFactory.adapt(Object,Object)
.createItemProviderDecorator
in class DecoratorAdapterFactory
public void fireNotifyChanged(Notification note)
IChangeNotifier
notifyChanged
for each listener.fireNotifyChanged
in interface IChangeNotifier
fireNotifyChanged
in class DecoratorAdapterFactory