package com.akjava.gwt.lib.client.widget;

import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.TabLayoutPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class PanelUtils {

	public VerticalPanel createScrolledTabInVerticalPanel(TabLayoutPanel tab,String label){
		ScrollPanel scroll=new ScrollPanel();
		scroll.setSize("98%", "98%");
		tab.add(scroll,label);
		VerticalPanel panel=new VerticalPanel();
		scroll.add(panel);
		return panel;
	}
	
	public HorizontalPanel createScrolledTabInHorizontalPanel(TabLayoutPanel tab,String label){
		ScrollPanel scroll=new ScrollPanel();
		scroll.setSize("98%", "98%");
		tab.add(scroll,label);
		HorizontalPanel panel=new HorizontalPanel();
		scroll.add(panel);
		return panel;
	}
}

@@ -85,32 +85,77 @@
 rizontalPanel;%0D%0A
+import com.google.gwt.user.client.ui.Panel;%0D%0A
 import com.googl
@@ -181,32 +181,32 @@
 i.ScrollPanel;%0D%0A
-
 import com.googl
@@ -335,16 +335,23 @@
 %09public 
+static 
 Vertical
@@ -614,24 +614,24 @@
 %0A%09%7D%0D%0A%09%0D%0A
-
 %09public 
 Horizont
@@ -622,16 +622,516 @@
 %09public 
+static VerticalPanel createScrolledVerticalPanel(Panel parent)%7B%0D%0A%09%09ScrollPanel scroll=new ScrollPanel();%0D%0A%09%09%0D%0A%09%09parent.add(scroll);%0D%0A%09%09VerticalPanel panel=new VerticalPanel();%0D%0A%09%09scroll.add(panel);%0D%0A%09%09return panel;%0D%0A%09%7D%0D%0A%09%0D%0A%09public static VerticalPanel createScrolledVerticalPanel98(Panel parent)%7B%0D%0A%09%09ScrollPanel scroll=new ScrollPanel();%0D%0A%09%09scroll.setSize(%2298%25%22, %2298%25%22);%0D%0A%09%09parent.add(scroll);%0D%0A%09%09VerticalPanel panel=new VerticalPanel();%0D%0A%09%09scroll.add(panel);%0D%0A%09%09return panel;%0D%0A%09%7D%0D%0A%09%0D%0A%09public static 
 Horizont

update panelutils