1
votes

Does there exist a Flex view component that you could just pass it a custom object with all public fields/properties that it could reflect over and produce a basic UI view using flex components.

Is it possible to use something like the Spark DataGrid with one item laid out vertically.

It would only have to support:

  • TextField view of primitives (String, Number, Boolean)
  • Sub view for Objects (recursively reflect sub objects)
  • List component to view Arrays/Dictionaries

For example if you had an object like this:

public class CustomerData {

    public var customerName:String;
    public var addresses:Vector.<Address>;  

}

public class Address {
   public var street:String;
   public var houseNumber:Number;
   public var zipcode : String;
}
3
I don't really understand what you're asking for. Do you want something that will generate your UI dynamically at runtime based on some arbitrary object you send in? - JeffryHouser
I want a quick and dirty way to do like a "toString()" on an object but have it map to Flex user interface. - Dougnukem
But, toString has nothing to do w/ a user interface. I think I still don't get it. - JeffryHouser
I want a UI visualization of any custom defined Object, so we can get a skeletal view of the data we're modeling as we build up those data models. - Dougnukem
I'll stop asking for clarification now. Maybe someone else will understand better than I. - JeffryHouser

3 Answers

2
votes

I think you might be looking for something like Kap Inspect: http://lab.kapit.fr/display/kapinspect/Kap+Inspect

0
votes

If you just want to see what's what in your application, look at FlexSpy.

0
votes