Class HtmlElementSupplierFactoryAdapter<M extends HtmlElement,T extends HTMLElement<?>>
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterImpl
-
- org.nasdanika.html.model.html.gen.HtmlElementAdapter<M,T>
-
- org.nasdanika.html.model.html.gen.HtmlElementSupplierFactoryAdapter<M,T>
-
- All Implemented Interfaces:
BiFunction<org.nasdanika.common.Context,org.nasdanika.common.ProgressMonitor,T>,Adapter,Adapter.Internal,org.nasdanika.common.ContextualFactory<org.nasdanika.common.Supplier<T>>,org.nasdanika.common.ExecutionParticipantFactory<org.nasdanika.common.Supplier<T>>,org.nasdanika.common.Factory<org.nasdanika.common.Context,org.nasdanika.common.Supplier<T>>,org.nasdanika.common.SupplierFactory<T>
- Direct Known Subclasses:
TagSupplierFactoryAdapter
public abstract class HtmlElementSupplierFactoryAdapter<M extends HtmlElement,T extends HTMLElement<?>> extends HtmlElementAdapter<M,T> implements org.nasdanika.common.SupplierFactory<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
-
-
Field Summary
-
Fields inherited from class org.nasdanika.html.model.html.gen.HtmlElementAdapter
adapterFactory
-
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHtmlElementSupplierFactoryAdapter(M htmlElement, AdapterFactory adapterFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.nasdanika.common.Supplier<T>create(org.nasdanika.common.Context context)protected abstract org.nasdanika.common.Supplier<T>createHTMLElementSupplier(org.nasdanika.common.Context context)Creates element from content.booleanisAdapterForType(Object type)-
Methods inherited from class org.nasdanika.html.model.html.gen.HtmlElementAdapter
createApplyAttributesAndContentFunction, createConfigureFunction, getContent, getRegisteredAdapter, getRootAdapterFactory, getTarget
-
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
notifyChanged, setTarget, unsetTarget
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Constructor Detail
-
HtmlElementSupplierFactoryAdapter
protected HtmlElementSupplierFactoryAdapter(M htmlElement, AdapterFactory adapterFactory)
-
-
Method Detail
-
isAdapterForType
public boolean isAdapterForType(Object type)
- Specified by:
isAdapterForTypein interfaceAdapter- Overrides:
isAdapterForTypein classAdapterImpl
-
createHTMLElementSupplier
protected abstract org.nasdanika.common.Supplier<T> createHTMLElementSupplier(org.nasdanika.common.Context context)
Creates element from content.- Parameters:
context-- Returns:
-
create
public org.nasdanika.common.Supplier<T> create(org.nasdanika.common.Context context)
- Specified by:
createin interfaceorg.nasdanika.common.Factory<M extends HtmlElement,T extends HTMLElement<?>>
-
-