You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2014/04/14 22:26:16 UTC

[jira] [Created] (PIVOT-943) Create POJOPrompt as a quick way to input values for a Plain-Old Java Object

Roger Whitcomb created PIVOT-943:
------------------------------------

             Summary: Create POJOPrompt as a quick way to input values for a Plain-Old Java Object
                 Key: PIVOT-943
                 URL: https://issues.apache.org/jira/browse/PIVOT-943
             Project: Pivot
          Issue Type: New Feature
          Components: wtk, wtk-terra
    Affects Versions: 2.1
         Environment: All
            Reporter: Roger Whitcomb
            Assignee: Roger Whitcomb
            Priority: Minor
             Fix For: 2.1


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)