|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.ui.TypeVisualizerFactory
public abstract class TypeVisualizerFactory
Factory to create GUI widgets (Visualizers) for any kind of JAXFront types.
Field Summary | |
---|---|
static Type |
WILDCARD_TYPE
|
Method Summary | |
---|---|
static Visualizer |
buildRecursionView(Type recType,
Type context)
Creates recursion |
void |
cacheVisualizer(Type type,
Type context,
Visualizer vis)
Cache the passing visualizer for the passing type. |
void |
cacheVisualizer(Type type,
Visualizer visualizer)
Cache the passing visualizer for the passing type. |
abstract Visualizer |
createRecursiveView(Type type,
Type context)
Creates a recursive view for a AbstractCompositeType. |
abstract Visualizer |
createView(ComplexGroupList type,
Type context)
Creates a visualizer for a ComplexGroupList. |
abstract Visualizer |
createView(ComplexGroup type,
Type context)
Creates a visualizer for a ComplexGroup. |
abstract Visualizer |
createView(SimpleGroupList type,
Type context)
Creates a visualizer for a SimpleGroupList. |
abstract Visualizer |
createView(SimpleGroup type,
Type context)
Creates a visualizer for a SimpleGroup. |
abstract Visualizer |
createView(SimpleTypeList type,
Type context)
Creates a visualizer for a SimpleTypeList. |
abstract Visualizer |
createView(SimpleType type,
Type context)
Creates a visualizer for a SimpleType. |
abstract Visualizer |
createView(VirtualType type,
Type context)
Creates a visualizer for a virtual type. |
Visualizer |
createVisualizerFor(Type type,
Type context)
|
Visualizer |
createVisualizerFor(Type type,
Type context,
boolean createRecursionWrapper)
|
java.util.Vector |
getAllVisualizers(Document dom)
|
java.util.Vector |
getAllVisualizers(Type aType)
|
java.util.Vector |
getAllVisualizers(java.util.Vector result,
Type aType)
|
java.lang.Object |
getClientProperty(java.lang.String key)
Return a client property for the passing key. |
EditablePanel |
getEditor(Document DOM)
Returns the cached top level editor for the passing DOM. |
Visualizer |
getFirstCachedVisualizer(Type type)
Returns first cached visualizer for a given type (context less). |
static TypeVisualizerFactory |
getInstance()
Returns the single instance of this factory. |
Visualizer |
getPluginFor(Type type,
Type context)
Returns the plug-in (visualizer) for a type |
Visualizer |
getVisualizer(Type type)
Returns the visualizer of a type. |
Visualizer |
getVisualizer(Type type,
boolean lazyInit)
Returns the visualizer of a type. |
Visualizer |
getVisualizer(Type aType,
java.lang.String xPath)
Returns the visualizer of a type. |
Visualizer |
getVisualizer(Type type,
Type context)
Returns the visualizer of a type. |
Visualizer |
getVisualizer(Type type,
Type context,
boolean lazyInit)
Returns the visualizer of a type. |
Visualizer |
getVisualizer(Type type,
Type context,
boolean lazyInit,
boolean usePlugin)
Returns the visualizer of a type. |
Visualizer |
getVisualizerMapping(java.lang.String className,
Type type,
Type context)
|
java.util.Hashtable |
getVisualizers(Document DOM)
|
java.util.Vector |
getVisualizerStructure(Visualizer vis,
boolean includingRoot)
|
static boolean |
isAvailableLookAndFeel(java.lang.String laf)
A utility function that layers on top of the LookAndFeel's isSupportedLookAndFeel() method. |
void |
populateAllVisualizerForType(Type type)
|
void |
populateView(Type aType)
|
void |
putClientProperty(java.lang.String key,
java.lang.Object value)
Set any client property (value) for a key. |
EditablePanel |
registerEditor(Document DOM,
EditablePanel editor)
Register a top level editor for a DOM. |
static void |
release()
Releases the instance (singleton) of this class. |
void |
releaseCache()
Release cach for all DOM's |
void |
releaseCache(CompositeType composite,
Type context,
boolean removePropertyChangeListener,
boolean removeAllForType)
|
void |
releaseCache(Document DOM)
Release cache for the passing DOM. |
void |
releaseCache(Document DOM,
boolean releaseEditor)
Removes the given DOM from the visualizer list and virtualComponents. |
void |
releaseCache(ListType list,
Type context,
boolean removePropertyChangeListener,
boolean removeAllForType)
|
void |
releaseCache(Type type)
Removes all cached visualizers of a type. |
void |
releaseCache(Type type,
Type context,
boolean removeAllForType)
Removes the cached visualizer of a type. |
void |
releaseCache(Type type,
Type context,
boolean removePropertyChangeListener,
boolean removeAllForType)
Removes the cached visualizer of a type. |
void |
releaseCache(Visualizer cachedVisualizer,
Type type,
Type context,
boolean removePropertyChangeListener,
boolean removeAllForType)
|
void |
removeVisualizerStructure(Type visType,
boolean includeRoot)
|
void |
removeVisualizerStructure(Visualizer vis,
boolean includeRoot)
|
Visualizer |
resolveVisualizer(Type type,
Type context)
|
static TypeVisualizerFactory |
setInstance(TypeVisualizerFactory factory)
Sets the single instance of a VisualizerFactory. |
java.lang.String |
toString(Document dom)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Type WILDCARD_TYPE
Method Detail |
---|
public Visualizer getFirstCachedVisualizer(Type type)
type
- to return visualizer forpublic java.lang.String toString(Document dom)
public java.util.Vector getAllVisualizers(Type aType)
public java.util.Vector getAllVisualizers(java.util.Vector result, Type aType)
public java.util.Vector getAllVisualizers(Document dom)
public abstract Visualizer createRecursiveView(Type type, Type context)
type
- a recursive composite typepublic abstract Visualizer createView(ComplexGroup type, Type context)
type
- complex group to visualizepublic abstract Visualizer createView(ComplexGroupList type, Type context)
type
- complex group list to visualizepublic abstract Visualizer createView(SimpleGroup type, Type context)
type
- simple group to visualizepublic abstract Visualizer createView(SimpleGroupList type, Type context)
type
- simple group list to visualizepublic abstract Visualizer createView(SimpleType type, Type context)
type
- simple type to visualizepublic abstract Visualizer createView(SimpleTypeList type, Type context)
type
- simple type list to visualizepublic abstract Visualizer createView(VirtualType type, Type context)
type
- virtual type to visualizepublic Visualizer createVisualizerFor(Type type, Type context)
public static TypeVisualizerFactory getInstance()
public static TypeVisualizerFactory setInstance(TypeVisualizerFactory factory)
factory
- to set as singletonpublic Visualizer getPluginFor(Type type, Type context) throws PluginException
type
- a type for which its defined plug-in should be returned
PluginException
- if no plug-in exists for the given type or any error occured
while rendering that typepublic Visualizer getVisualizer(Type type)
type
- a type for creating a visualizerpublic Visualizer getVisualizer(Type aType, java.lang.String xPath)
type
- a type for creating a visualizerpublic Visualizer getVisualizer(Type type, Type context)
type
- a type for creating a visualizercontext
- the type that holds the desired visualizerpublic Visualizer getVisualizer(Type type, boolean lazyInit)
type
- a type for creating a visualizerlazyInit
- defines if the visualizer should be created initially or notpublic Visualizer getVisualizer(Type type, Type context, boolean lazyInit)
type
- a type for creating a visualizercontext
- the context of the visualizer that should be generatedlazyInit
- defines if the visualizer should be created initially or notpublic Visualizer getVisualizer(Type type, Type context, boolean lazyInit, boolean usePlugin)
type
- a type for creating a visualizercontext
- a type that acts as viewHolder for the given typelazyInit
- defines if the visualizer should be created initially or notpublic void cacheVisualizer(Type type, Visualizer visualizer)
type
- to create unique cache keyvisualizer
- view to cachepublic java.util.Hashtable getVisualizers(Document DOM)
public static void release()
public void releaseCache(Document DOM)
DOM
- to release cachepublic void releaseCache()
public void releaseCache(Document DOM, boolean releaseEditor)
DOM
- the DOM that should be removedpublic void releaseCache(Type type)
type
- a type for which its cached visualizer will be removedpublic void releaseCache(Type type, Type context, boolean removeAllForType)
type
- a type for which its cached visualizer will be removedcontext
- the context of the visualizer that should be released from
cachepublic void releaseCache(Type type, Type context, boolean removePropertyChangeListener, boolean removeAllForType)
type
- a type for which its cached visualizer will be removedcontext
- the context of the visualizer that should be released from
cacheremovePropertyChangeListener
- removes the propertyChangeListener that was added to this viewpublic void releaseCache(Visualizer cachedVisualizer, Type type, Type context, boolean removePropertyChangeListener, boolean removeAllForType)
public void releaseCache(ListType list, Type context, boolean removePropertyChangeListener, boolean removeAllForType)
public void releaseCache(CompositeType composite, Type context, boolean removePropertyChangeListener, boolean removeAllForType)
public EditablePanel getEditor(Document DOM)
DOM
- to lookup if a top level editor existspublic EditablePanel registerEditor(Document DOM, EditablePanel editor)
DOM
- to cache the editoreditor
- top level editorpublic void putClientProperty(java.lang.String key, java.lang.Object value)
key
- to keep propertyvalue
- client propertypublic java.lang.Object getClientProperty(java.lang.String key)
key
- to look uppublic static boolean isAvailableLookAndFeel(java.lang.String laf)
public void populateView(Type aType)
public Visualizer resolveVisualizer(Type type, Type context)
public void cacheVisualizer(Type type, Type context, Visualizer vis)
type
- to create unique cache keycontext
- the context of the visualizer that should be released from
cachevisualizer
- view to cachepublic Visualizer getVisualizerMapping(java.lang.String className, Type type, Type context)
public void populateAllVisualizerForType(Type type)
public void removeVisualizerStructure(Type visType, boolean includeRoot)
public void removeVisualizerStructure(Visualizer vis, boolean includeRoot)
public java.util.Vector getVisualizerStructure(Visualizer vis, boolean includingRoot)
public static Visualizer buildRecursionView(Type recType, Type context)
public Visualizer createVisualizerFor(Type type, Type context, boolean createRecursionWrapper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |