Package org.flexdock.docking.adapter
Class AdapterFactory
- java.lang.Object
-
- org.flexdock.docking.adapter.AdapterFactory
-
public class AdapterFactory extends java.lang.ObjectA factory for transformingComponents into a class that contains information about the component that is necessary for treating the component as aDockable.- Author:
- Christopher Butler, Karl Schaefer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADAPTER_RESOURCE_KEYA property key for determining whichi docking adapter to use.static java.lang.StringDEFAULT_ADAPTER_RESOURCEDeprecated.Scope is likely to become more restrictive (protected or private).
-
Constructor Summary
Constructors Constructor Description AdapterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DockingAdaptergetAdapter(java.awt.Component comp)Creates theDockingAdapterfor the givenComponent.static voidprime()Loads the mappings for this factory.
-
-
-
Field Detail
-
ADAPTER_RESOURCE_KEY
public static final java.lang.String ADAPTER_RESOURCE_KEY
A property key for determining whichi docking adapter to use.- See Also:
- Constant Field Values
-
DEFAULT_ADAPTER_RESOURCE
public static final java.lang.String 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:
- Constant Field Values
-
-
Method Detail
-
prime
public static void prime()
Loads the mappings for this factory.
-
getAdapter
public static DockingAdapter getAdapter(java.awt.Component comp)
Creates theDockingAdapterfor the givenComponent.- Parameters:
comp- the component to create an adapter for.- Returns:
- a docking adapter, or
nullifcompis null.
-
-