GroovyFX
  1. GroovyFX
  2. GFX-25

Add a catch-all bean node to builder

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.1
    • Fix Version/s: 0.4
    • Labels:
      None
    • Number of attachments :
      0

      Description

      SwingBuilder has 3 special nodes called: bean, container and widget (more info at http://griffon.codehaus.org/guide/0.9.5-rc1/guide/7.%20Views.html#7.2.4%20Bean). It would be great if SGB would provide bean() (container and widget make no sense in JavaFX because every node may have children nodes like effects and transitions)

        Activity

        Hide
        Danno Ferrin added a comment -

        What about the node and nodes element?

        Show
        Danno Ferrin added a comment - What about the node and nodes element?
        Hide
        Andres Almiray added a comment -

        The node() node won't work for all cases as it only allows subclasses of Node to be set as values

         registerFactory("node", new CustomNodeFactory(Node.class, false));
        

        bean() allows any class to be used as value.

        Show
        Andres Almiray added a comment - The node() node won't work for all cases as it only allows subclasses of Node to be set as values registerFactory( "node" , new CustomNodeFactory(Node.class, false )); bean() allows any class to be used as value.

          People

          • Assignee:
            Dean Iverson
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: