org.drools.ide.common.client.factconstraints.helper
Class CustomFormsContainer

java.lang.Object
  extended by org.drools.ide.common.client.factconstraints.helper.CustomFormsContainer

public class CustomFormsContainer
extends Object


Constructor Summary
CustomFormsContainer(Collection<CustomFormConfiguration> customFormsConfigs)
           
CustomFormsContainer(CustomFormConfiguration[] customFormsConfigs)
           
 
Method Summary
 boolean containsCustomFormFor(String factType, String fieldName)
           
 CustomFormConfiguration getCustomForm(String factType, String fieldName)
           
 List<CustomFormConfiguration> getCustomForms()
           
static CustomFormConfiguration getEmptyCustomFormConfiguration()
           
 void putCustomForm(CustomFormConfiguration cfc)
          If cfc.getCustomFormURL() is empty, the CustomFormConfiguration is removed.
 void removeCustomForm(CustomFormConfiguration cfc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFormsContainer

public CustomFormsContainer(CustomFormConfiguration[] customFormsConfigs)

CustomFormsContainer

public CustomFormsContainer(Collection<CustomFormConfiguration> customFormsConfigs)
Method Detail

removeCustomForm

public void removeCustomForm(CustomFormConfiguration cfc)

putCustomForm

public final void putCustomForm(CustomFormConfiguration cfc)
If cfc.getCustomFormURL() is empty, the CustomFormConfiguration is removed.

Parameters:
cfc -

getCustomForm

public CustomFormConfiguration getCustomForm(String factType,
                                             String fieldName)

getCustomForms

public List<CustomFormConfiguration> getCustomForms()

containsCustomFormFor

public boolean containsCustomFormFor(String factType,
                                     String fieldName)

getEmptyCustomFormConfiguration

public static CustomFormConfiguration getEmptyCustomFormConfiguration()


Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.