org.exoplatform.services.workflow.impl.bonita
Class AutomaticFormBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by org.exoplatform.services.workflow.impl.bonita.AutomaticFormBundle

public class AutomaticFormBundle
extends java.util.ResourceBundle

When forms are automatically generated, it is also needed to provide a bundle so that eXo Portlets can display information. This class is a bundle that provides convenient methods to handle components to be displayed. Created by Bull R&D

Author:
Brice Revenant, Le Gall Rodrigue Feb 10, 2006

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
java.util.ResourceBundle.Control
 
Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
AutomaticFormBundle(java.lang.String activity)
          Creates a new Resource Bundle for automatically generated forms
 
Method Summary
 void addButton(java.util.Map<java.lang.String,java.lang.Object> attributes)
          Adds a button to the bundle so that it can be displayed in forms
 void addDefaultButton()
          Adds a button to the bundle corresponding to the one shown in start panels.
 void addVariable(java.util.Map<java.lang.String,java.lang.Object> attributes)
          Adds a variable to the bundle so that it can be displayed in forms
 java.util.Enumeration<java.lang.String> getKeys()
           
protected  java.lang.Object handleGetObject(java.lang.String key)
           
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticFormBundle

public AutomaticFormBundle(java.lang.String activity)
Creates a new Resource Bundle for automatically generated forms

Parameters:
activity - name of the state corresponding to the form
Method Detail

addVariable

public void addVariable(java.util.Map<java.lang.String,java.lang.Object> attributes)
Adds a variable to the bundle so that it can be displayed in forms

Parameters:
attributes - describes the variable. These are the same attributes as those used in eXo, except a new one entitled possible-values that contains a Collection of possible values in case the variable is multivalued.

addButton

public void addButton(java.util.Map<java.lang.String,java.lang.Object> attributes)
Adds a button to the bundle so that it can be displayed in forms

Parameters:
attributes - describes the button. These are the same attributes as those used in eXo.

addDefaultButton

public void addDefaultButton()
Adds a button to the bundle corresponding to the one shown in start panels. This method has been added as the button requires a specific key.


getKeys

public java.util.Enumeration<java.lang.String> getKeys()
Specified by:
getKeys in class java.util.ResourceBundle

handleGetObject

protected java.lang.Object handleGetObject(java.lang.String key)
Specified by:
handleGetObject in class java.util.ResourceBundle


Copyright © 2013 eXo Platform SAS. All Rights Reserved.