Class SplibRecordUtil

java.lang.Object
jp.ecuacion.splib.web.util.SplibRecordUtil

@Component("recUtil") public class SplibRecordUtil extends Object
Provides utility methods on records and fields.
  • Constructor Details

    • SplibRecordUtil

      public SplibRecordUtil()
  • Method Details

    • getHtmlItem

      public HtmlItem getHtmlItem(SplibGeneralForm form, String rootRecordName, String itemPropertyPath)
      Returns HtmlItem from SplibGeneralForm, rootRecordId and fieldId.
      Parameters:
      form - form
      rootRecordName - rootRecordName
      itemPropertyPath - propertyPath
      Returns:
      HtmlItem
    • getHtmlItem

      public HtmlItem getHtmlItem(SplibGeneralForm[] forms, String rootRecordId, String itemId)
      Returns HtmlItem from SplibGeneralForm, rootRecordId and fieldId.

      Actually more accurate code is needed in the future but for now just 0th form of the forms is used.

      Parameters:
      forms - forms
      rootRecordId - rootRecordId
      itemId - itemId
      Returns:
      HtmlItem
    • getHtmlItem

      public HtmlItem getHtmlItem(HtmlItem[] htmlItems, String rootRecordName, String itemPropertyPath)
      Returns HtmlItem from HtmlItem[] and fieldId.
      Parameters:
      htmlItems - htmlItems
      itemPropertyPath - itemPropertyPath
      Returns:
      HtmlItem