Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-469

Provide implementations of certain layout facets that read from a "Xxx.layout.properties" file

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • core-1.2.0
    • core-1.3.0
    • Core
    • None

    Description

      Specifically, the two layout facets to capture are MemberOrderFacet and MemberGroupLayoutFacet (see ISIS-468).

      The idea of this ticket is that information is pulled in from a separate file, sitting alongside the domain class. This makes it easier to see this layout information in one place.

      And, in conjunction with ISIS-470, this would allow dynamic updates to the layout, without a recompile/redeploy.

      This ticket defines the metadata informatino in an Xxx.layout.properties file. (Note that ISIS-475 takes this idea further and specifies a JSON file. This latter idea is probably to be preferred in most cases).

      The format of the property file (Xxx.layout.properties) is:

      ###########################################

      1. MemberGroupLayout
        ###########################################

      memberGroupLayout.columnSpans=3,4,0,5
      memberGroupLayout.left=General
      memberGroupLayout.middle=Detail
      memberGroupLayout.right=

      ###########################################

      1. MemberOrder
        ###########################################
      1. Properties
        memberOrder.description.sequence=1
        memberOrder.category.sequence=2
        memberOrder.complete.sequence=3
      1. Properties (Detail)
        memberOrder.dueBy.name=Detail
        memberOrder.cost.name=Detail
        memberOrder.notes.name=Detail
        memberOrder.attachment.name=Detail

      memberOrder.dueBy.sequence=1
      memberOrder.cost.sequence=2
      memberOrder.notes.sequence=3
      memberOrder.attachment.sequence=4

      1. Properties (Misc)
        memberOrder.versionSequence.name=Misc
        memberOrder.versionSequence.sequence=99

      #Collections
      memberOrder.dependencies.sequence=1
      memberOrder.similarItems.sequence=2

      #Actions (freestanding)
      memberOrder.delete.sequence=1
      memberOrder.duplicate.sequence=2

      #Actions (associated with properties)
      memberOrder.completed.name=complete
      memberOrder.notYetCompleted.name=complete

      memberOrder.completed.sequence=1
      memberOrder.notYetCompleted.sequence=2

      memberOrder.updateCost.name=cost

      #Actions (associated with collections)
      memberOrder.add.name=dependencies

      memberOrder.remove.name=dependencies

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: