Klasse ApplicationBuilderData

java.lang.Object
net.sf.jguiraffe.gui.app.ApplicationBuilderData
Alle implementierten Schnittstellen:
BuilderData

public class ApplicationBuilderData extends Object implements 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:
  • Konstruktordetails

    • ApplicationBuilderData

      public ApplicationBuilderData()
      Creates a new instance of ApplicationBuilderData.
  • Methodendetails

    • getActionStore

      public ActionStore getActionStore()
      Returns the action store.
      Angegeben von:
      getActionStore in Schnittstelle BuilderData
      Gibt zurück:
      the action store
    • setActionStore

      public void setActionStore(ActionStore actionStore)
      Sets the action store.
      Parameter:
      actionStore - the actionStore
    • getDefaultResourceGroup

      public Object getDefaultResourceGroup()
      Returns the default resource group.
      Angegeben von:
      getDefaultResourceGroup in Schnittstelle BuilderData
      Gibt zurück:
      the default resource group
    • setDefaultResourceGroup

      public void setDefaultResourceGroup(Object defaultResourceGroup)
      Sets the default resource group.
      Parameter:
      defaultResourceGroup - the default resource group
    • getFormBean

      public Object getFormBean()
      Returns the form bean.
      Angegeben von:
      getFormBean in Schnittstelle BuilderData
      Gibt zurück:
      the form bean
    • setFormBean

      public void setFormBean(Object formBean)
      Sets the form bean.
      Parameter:
      formBean - the form bean
    • getBindingStrategy

      public BindingStrategy getBindingStrategy()
      Returns the BindingStrategy used by the current form.
      Angegeben von:
      getBindingStrategy in Schnittstelle BuilderData
      Gibt zurück:
      the BindingStrategy
      Siehe auch:
    • setBindingStrategy

      public void setBindingStrategy(BindingStrategy strat)
      Sets the BindingStrategy to be used by the current form.
      Parameter:
      strat - the BindingStrategy
    • getFormValidator

      public FormValidator getFormValidator()
      Returns the FormValidator for validating the current form.
      Angegeben von:
      getFormValidator in Schnittstelle BuilderData
      Gibt zurück:
      the FormValidator
    • setFormValidator

      public void setFormValidator(FormValidator validator)
      Sets the FormValidator for validating the current form. If no FormValidator is set, no form-level validation is performed. The form's fields may be validated though if corresponding validators have been defined.
      Parameter:
      validator - the FormValidator
    • isMenuIcon

      public boolean isMenuIcon()
      Returns the menu icon flag.
      Angegeben von:
      isMenuIcon in Schnittstelle BuilderData
      Gibt zurück:
      the menu icon flag
    • setMenuIcon

      public void setMenuIcon(boolean menuIcon)
      Sets the menu icon flag.
      Parameter:
      menuIcon - the flag value
    • getParentWindow

      public Window getParentWindow()
      Returns the parent window.
      Angegeben von:
      getParentWindow in Schnittstelle BuilderData
      Gibt zurück:
      the parent window
    • setParentWindow

      public void setParentWindow(Window parentWindow)
      Sets the parent window.
      Parameter:
      parentWindow - the parent window
    • isToolbarText

      public boolean isToolbarText()
      Returns the toolbar text flag.
      Angegeben von:
      isToolbarText in Schnittstelle BuilderData
      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

      public TransformerContext getTransformerContext()
      Returns the transformer context.
      Angegeben von:
      getTransformerContext in Schnittstelle BuilderData
      Gibt zurück:
      the transformer context
    • setTransformerContext

      public void setTransformerContext(TransformerContext transformerContext)
      Sets the transformer context.
      Parameter:
      transformerContext - the transformer context
    • getBeanBuilderResult

      public BeanBuilderResult getBeanBuilderResult()
      Returns the result object from the bean builder.
      Angegeben von:
      getBeanBuilderResult in Schnittstelle BuilderData
      Gibt zurück:
      the results of the bean builder
    • setBeanBuilderResult

      public void setBeanBuilderResult(BeanBuilderResult res)
      Sets the result object for the bean builder.
      Angegeben von:
      setBeanBuilderResult in Schnittstelle BuilderData
      Parameter:
      res - the results of the bean builder
    • getParentContext

      public BeanContext getParentContext()
      Returns the parent bean context.
      Angegeben von:
      getParentContext in Schnittstelle BuilderData
      Gibt zurück:
      the parent bean context
    • setParentContext

      public void setParentContext(BeanContext ctx)
      Sets the parent bean context.
      Parameter:
      ctx - the parent bean context
    • getRootStore

      public BeanStore getRootStore()
      Returns the root store populated by the builder. This method can only be called after the builder operation.
      Angegeben von:
      getRootStore in Schnittstelle BuilderData
      Gibt zurück:
      the root store returned from the builder
      Löst aus:
      IllegalStateException - if no builder results are available yet
      Siehe auch:
    • getBuilderContext

      public BeanContext getBuilderContext()
      Returns the bean context used by the builder.
      Angegeben von:
      getBuilderContext in Schnittstelle BuilderData
      Gibt zurück:
      the builder's bean context
    • setBuilderContext

      public void setBuilderContext(BeanContext ctx)
      Sets the bean context used by the builder.
      Angegeben von:
      setBuilderContext in Schnittstelle BuilderData
      Parameter:
      ctx - the builder's bean context
    • getInvocationHelper

      public InvocationHelper getInvocationHelper()
      Returns the InvocationHelper.
      Angegeben von:
      getInvocationHelper in Schnittstelle BuilderData
      Gibt zurück:
      the InvocationHelper
    • setInvocationHelper

      public void setInvocationHelper(InvocationHelper invocationHelper)
      Sets the InvocationHelper.
      Parameter:
      invocationHelper - the InvocationHelper
    • getMessageOutput

      public MessageOutput getMessageOutput()
      Returns the MessageOutput object.
      Angegeben von:
      getMessageOutput in Schnittstelle BuilderData
      Gibt zurück:
      the message output object
    • setMessageOutput

      public void setMessageOutput(MessageOutput messageOutput)
      Sets the MessageOutput object.
      Parameter:
      messageOutput - the message output object
    • getCommandQueue

      public CommandQueue getCommandQueue()
      Returns the CommandQueue.
      Angegeben von:
      getCommandQueue in Schnittstelle BuilderData
      Gibt zurück:
      the command queue
    • setCommandQueue

      public void setCommandQueue(CommandQueue commandQueue)
      Sets the CommandQueue.
      Parameter:
      commandQueue - the command queue
    • getBeanCreationListeners

      public Collection<BeanCreationListener> getBeanCreationListeners()
      Returns a collection with BeanCreationListener objects to be registered at the BeanContext created by the builder. Note: this collection cannot be modified.
      Angegeben von:
      getBeanCreationListeners in Schnittstelle BuilderData
      Gibt zurück:
      a collection with BeanCreationListener objects
    • addBeanCreationListener

      public void addBeanCreationListener(BeanCreationListener l)
      Adds the specified BeanCreationListener to this object. It will be registered at the BeanContext created by the builder and thus notified for all bean created by the dependency injection framework.
      Parameter:
      l - the BeanCreationListener to be added (must not be null)
      Löst aus:
      IllegalArgumentException - if the BeanCreationListener is null
    • addBeanCreationListeners

      public void addBeanCreationListeners(Collection<? extends BeanCreationListener> listeners)
      Adds all BeanCreationListener objects contained in the given collection to this object. They will be registered at the BeanContext created by the builder and thus notified for all bean created by the dependency injection framework.
      Parameter:
      listeners - the collection with BeanCreationListener objects (must not be null)
      Löst aus:
      IllegalArgumentException - if the collection is null or contains null elements
    • getBuilder

      public Builder getBuilder()
      Returns a reference to the Builder instance that processed this object. This value is available only after the Builder was called.
      Angegeben von:
      getBuilder in Schnittstelle BuilderData
      Gibt zurück:
      the Builder that processed this BuilderData object
    • setBuilder

      public void setBuilder(Builder builder)
      Sets the Builder that processed this object. This method is called by the Builder instance during the builder operation.
      Angegeben von:
      setBuilder in Schnittstelle BuilderData
      Parameter:
      builder - the Builder
    • getBuilderName

      public String getBuilderName()
      Returns the name of the builder.
      Angegeben von:
      getBuilderName in Schnittstelle BuilderData
      Gibt zurück:
      the name of the builder
    • setBuilderName

      public void setBuilderName(String builderName)
      Sets a name for the builder. This name is available during the build process (through the ComponentBuilderData object). 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:
      isAutoRelease in Schnittstelle BuilderData
      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 invoking Builder.release(BuilderData) on the Builder responsible. 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

      public Map<String,Object> getProperties()
      Returns a map with additional properties for the builder operation. This implementation either returns the map set by setProperties(Map) or the one that was created automatically when
      Ungültige Referenz
      #addProperty()
      was called. Result may also be null if no properties have been set.
      Angegeben von:
      getProperties in Schnittstelle BuilderData
      Gibt zurück:
      a map with additional properties for the builder operation
      Siehe auch:
    • setProperties

      public void setProperties(Map<String,Object> props)
      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

      public void addProperty(String key, Object value)
      Adds an additional property for the builder operation. This method can be used to populate the map with additional properties that is returned by getProperties(). 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 property
      value - the value of the property