Package org.flexdock.docking.adapter
Class AdapterFactory
java.lang.Object
org.flexdock.docking.adapter.AdapterFactory
A factory for transforming
Component
s into a class that contains
information about the component that is necessary for treating the component
as a Dockable
.- Author:
- Christopher Butler, Karl Schaefer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DockingAdapter
getAdapter
(Component comp) Creates theDockingAdapter
for the givenComponent
.static void
prime()
Loads the mappings for this factory.
-
Field Details
-
ADAPTER_RESOURCE_KEY
A property key for determining whichi docking adapter to use.- See Also:
-
DEFAULT_ADAPTER_RESOURCE
Deprecated.Scope is likely to become more restrictive (protected or private).A constant representing the relative URI to the default docking adapter.- See Also:
-
-
Constructor Details
-
AdapterFactory
public AdapterFactory()
-
-
Method Details
-
prime
public static void prime()Loads the mappings for this factory. -
getAdapter
Creates theDockingAdapter
for the givenComponent
.- Parameters:
comp
- the component to create an adapter for.- Returns:
- a docking adapter, or
null
ifcomp
is null.
-