svn commit: r17488 - trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-11-18 04:14:20-0800
New Revision: 17488

Modified:
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/ListFactory.java
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java

Log:
Wrap ScrollList instances inside an ExpandableRowSelector

The intention is the JList that take up a lot of screen estate become shrinkable and expandable so the users can show more of what they consider important

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/ListFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/ListFactory.java?view=diff&pathrev=17488&r1=17487&r2=17488
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/ListFactory.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/ListFactory.java	2009-11-18 04:14:20-0800
@@ -43,7 +43,7 @@
     public JComponent createComponent(
             final Object modelElement,
             final String propName) {
-        ScrollList list = null;
+        JComponent list = null;
         UMLModelElementListModel model = null;
         
         Object metaType = modelElement.getClass();
@@ -202,7 +202,7 @@
             // preferred constructor. Eventually all lists should be built
             // this way.
             model.setTarget(modelElement);
-            list = new ScrollList(model);
+            list = new UMLExpandableRowSelector(model);
         }
         
         return list;

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java?view=diff&pathrev=17488&r1=17487&r2=17488
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java	2009-11-18 04:14:20-0800
@@ -31,7 +31,6 @@
 import javax.swing.JComboBox;
 import javax.swing.JComponent;
 import javax.swing.JLabel;
-import javax.swing.JList;
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.JTextArea;
@@ -269,6 +268,7 @@
                     final List<Action> actions = ((UMLModelElementListModel) m).getActions();
                     final ToolBarFactory tbf = new ToolBarFactory(actions);
                     final JToolBar tb = tbf.createToolBar();
+                    tb.setBackground(Color.green);
                     panel.add(tb);
                 }
             }

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

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.