|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.builder.action.ActionBuilder
public class ActionBuilder
A central data class used during the action builder process.
This class holds all information needed during the processing of Jelly
scripts with actions and related tags. An instance is stored in the Jelly
context and can be accessed by all interested components. The role of this
class is almost analogous to the
class in the form builder package.
ComponentBuilderData
By implementing the BeanContributor interface this class makes
some of its managed objects available to the dependency injection framework.
These are the following:
ActionStore
can be accessed under their name with the prefix
"action:".ActionStore itself is available under the
name "ACTION_STORE".
| Field Summary | |
|---|---|
static java.lang.String |
KEY_ACTION_BUILDER
Constant for the key for accessing the instance of this class from the builder's bean context. |
static java.lang.String |
KEY_ACTION_PREFIX
Constant for the prefix used for accessing actions. |
static java.lang.String |
KEY_ACTION_STORE
Constant for the key for accessing the action store from the builder's bean context. |
| Constructor Summary | |
|---|---|
ActionBuilder()
|
|
| Method Summary | |
|---|---|
void |
beanNames(java.util.Set<java.lang.String> names)
Obtains the names of the beans supported by this bean contributor. |
static ActionBuilder |
get(org.apache.commons.jelly.JellyContext context)
Returns the instance of this class stored in the specified Jelly context. |
ActionManager |
getActionManager()
Returns a reference to the action manager. |
ActionStore |
getActionStore()
Returns a reference to the current action store. |
java.lang.Object |
getBean(java.lang.String name)
Returns the bean with the given name. |
void |
initBeanStore(SimpleBeanStoreImpl store)
Initializes the specified bean store object. |
boolean |
isMenuIcon()
Returns the value of the menu icon flag. |
boolean |
isToolbarText()
Returns the value of the toolbar text flag. |
void |
put(org.apache.commons.jelly.JellyContext context)
Stores this object in the given Jelly context. |
void |
setActionManager(ActionManager actionManager)
Sets the action manager. |
void |
setActionStore(ActionStore actionStore)
Sets the action store. |
void |
setMenuIcon(boolean menuIcon)
Sets the value of the menu icon flag. |
void |
setToolbarText(boolean toolbarText)
Sets the value of the toolbar text flag. |
| 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_ACTION_STORE
public static final java.lang.String KEY_ACTION_BUILDER
public static final java.lang.String KEY_ACTION_PREFIX
| Constructor Detail |
|---|
public ActionBuilder()
| Method Detail |
|---|
public ActionStore getActionStore()
public void setActionStore(ActionStore actionStore)
actionStore - the action storepublic ActionManager getActionManager()
public void setActionManager(ActionManager actionManager)
actionManager - the action manager to usepublic boolean isMenuIcon()
public void setMenuIcon(boolean menuIcon)
menuIcon - the value of the flagpublic boolean isToolbarText()
public void setToolbarText(boolean toolbarText)
toolbarText - the value of the flagpublic void beanNames(java.util.Set<java.lang.String> names)
beanNames in interface SimpleBeanStoreImpl.BeanContributornames - a set, in which to store the names of the available
beanspublic java.lang.Object getBean(java.lang.String name)
getBean in interface SimpleBeanStoreImpl.BeanContributorname - the name of the bean
java.util.NoSuchElementException - if an unknown action is requestedpublic void initBeanStore(SimpleBeanStoreImpl store)
BeanContext used during the builder
operation is constructed. This implementation will add the static beans
to the given store and register this object as
BeanContributor.
store - the store to be initializedpublic void put(org.apache.commons.jelly.JellyContext context)
context - the context (must not be null)
java.lang.IllegalArgumentException - if the context is nullpublic static ActionBuilder 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 | |||||||||