Package net.sf.jguiraffe.gui.app
Klasse ApplicationBuilderData
java.lang.Object
net.sf.jguiraffe.gui.app.ApplicationBuilderData
- Alle implementierten Schnittstellen:
BuilderData
The application specific default implementation of the BuilderData
interface.
This class provides meaningful implementations of all methods required by the
BuilderData interface. An instance can be obtained from the
ApplicationContext class that is already initialized with predefined
values for many fields. So a client need not bother with all of the data
supported by this interface, but has only to set the values it is specially
interested in.
Implementation note: this class is not thread-safe. The typical usage
scenario is that an instance is requested from ApplicationContext,
initialized with the properties required by the application and passed to a
builder.
- Version:
- $Id: ApplicationBuilderData.java 205 2012-01-29 18:29:57Z oheger $
- Autor:
- Oliver Heger
- Siehe auch:
-
Feldübersicht
Von Schnittstelle geerbte Felder net.sf.jguiraffe.gui.builder.BuilderData
KEY_RESULT_WINDOW -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdds the specifiedBeanCreationListenerto this object.voidaddBeanCreationListeners(Collection<? extends BeanCreationListener> listeners) Adds allBeanCreationListenerobjects contained in the given collection to this object.voidaddProperty(String key, Object value) Adds an additional property for the builder operation.Returns the action store.Returns the result object from the bean builder.Returns a collection withBeanCreationListenerobjects to be registered at theBeanContextcreated by the builder.Returns theBindingStrategyused by the current form.Returns a reference to theBuilderinstance that processed this object.Returns the bean context used by the builder.Returns the name of the builder.Returns theCommandQueue.Returns the default resource group.Returns the form bean.Returns theFormValidatorfor validating the current form.Returns theInvocationHelper.Returns theMessageOutputobject.Returns the parent bean context.Returns the parent window.Returns a map with additional properties for the builder operation.Returns the root store populated by the builder.Returns the transformer context.booleanReturns the auto release flag.booleanReturns the menu icon flag.booleanReturns the toolbar text flag.voidsetActionStore(ActionStore actionStore) Sets the action store.voidsetAutoRelease(boolean autoRelease) Sets the auto release flag.voidSets the result object for the bean builder.voidSets theBindingStrategyto be used by the current form.voidsetBuilder(Builder builder) Sets theBuilderthat processed this object.voidSets the bean context used by the builder.voidsetBuilderName(String builderName) Sets a name for the builder.voidsetCommandQueue(CommandQueue commandQueue) Sets theCommandQueue.voidsetDefaultResourceGroup(Object defaultResourceGroup) Sets the default resource group.voidsetFormBean(Object formBean) Sets the form bean.voidsetFormValidator(FormValidator validator) Sets theFormValidatorfor validating the current form.voidsetInvocationHelper(InvocationHelper invocationHelper) Sets theInvocationHelper.voidsetMenuIcon(boolean menuIcon) Sets the menu icon flag.voidsetMessageOutput(MessageOutput messageOutput) Sets theMessageOutputobject.voidSets the parent bean context.voidsetParentWindow(Window parentWindow) Sets the parent window.voidsetProperties(Map<String, Object> props) Sets additional properties for the builder operation.voidsetToolbarText(boolean toolbarText) Sets the toolbar text flag.voidsetTransformerContext(TransformerContext transformerContext) Sets the transformer context.
-
Konstruktordetails
-
ApplicationBuilderData
public ApplicationBuilderData()Creates a new instance ofApplicationBuilderData.
-
-
Methodendetails
-
getActionStore
Returns the action store.- Angegeben von:
getActionStorein SchnittstelleBuilderData- Gibt zurück:
- the action store
-
setActionStore
Sets the action store.- Parameter:
actionStore- the actionStore
-
getDefaultResourceGroup
Returns the default resource group.- Angegeben von:
getDefaultResourceGroupin SchnittstelleBuilderData- Gibt zurück:
- the default resource group
-
setDefaultResourceGroup
Sets the default resource group.- Parameter:
defaultResourceGroup- the default resource group
-
getFormBean
Returns the form bean.- Angegeben von:
getFormBeanin SchnittstelleBuilderData- Gibt zurück:
- the form bean
-
setFormBean
Sets the form bean.- Parameter:
formBean- the form bean
-
getBindingStrategy
Returns theBindingStrategyused by the current form.- Angegeben von:
getBindingStrategyin SchnittstelleBuilderData- Gibt zurück:
- the
BindingStrategy - Siehe auch:
-
setBindingStrategy
Sets theBindingStrategyto be used by the current form.- Parameter:
strat- theBindingStrategy
-
getFormValidator
Returns theFormValidatorfor validating the current form.- Angegeben von:
getFormValidatorin SchnittstelleBuilderData- Gibt zurück:
- the
FormValidator
-
setFormValidator
Sets theFormValidatorfor validating the current form. If noFormValidatoris set, no form-level validation is performed. The form's fields may be validated though if corresponding validators have been defined.- Parameter:
validator- theFormValidator
-
isMenuIcon
public boolean isMenuIcon()Returns the menu icon flag.- Angegeben von:
isMenuIconin SchnittstelleBuilderData- Gibt zurück:
- the menu icon flag
-
setMenuIcon
public void setMenuIcon(boolean menuIcon) Sets the menu icon flag.- Parameter:
menuIcon- the flag value
-
getParentWindow
Returns the parent window.- Angegeben von:
getParentWindowin SchnittstelleBuilderData- Gibt zurück:
- the parent window
-
setParentWindow
Sets the parent window.- Parameter:
parentWindow- the parent window
-
isToolbarText
public boolean isToolbarText()Returns the toolbar text flag.- Angegeben von:
isToolbarTextin SchnittstelleBuilderData- Gibt zurück:
- the toolbar text flag
-
setToolbarText
public void setToolbarText(boolean toolbarText) Sets the toolbar text flag.- Parameter:
toolbarText- the toolbar text flag
-
getTransformerContext
Returns the transformer context.- Angegeben von:
getTransformerContextin SchnittstelleBuilderData- Gibt zurück:
- the transformer context
-
setTransformerContext
Sets the transformer context.- Parameter:
transformerContext- the transformer context
-
getBeanBuilderResult
Returns the result object from the bean builder.- Angegeben von:
getBeanBuilderResultin SchnittstelleBuilderData- Gibt zurück:
- the results of the bean builder
-
setBeanBuilderResult
Sets the result object for the bean builder.- Angegeben von:
setBeanBuilderResultin SchnittstelleBuilderData- Parameter:
res- the results of the bean builder
-
getParentContext
Returns the parent bean context.- Angegeben von:
getParentContextin SchnittstelleBuilderData- Gibt zurück:
- the parent bean context
-
setParentContext
Sets the parent bean context.- Parameter:
ctx- the parent bean context
-
getRootStore
Returns the root store populated by the builder. This method can only be called after the builder operation.- Angegeben von:
getRootStorein SchnittstelleBuilderData- Gibt zurück:
- the root store returned from the builder
- Löst aus:
IllegalStateException- if no builder results are available yet- Siehe auch:
-
getBuilderContext
Returns the bean context used by the builder.- Angegeben von:
getBuilderContextin SchnittstelleBuilderData- Gibt zurück:
- the builder's bean context
-
setBuilderContext
Sets the bean context used by the builder.- Angegeben von:
setBuilderContextin SchnittstelleBuilderData- Parameter:
ctx- the builder's bean context
-
getInvocationHelper
Returns theInvocationHelper.- Angegeben von:
getInvocationHelperin SchnittstelleBuilderData- Gibt zurück:
- the
InvocationHelper
-
setInvocationHelper
Sets theInvocationHelper.- Parameter:
invocationHelper- theInvocationHelper
-
getMessageOutput
Returns theMessageOutputobject.- Angegeben von:
getMessageOutputin SchnittstelleBuilderData- Gibt zurück:
- the message output object
-
setMessageOutput
Sets theMessageOutputobject.- Parameter:
messageOutput- the message output object
-
getCommandQueue
Returns theCommandQueue.- Angegeben von:
getCommandQueuein SchnittstelleBuilderData- Gibt zurück:
- the command queue
-
setCommandQueue
Sets theCommandQueue.- Parameter:
commandQueue- the command queue
-
getBeanCreationListeners
Returns a collection withBeanCreationListenerobjects to be registered at theBeanContextcreated by the builder. Note: this collection cannot be modified.- Angegeben von:
getBeanCreationListenersin SchnittstelleBuilderData- Gibt zurück:
- a collection with
BeanCreationListenerobjects
-
addBeanCreationListener
Adds the specifiedBeanCreationListenerto this object. It will be registered at theBeanContextcreated by the builder and thus notified for all bean created by the dependency injection framework.- Parameter:
l- theBeanCreationListenerto be added (must not be null)- Löst aus:
IllegalArgumentException- if theBeanCreationListeneris null
-
addBeanCreationListeners
Adds allBeanCreationListenerobjects contained in the given collection to this object. They will be registered at theBeanContextcreated by the builder and thus notified for all bean created by the dependency injection framework.- Parameter:
listeners- the collection withBeanCreationListenerobjects (must not be null)- Löst aus:
IllegalArgumentException- if the collection is null or contains null elements
-
getBuilder
Returns a reference to theBuilderinstance that processed this object. This value is available only after theBuilderwas called.- Angegeben von:
getBuilderin SchnittstelleBuilderData- Gibt zurück:
- the
Builderthat processed thisBuilderDataobject
-
setBuilder
Sets theBuilderthat processed this object. This method is called by theBuilderinstance during the builder operation.- Angegeben von:
setBuilderin SchnittstelleBuilderData- Parameter:
builder- theBuilder
-
getBuilderName
Returns the name of the builder.- Angegeben von:
getBuilderNamein SchnittstelleBuilderData- Gibt zurück:
- the name of the builder
-
setBuilderName
Sets a name for the builder. This name is available during the build process (through theComponentBuilderDataobject). It can be used for conditional execution of builder scripts.- Parameter:
builderName- the name of the builder
-
isAutoRelease
public boolean isAutoRelease()Returns the auto release flag.- Angegeben von:
isAutoReleasein SchnittstelleBuilderData- Gibt zurück:
- the auto release flag
-
setAutoRelease
public void setAutoRelease(boolean autoRelease) Sets the auto release flag. This flag is evaluated if a window is generated during the builder operation. A value of true means that this object and all resources referenced by it should be freed automatically when the window is closed. This is done by invokingBuilder.release(BuilderData)on theBuilderresponsible. Note that the default value of this flag is true, so auto release is enabled per default.- Parameter:
autoRelease- the value of the auto release flag
-
getProperties
Returns a map with additional properties for the builder operation. This implementation either returns the map set bysetProperties(Map)or the one that was created automatically whenwas called. Result may also be null if no properties have been set.Ungültige Referenz
#addProperty()- Angegeben von:
getPropertiesin SchnittstelleBuilderData- Gibt zurück:
- a map with additional properties for the builder operation
- Siehe auch:
-
setProperties
Sets additional properties for the builder operation. The map passed to this method is directly stored and passed to the builder.- Parameter:
props- the map with additional properties
-
addProperty
Adds an additional property for the builder operation. This method can be used to populate the map with additional properties that is returned bygetProperties(). If no map with properties has been set yet, a new one is created (getProperties()will return this new map). Otherwise, the property is added to the existing map.- Parameter:
key- the key of the propertyvalue- the value of the property
-