@Deprecated public class FieldBridge extends Object
Constructor and Description |
---|
FieldBridge()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static List<Field> |
constructContainerField(CollectionDefinitionI collectionDefinition,
String parents,
BusinessObject o,
boolean hideAdd,
int numberOfColumns,
String collName,
List<Field> collFields)
Deprecated.
This method handles setting up a container field not including the add fields
|
static BusinessObjectDictionaryService |
getBusinessObjectDictionaryService()
Deprecated.
|
static DataDictionaryService |
getDataDictionaryService()
Deprecated.
|
static MaintenanceDocumentDictionaryService |
getMaintenanceDocumentDictionaryService()
Deprecated.
|
static List<Field> |
getNewFormFields(CollectionDefinitionI collectionDefinition,
BusinessObject o,
Maintainable m,
List<String> displayedFieldNames,
Set<String> conditionallyRequiredMaintenanceFields,
StringBuffer containerRowErrorKey,
String parents,
boolean hideAdd,
int numberOfColumns)
Deprecated.
This method will return a new form for adding in a BO for a collection.
|
static List<Field> |
getNewFormFields(MaintainableCollectionDefinition collectionDefinition,
BusinessObject o,
Maintainable m,
List<String> displayedFieldNames,
Set<String> conditionallyRequiredMaintenanceFields,
StringBuffer containerRowErrorKey,
int numberOfColumns)
Deprecated.
Call getNewFormFields with no parents.
|
static PersistenceStructureService |
getPersistenceStructureService()
Deprecated.
|
protected static boolean |
isMaintenanceFieldLevelHelpDisabled(Maintainable m,
MaintainableFieldDefinition fieldDefinition)
Deprecated.
Determines whether field level help is disabled for the field corresponding to the dataObjectClass and attribute name
If this value is true and
isMaintenanceFieldLevelHelpEnabled(Maintainable, MaintainableFieldDefinition) returns false,
then the field level help will not be rendered. |
protected static boolean |
isMaintenanceFieldLevelHelpEnabled(Maintainable m,
MaintainableFieldDefinition fieldDefinition)
Deprecated.
Determines whether field level help is enabled for the field corresponding to the dataObjectClass and attribute name
If this value is true, then the field level help will be enabled.
|
static void |
populateFieldFromBusinessObject(Field field,
BusinessObject bo)
Deprecated.
Uses reflection to populate the rows of the inquiry from the business
object value.
|
static void |
setupField(Field field,
FieldDefinitionI definition,
Set<String> conditionallyRequiredMaintenanceFields)
Deprecated.
Sets additional properties for MaintainableField(s)
|
static Field |
toField(FieldDefinition d,
BusinessObject o,
Section s)
Deprecated.
Create a Field for display on an Inquiry screen.
|
static Field |
toField(MaintainableItemDefinition id,
MaintainableSectionDefinition sd,
BusinessObject o,
Maintainable m,
Section s,
List<String> displayedFieldNames,
Set<String> conditionallyRequiredMaintenanceFields)
Deprecated.
This method creates a Field for display on a Maintenance Document.
|
public FieldBridge()
public static final void setupField(Field field, FieldDefinitionI definition, Set<String> conditionallyRequiredMaintenanceFields)
field
- The field to populate.definition
- The DD specification for the field.public static final void populateFieldFromBusinessObject(Field field, BusinessObject bo)
field
- The Field to populate.bo
- The BusinessObject from which the Field will be popualated.protected static boolean isMaintenanceFieldLevelHelpEnabled(Maintainable m, MaintainableFieldDefinition fieldDefinition)
isMaintenanceFieldLevelHelpDisabled(Maintainable, MaintainableFieldDefinition)
and the system-wide parameter setting. Note that if a field is read-only, that may cause field-level help to not be rendered.businessObjectClass
- the looked up classattributeName
- the attribute for the fieldprotected static boolean isMaintenanceFieldLevelHelpDisabled(Maintainable m, MaintainableFieldDefinition fieldDefinition)
isMaintenanceFieldLevelHelpEnabled(Maintainable, MaintainableFieldDefinition)
returns false,
then the field level help will not be rendered. If both this and isMaintenanceFieldLevelHelpEnabled(Maintainable, MaintainableFieldDefinition)
return false,
then the system-wide setting will determine whether field level help is enabled. Note that if a field is read-only, that may cause
field-level help to not be rendered.businessObjectClass
- the looked up classattributeName
- the attribute for the fieldpublic static final Field toField(MaintainableItemDefinition id, MaintainableSectionDefinition sd, BusinessObject o, Maintainable m, Section s, List<String> displayedFieldNames, Set<String> conditionallyRequiredMaintenanceFields) throws InstantiationException, IllegalAccessException
id
- The DD definition for the Field (can be a Collection).sd
- The DD definition for the Section in which the field will be displayed.o
- The BusinessObject will be populated from this BO.m
- s
- The Section in which the Field will be displayed.autoFillDefaultValues
- Should default values be filled in?autoFillBlankRequiredValues
- Should values be filled in for fields that are required but which were left blank when submitting the form from the UI?displayedFieldNames
- What fields are being displayed on the form in the UI?InstantiationException
IllegalAccessException
public static final List<Field> getNewFormFields(CollectionDefinitionI collectionDefinition, BusinessObject o, Maintainable m, List<String> displayedFieldNames, Set<String> conditionallyRequiredMaintenanceFields, StringBuffer containerRowErrorKey, String parents, boolean hideAdd, int numberOfColumns)
collectionDefinition
- The DD definition for the Collection.o
- The BusinessObject form which the new Fields will be populated.document
- MaintenanceDocument instance which we ar building fields form
- displayedFieldNames
- What Fields are being displayed on the form in the UI?containerRowErrorKey
- The error key for the Container/Collection used for displaying error messages.parents
- hideAdd
- Should the add line be hidden when displaying this Collection/Container in the UI?numberOfColumns
- How many columns the Fields in the Collection will be split into when displaying them in the UI.public static List<Field> constructContainerField(CollectionDefinitionI collectionDefinition, String parents, BusinessObject o, boolean hideAdd, int numberOfColumns, String collName, List<Field> collFields)
collectionDefinition
- parents
- o
- hideAdd
- numberOfColumns
- collName
- collFields
- public static final List<Field> getNewFormFields(MaintainableCollectionDefinition collectionDefinition, BusinessObject o, Maintainable m, List<String> displayedFieldNames, Set<String> conditionallyRequiredMaintenanceFields, StringBuffer containerRowErrorKey, int numberOfColumns)
#getNewFormFields(org.kuali.rice.kns.datadictionary.CollectionDefinitionI, BusinessObject, Maintainable, List, StringBuffer, String, boolean, int)
public static Field toField(FieldDefinition d, BusinessObject o, Section s)
d
- The DD definition for the Field.o
- The BusinessObject from which the Field will be populated.s
- The Section in which the Field will be displayed.public static DataDictionaryService getDataDictionaryService()
public static PersistenceStructureService getPersistenceStructureService()
public static BusinessObjectDictionaryService getBusinessObjectDictionaryService()
public static MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.