Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-7957

Introduce layout options nested component class for item layout properties

    Details

    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      Currently in order for layout properties to be specified on group items they must be added to component base. This is confusing (and bad design) since they properties only apply when that layout manager is applied.

      Instead we can introduce a nested property of ComponentBase that will be of type LayoutItemOptions. The concrete subclass will be created by calling the layout manager getLayoutItemOptions method for the layout manager defined on a group. This will happen during the bean post processing.

      The concrete subclass will be:

      GridLayoutItemOptions
      BoxLayoutItemOptions
      TableLayoutItemOptions
      StackedLayoutItemOptions

      Properties will then be specified in the XML with layoutItemOptions.colSpan (for nested) or by the nested bean (in which case the correct parent must be selected):

      <property name="layoutItemOptions">
      <bean parent="TableLayoutItemOptions">
      <property name="colSpan" value="2"/>
      </bean>
      </property>

        Attachments

          Issue Links

            Activity

            Hide
            jcoltrin Jessica Coltrin (Inactive) added a comment -

            moving non-blocker and non-critical m4 Jiras to 2.2-backlog

            Show
            jcoltrin Jessica Coltrin (Inactive) added a comment - moving non-blocker and non-critical m4 Jiras to 2.2-backlog
            Hide
            jkneal Jerry Neal (Inactive) added a comment -

            Not sure if this is the best direction

            Show
            jkneal Jerry Neal (Inactive) added a comment - Not sure if this is the best direction

              People

              • Assignee:
                Unassigned
                Reporter:
                jkneal Jerry Neal (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: