Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-943

Create POJOPrompt as a quick way to input values for a Plain-Old Java Object

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: wtk, wtk-terra
    • Labels:
      None
    • Environment:
      All

      Description

      Often a POJO is used to hold data in a Java program. And a Pivot Prompt can be used to input values. This proposed class is an extension of a plain Prompt that iterates through the accessible fields and getter/setter methods of a POJO and generates a dynamic Prompt to display and set the values of the given object. This is a convenience class that encapsulates a lot of work involved in automatically generating such an input form, including validators.

      I have done a similar thing in our application, and it can be quite effective for rapidly developing or prototyping an application.

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Lee Whitcomb
              Reporter:
              rwhitcomb Roger Lee Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: