Revision: 911
Author: allain.lalonde
Date: Wed Dec  2 11:29:54 2009
Log: Removing setLayout method. Effectively making the layout final.
http://code.google.com/p/piccolo2d/source/detail?r=911

Modified:
   
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/swing/SwingLayoutNode.java

=======================================
---  
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/swing/SwingLayoutNode.java
        
Tue Dec  1 14:24:07 2009
+++  
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/swing/SwingLayoutNode.java
        
Wed Dec  2 11:29:54 2009
@@ -131,23 +131,7 @@
       */
      public Container getContainer() {
          return container;
-    }
-
-    /**
-     * Sets the layout manager.
-     * <p>
-     * It's recommended that you avoid using this method, it's a can of  
worms.
-     * Like Swing, if you call this after adding nodes, the results may be
-     * unpredictable. You'll also have problems if the constraints that you
-     * specified to addChild aren't compatible with the new layout  
manager, or
-     * if the new layout manager requires constraints.
-     *
-     * @param layoutManager layout manager to use when laying out nodes
-     */
-    public void setLayout(final LayoutManager layoutManager) {
-        container.setLayout(layoutManager);
-        updateContainerLayout();
-    }
+    }

      /**
       * Adds a child at the specified index. Like Swing, bad things can  
happen if

-- 
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to