Re: Data Views

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Jun 18 2004 - 13:33:33 EDT

  • Next message: Patrick Whalen: "Flash & Cayenne"

    As promised, here is a DataViews example showing how to build a simple
    Swing app, configuring combo boxes and tables using DataViews. An app
    is a standard Swing MVC application without using any third party MVC
    frameworks. While it uses JGoodies forms and plastic look, this is
    totally irrelevant for the purpose of DataViews demo. I just needed
    decent layout tools. See the README.txt file in the download for
    details.

    http://objectstyle.org/downloads/cayenne/demos/HRDataView.tar.gz

    README.txt mentions a bug that I fixed in DVModeler. In short, if you
    want to use "display format" feature, you'll have to wait till
    tomorrow's nightly build, or edit XML file by hand as current DVModeler
    would corrupt display format settings.

    Also, this was my first experience with data views, and I should say I
    am impressed! That makes "classic" Swing development with DataObjects
    so much easier and consistent.

    Andrus

    On Jun 16, 2004, at 8:56 AM, sabiha wrote:
    > Hi,
    >
    > I have a swing application working with Cayenne, and by now I used
    > swing components, like JTree, and it’s easy to use it with Cayenne
    > model, but now I want to use table and I read about Cayenne Data Views
    > but can’t figure out how to make it working with that. I saw example
    > in User guide but it didn’t help me a lot. I would appreciate if
    > someone could briefly just explain me what I need to do to simply
    > present attributes of one object in table.
    >
    >  
    >
    > Thanks a lot
    >
    >  
    > Sabiha



    This archive was generated by hypermail 2.0.0 : Fri Jun 18 2004 - 13:33:51 EDT