Revision: 1662
          http://svn.sourceforge.net/spring-rich-c/?rev=1662&view=rev
Author:   kevinstembridge
Date:     2007-01-12 14:02:47 -0800 (Fri, 12 Jan 2007)

Log Message:
-----------
Added javadoc

Modified Paths:
--------------
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/support/SimpleGroupContainerPopulator.java

Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/support/SimpleGroupContainerPopulator.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/support/SimpleGroupContainerPopulator.java
     2007-01-12 21:57:38 UTC (rev 1661)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/support/SimpleGroupContainerPopulator.java
     2007-01-12 22:02:47 UTC (rev 1662)
@@ -25,22 +25,45 @@
 import javax.swing.SwingConstants;
 
 import org.springframework.richclient.command.GroupContainerPopulator;
+import org.springframework.richclient.util.Assert;
 
+/**
+ * A default implementation of the [EMAIL PROTECTED] GroupContainerPopulator} 
interface.
+ *
+ */
 public class SimpleGroupContainerPopulator implements GroupContainerPopulator {
-    private Container container;
+    
+    private final Container container;
 
+    /**
+     * Creates a new [EMAIL PROTECTED] SimpleGroupContainerPopulator} that 
will populate the given container.
+     *
+     * @param container The container to be populated. Must not be null.
+     * 
+     * @throws IllegalArgumentException if [EMAIL PROTECTED] container} is 
null.
+     */
     public SimpleGroupContainerPopulator(Container container) {
+        Assert.required(container, "container");
         this.container = container;
     }
 
+    /**
+     * [EMAIL PROTECTED]
+     */
     public Container getContainer() {
         return container;
     }
 
+    /**
+     * [EMAIL PROTECTED]
+     */
     public void add(Component c) {
         container.add(c);
     }
 
+    /**
+     * [EMAIL PROTECTED]
+     */
     public void addSeparator() {
         if (container instanceof JMenu) {
             ((JMenu)container).addSeparator();
@@ -56,7 +79,11 @@
         }
     }
 
+    /**
+     * Default implementation, no action is performed.
+     */
     public void onPopulated() {
-
+        //do nothing
     }
-}
\ No newline at end of file
+    
+}


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to