|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.builder.window.WindowBuilderData
public class WindowBuilderData
A data class that stores important information needed during a window builder process.
An instance of this class lives in the Jelly context during execution of a Jelly script that makes use of the window builder library. It contains parameters required by tag handler classes, e.g. the window manager to use. It will also store the results of the builder operation.
Some objects managed by this class are available to the dependency injection
framework (they can be obtained through the BeanContext of the
active builder). These are the following:
| Field Summary | |
|---|---|
static java.lang.String |
KEY_CURRENT_WINDOW
Constant for the key, under which the current result window can be obtained from the builder's bean context. |
static java.lang.String |
KEY_FORM_BEAN
Constant for the key, under which the current form bean can be obtained from the builder's bean context. |
static java.lang.String |
KEY_PARENT_WINDOW
Constant for the key, under which the parent window can be obtained from the builder's bean context. |
static java.lang.String |
KEY_WINDOW_BUILDER_DATA
Constant for the key, under which the instance of this class can be obtained from the builder's bean context. |
| Constructor Summary | |
|---|---|
WindowBuilderData()
|
|
| Method Summary | |
|---|---|
void |
beanNames(java.util.Set<java.lang.String> names)
Obtains the names of the supported beans. |
static WindowBuilderData |
get(org.apache.commons.jelly.JellyContext context)
Returns the instance of this class stored in the specified Jelly context. |
java.lang.Object |
getBean(java.lang.String name)
Returns the bean with the specified name. |
java.lang.Object |
getFormBean()
Returns the form bean. |
Window |
getParentWindow()
Returns the parent window of the new window. |
Window |
getResultWindow()
Returns the result window of the builder process. |
WindowManager |
getWindowManager()
Returns the window manager. |
void |
initBeanStore(SimpleBeanStoreImpl store)
Initializes the specified bean store. |
void |
put(org.apache.commons.jelly.JellyContext ctx)
Stores this instance in the specified Jelly context. |
void |
setFormBean(java.lang.Object formBean)
Sets the form bean. |
void |
setParentWindow(Window parentWindow)
Sets the parent window. |
void |
setResultWindow(Window resultWindow)
Sets the result window. |
void |
setWindowManager(WindowManager windowManager)
Sets the window manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_CURRENT_WINDOW
public static final java.lang.String KEY_PARENT_WINDOW
public static final java.lang.String KEY_FORM_BEAN
public static final java.lang.String KEY_WINDOW_BUILDER_DATA
| Constructor Detail |
|---|
public WindowBuilderData()
| Method Detail |
|---|
public java.lang.Object getFormBean()
public void setFormBean(java.lang.Object formBean)
formBean - the form beanpublic Window getParentWindow()
public void setParentWindow(Window parentWindow)
parentWindow - the parent windowpublic Window getResultWindow()
public void setResultWindow(Window resultWindow)
resultWindow - the result windowpublic WindowManager getWindowManager()
public void setWindowManager(WindowManager windowManager)
windowManager - the window manager to usepublic void beanNames(java.util.Set<java.lang.String> names)
beanNames in interface SimpleBeanStoreImpl.BeanContributornames - a set in which to store the bean namespublic java.lang.Object getBean(java.lang.String name)
getBean in interface SimpleBeanStoreImpl.BeanContributorname - the name of the desired bean
public void initBeanStore(SimpleBeanStoreImpl store)
store - the store to be initializedpublic void put(org.apache.commons.jelly.JellyContext ctx)
ctx - the context (must not be null)
java.lang.IllegalArgumentException - if the context is nullpublic static WindowBuilderData get(org.apache.commons.jelly.JellyContext context)
context - the Jelly context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||