Author: bobtarling
Date: 2011-02-13 10:06:03-0800
New Revision: 19033

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/ScrollList.java

Log:
Get rid of constructors only needed for old panel implementation

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/ScrollList.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/ScrollList.java?view=diff&pathrev=19033&r1=19032&r2=19033
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/ScrollList.java        
(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/ScrollList.java        
2011-02-13 10:06:03-0800
@@ -42,7 +42,6 @@
 import java.awt.event.KeyEvent;
 import java.awt.event.KeyListener;
 
-import javax.swing.JList;
 import javax.swing.JScrollPane;
 import javax.swing.ListModel;
 import javax.swing.ScrollPaneConstants;
@@ -69,15 +68,6 @@
      * Builds a JList from a given list model and wraps
      * in a scrollable view.
      * @param listModel The model from which to build the list
-     */
-    public ScrollList(ListModel listModel) {
-        this(listModel, true, true);
-    }
-
-    /**
-     * Builds a JList from a given list model and wraps
-     * in a scrollable view.
-     * @param listModel The model from which to build the list
      * @param visibleRowCount an integer specifying the preferred number of
      * rows to display without requiring scrolling
      */
@@ -90,20 +80,6 @@
     }
 
     /**
-     * Builds a JList from a given list model and wraps
-     * in a scrollable view.
-     * @param listModel The model from which to build the list
-     * @param showIcon show an icon with elements in the list
-     * @param showPath show containment path for elements in list
-     */
-    public ScrollList(ListModel listModel, boolean showIcon, boolean showPath) 
{
-        setHorizontalScrollBarPolicy(
-                ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
-        list = new UMLLinkedList(listModel, showIcon, showPath);
-        setViewportView(list);
-    }
-    
-    /**
      * Examine key event to scroll left or right depending on key press
      * @param e the key event to examine
      */

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2703706

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to