|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.sapia.gumby.RenderContextFactory
This class is a factory of RenderContext instances. Ideally, only the first context
acquired by an application should be created by this class. Other contexts should be created as children
of that first context, and so on.
The above approach is a nice way to have a context that is shared globally, and child contexts that are intented to hold state that is specific to some parts of the application.
| Constructor Summary | |
|---|---|
RenderContextFactory()
|
|
| Method Summary | |
|---|---|
static void |
loadDefinitions(InputStream is)
Loads object definitions that will be available to all RenderContext
instances. |
static RenderContext |
newInstance()
Returns a new context. |
static RenderContext |
newInstance(GuiEnv env)
Returns a new context that will encapsulate the given environment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RenderContextFactory()
| Method Detail |
public static RenderContext newInstance()
RenderContext instance.public static RenderContext newInstance(GuiEnv env)
env - a GuiEnv instance.
RenderContext.
public static void loadDefinitions(InputStream is)
throws Exception
RenderContext
instances.
is - an InputStream.
Exception - if a problem occurs while loading the definitions.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||