org.favabeans.base
Class FavaBeans

java.lang.Object
  |
  +--org.favabeans.base.FavaBeans

public class FavaBeans
extends Object

Class FavaBeans provides access to global state of the current FavaBeans application.

Note that some or all aspects of this class may be moved elsewhere as we devise better and more flexible ways (perhaps based on BeanContext) for components locate this "contextual" state.


Field Summary
static Type ACTIONS_TYPE
          The Type of a Actions object.
static Type CHANGE_TYPE
          The Type of a Change object.
static Type DATA_TRANSFER_TYPE
          The Type of a DataTransfer object.
static Type DND_TARGET_CONTAINER_TYPE
          The Type of a DnDTargetContainer object.
static FacetRegistry FACETS
          The default FacetRegistry to be used for finding Facets for objects.
static Type FOLDER_TYPE
          The Type of a Folder object.
static Type OBJECT_TYPE
          The Type of a Object.
static Type PROPERTIES_TYPE
          The Type of a Properties object.
static Type PROTOTYPE_TYPE
          The Type of a Prototype object.
static TopLevelViewBuilder TOP_LEVEL_VIEW_BUILDER
          The top-level view builder for the application (which is a hook into the "window manager").
static TypeMetadataRegistry TYPE_METADATA
          The metadata used for backing various default Facets implementations.
static Type VIEW_PROTOTYPES_TYPE
          The Type of a ViewPrototypes object.
 
Method Summary
static Actions getActions(Object primaryObject)
          Obtain the Actions Facet of an object.
static Change getChange(Object primaryObject)
          Obtain the Change Facet of an object.
static DataTransfer getDataTransfer(Object primaryObject)
          Obtain the DataTransfer Facet of an object.
static DnDTargetContainer getDnDTargetContainer(Object primaryObject)
          Obtain the DnDTargetContainer Facet of an object.
static Folder getFolder(Object primaryObject)
          Obtain the Folder Facet of an object.
static Icon getIconResource(String name)
          Load an Icon resource via the current class loader.
static Properties getProperties(Object primaryObject)
          Obtain the Properties Facet of an object.
static Prototype getPrototype(Object primaryObject)
          Obtain the Prototype Facet of an object.
static URL getResource(String name)
          Load a resource via the current class loader.
static ViewPrototypes getViewPrototypes(Object primaryObject)
          Obtain the ViewPrototypes Facet of an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_TYPE

public static final Type OBJECT_TYPE
The Type of a Object.

CHANGE_TYPE

public static final Type CHANGE_TYPE
The Type of a Change object.

PROTOTYPE_TYPE

public static final Type PROTOTYPE_TYPE
The Type of a Prototype object.

DND_TARGET_CONTAINER_TYPE

public static final Type DND_TARGET_CONTAINER_TYPE
The Type of a DnDTargetContainer object.

DATA_TRANSFER_TYPE

public static final Type DATA_TRANSFER_TYPE
The Type of a DataTransfer object.

VIEW_PROTOTYPES_TYPE

public static final Type VIEW_PROTOTYPES_TYPE
The Type of a ViewPrototypes object.

PROPERTIES_TYPE

public static final Type PROPERTIES_TYPE
The Type of a Properties object.

ACTIONS_TYPE

public static final Type ACTIONS_TYPE
The Type of a Actions object.

FOLDER_TYPE

public static final Type FOLDER_TYPE
The Type of a Folder object.

FACETS

public static final FacetRegistry FACETS
The default FacetRegistry to be used for finding Facets for objects.

TYPE_METADATA

public static final TypeMetadataRegistry TYPE_METADATA
The metadata used for backing various default Facets implementations.

TOP_LEVEL_VIEW_BUILDER

public static TopLevelViewBuilder TOP_LEVEL_VIEW_BUILDER
The top-level view builder for the application (which is a hook into the "window manager"). Note: This kludge is a miserable excuse for a design of a window manager; we need to design a real one. At this level, the API will change little, but the underlying implementation should be more general and richer.
Method Detail

getChange

public static Change getChange(Object primaryObject)
Obtain the Change Facet of an object.
Parameters:
primaryObject - the primary object for which to obtain the Facet.
Returns:
the appropriate Facet.

getPrototype

public static Prototype getPrototype(Object primaryObject)
Obtain the Prototype Facet of an object.
Parameters:
primaryObject - the primary object for which to obtain the Facet.
Returns:
the appropriate Facet.

getDnDTargetContainer

public static DnDTargetContainer getDnDTargetContainer(Object primaryObject)
Obtain the DnDTargetContainer Facet of an object.
Parameters:
primaryObject - the primary object for which to obtain the Facet.
Returns:
the appropriate Facet.

getDataTransfer

public static DataTransfer getDataTransfer(Object primaryObject)
Obtain the DataTransfer Facet of an object.
Parameters:
primaryObject - the primary object for which to obtain the Facet.
Returns:
the appropriate Facet.

getViewPrototypes

public static ViewPrototypes getViewPrototypes(Object primaryObject)
Obtain the ViewPrototypes Facet of an object.
Parameters:
primaryObject - the primary object for which to obtain the Facet.
Returns:
the appropriate Facet.

getActions

public static Actions getActions(Object primaryObject)
Obtain the Actions Facet of an object.
Parameters:
primaryObject - the primary object for which to obtain the Facet.
Returns:
the appropriate Facet.

getProperties

public static Properties getProperties(Object primaryObject)
Obtain the Properties Facet of an object.
Parameters:
primaryObject - the primary object for which to obtain the Facet.
Returns:
the appropriate Facet.

getFolder

public static Folder getFolder(Object primaryObject)
Obtain the Folder Facet of an object.
Parameters:
primaryObject - the primary object for which to obtain the Facet.
Returns:
the appropriate Facet.

getResource

public static URL getResource(String name)
Load a resource via the current class loader.

getIconResource

public static Icon getIconResource(String name)
Load an Icon resource via the current class loader.


Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.