svn commit: r17492 - trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-11-19 11:45:06-0800
New Revision: 17492

Modified:
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/UIFactory.java
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java

Log:
Allow lists in the panels to be shrunk and expanded

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/UIFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/UIFactory.java?view=diff&pathrev=17492&r1=17491&r2=17492
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/UIFactory.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/UIFactory.java	2009-11-19 11:45:06-0800
@@ -36,6 +36,6 @@
      * @return A Panel to be added to the main panel
      * @throws Exception If something goes wrong
      */
-    public abstract JPanel createGUI(Object target) throws Exception;
+    public abstract JPanel createGUI(Object target, JPanel panel) throws Exception;
 
 }
\ No newline at end of file

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java?view=diff&pathrev=17492&r1=17491&r2=17492
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java	2009-11-19 11:45:06-0800
@@ -55,7 +55,6 @@
          * we have to set the size of the buttonpanel, 
          * otherwise the layout will give it a lot of space 
          * */
-        setButtonPanelSize(18);
     }
 
     /**
@@ -88,6 +87,7 @@
         // we don't do anything
         // TODO: We need to support multiple selection.
         // See issue 2552: http://argouml.tigris.org/issues/show_bug.cgi?id=2552        
+        removeAll();
         if (target == null){
             if (currentPanel != null){
                 this.getTitleLabel().setText("");
@@ -105,7 +105,7 @@
             // TODO: This references the concrete factory
             // We need a factories factory
             UIFactory factory = SwingUIFactory.getInstance();
-            currentPanel = factory.createGUI(target);
+            currentPanel = factory.createGUI(target, this);
             this.getTitleLabel().setText(getPanelTitle(target));
             this.add(currentPanel);
         } catch (Exception e) {

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

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.