]> source.dussan.org Git - vaadin-framework.git/commitdiff
refactored feature browsers layouts
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 28 May 2007 08:36:36 +0000 (08:36 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 28 May 2007 08:36:36 +0000 (08:36 +0000)
svn changeset:1502/svn branch:trunk

src/com/itmill/toolkit/demo/features/FeatureBrowser.java
src/com/itmill/toolkit/demo/features/FeaturesApplication.java

index 10cfca900489e48a82af0dd7cfef48b9fd624342..de29dc9522b1bfa3b25c0e2de8e4ef1d9f3c96d1 100644 (file)
@@ -37,7 +37,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 import com.itmill.toolkit.ui.Button.ClickListener;
 
 public class FeatureBrowser extends CustomComponent implements
-               Property.ValueChangeListener, ClickListener {
+               Property.ValueChangeListener, ClickListener, Layout {
 
        private Tree features;
 
@@ -252,4 +252,54 @@ public class FeatureBrowser extends CustomComponent implements
                        properties.setVisible(((Boolean) propertiesSelect.getValue())
                                        .booleanValue());
        }
+
+       public void addComponent(Component c) {
+               // TODO Auto-generated method stub
+               
+       }
+
+       public void addListener(ComponentAttachListener listener) {
+               // TODO Auto-generated method stub
+               
+       }
+
+       public void addListener(ComponentDetachListener listener) {
+               // TODO Auto-generated method stub
+               
+       }
+
+       public Iterator getComponentIterator() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       public void moveComponentsFrom(ComponentContainer source) {
+               // TODO Auto-generated method stub
+               
+       }
+
+       public void removeAllComponents() {
+               // TODO Auto-generated method stub
+               
+       }
+
+       public void removeComponent(Component c) {
+               // TODO Auto-generated method stub
+               
+       }
+
+       public void removeListener(ComponentAttachListener listener) {
+               // TODO Auto-generated method stub
+               
+       }
+
+       public void removeListener(ComponentDetachListener listener) {
+               // TODO Auto-generated method stub
+               
+       }
+
+       public void replaceComponent(Component oldComponent, Component newComponent) {
+               // TODO Auto-generated method stub
+               
+       }
 }
index 070cf9ef4ff871f62c4e5b68f976733726b4356d..1c833e687f769a3b1628ee03c784fc19c9ce2ce9 100644 (file)
@@ -38,7 +38,8 @@ public class FeaturesApplication extends com.itmill.toolkit.Application {
                setUser(new Long(System.currentTimeMillis()).toString());
                Window main = new Window("IT Mill Toolkit Features Tour");
                setMainWindow(main);
-               main.addComponent(new FeatureBrowser());
+               
+               main.setLayout(new FeatureBrowser());
        }
 
        /**