Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-beta-4
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Environment:
      Win 2K
      JDK 1.4.1
      Eclipse 3.0.0M4 (for SWT)
      Pico 1.0 beta 3
    • Number of attachments :
      2

      Description

      Hi,

      I have (re)created from scratch a new version of PicoGui. My goal was to provide the same user experience on both Swing and SWT : I have developped a same sample application in Swing and in SWT.

      The sample application provides the following :

      • a "tree-view"/"property panel" of a PicoContainer.
      • the tree view is able to dive into PicoContainer hierachy. It displays child container and object instances in the container.
      • the property panel enables the edition of writable property of object instances inside a container. I put a restriction on it : the type of the property must have a PropertyEditor to be editable.

      In the future, it will be pretty easy to add some action like : add child, remove child, add instance, remove instance. I didn't do it for the moment as this submission is a proof of concept.

      I will join a jar that contains both source and binaries.

      To run the sample application on Swing, Pico jar is required on the classpath.
      Ex : java -cp pico-xxx.jar;gui.jar test.org.picocontainer.gui.swing.TreePanelTest

      To run the sample application on SWT, boot.jar, runtime.jar, jface.jar and swt.jar are required on classpath. The SWT JNI library is alos required :
      java -Djava.library.path=/place/to/jni/libs -cp boot.jar;runtime.jar;jface.jar;swt.jar;gui.jar test.org.picocontainer.gui.swt.TreePanelTest

      Laurent.

        Activity

        Hide
        Laurent Etiemble added a comment -

        The source and binaries.

        Show
        Laurent Etiemble added a comment - The source and binaries.
        Laurent Etiemble made changes -
        Field Original Value New Value
        Attachment gui.jar [ 10991 ]
        Hide
        Aslak Hellesøy added a comment -

        GREAT! I'm looking forward to trying it out!

        Show
        Aslak Hellesøy added a comment - GREAT! I'm looking forward to trying it out!
        Aslak Hellesøy made changes -
        Status Unassigned [ 1 ] Assigned [ 2 ]
        Assignee Aslak Hellesoy [ rinkrank ]
        Hide
        Laurent Etiemble added a comment -

        Hi,

        As I was playing with Piccolo (http://www.cs.umd.edu/hcil/jazz/), I couldn't resist to add some Piccolo stuff to the GUI.

        To run the sample application with Piccolo, Pico and Piccolo jars are required on the classpath.

        Ex : java -cp pico-xxx.jar;piccolo.jar;piccolox.jar;gui.jar test.org.picocontainer.gui.piccolo.ViewPanelTest

        Laurent.

        Show
        Laurent Etiemble added a comment - Hi, As I was playing with Piccolo ( http://www.cs.umd.edu/hcil/jazz/ ), I couldn't resist to add some Piccolo stuff to the GUI. To run the sample application with Piccolo, Pico and Piccolo jars are required on the classpath. Ex : java -cp pico-xxx.jar;piccolo.jar;piccolox.jar;gui.jar test.org.picocontainer.gui.piccolo.ViewPanelTest Laurent.
        Hide
        Laurent Etiemble added a comment -

        To make it usable on both Windows/Linux/Mac, the user interaction is pretty weird (maybe not) :

        • click to select a node. The node will have its color changed
        • double-click to zoom/unzoom a node. The view will be centered on node.

        Enjoy.

        Show
        Laurent Etiemble added a comment - To make it usable on both Windows/Linux/Mac, the user interaction is pretty weird (maybe not) : click to select a node. The node will have its color changed double-click to zoom/unzoom a node. The view will be centered on node. Enjoy.
        Laurent Etiemble made changes -
        Attachment gui.jar [ 11057 ]
        Aslak Hellesøy made changes -
        Component/s picoextras-swing [ 10567 ]
        Project NanoContainer [ 10121 ] PicoContainer [ 10120 ]
        Fix Version/s 1.0-beta-4 [ 10412 ]
        Component/s picoextras-swt [ 10568 ]
        Key NANO-31 PICO-101
        Hide
        Aslak Hellesøy added a comment -

        Applied with some quite important modifications.

        The submitted patch operated on instantiated objects. Refactored to work on classes. This way properties can be set before the container instantiates the components. Needs more work though.

        Show
        Aslak Hellesøy added a comment - Applied with some quite important modifications. The submitted patch operated on instantiated objects. Refactored to work on classes. This way properties can be set before the container instantiates the components. Needs more work though.
        Aslak Hellesøy made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Aslak Hellesøy
            Reporter:
            Laurent Etiemble
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: