	

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.DecoratedStackPanel;
import com.google.gwt.user.client.ui.DecoratedTabPanel;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.StackLayoutPanel;
import com.google.gwt.user.client.ui.Tree;
import com.smartgwt.client.data.Criteria;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.DataSourceField;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.data.fields.DataSourceLinkField;
import com.smartgwt.client.data.fields.DataSourcePasswordField;
import com.smartgwt.client.data.fields.DataSourceTextField;
import com.smartgwt.client.types.Autofit;
import com.smartgwt.client.types.DSDataFormat;
import com.smartgwt.client.types.FieldType;
import com.smartgwt.client.types.ListGridEditEvent;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.types.RowEndEditAction;
import com.smartgwt.client.types.SelectionStyle;
import com.smartgwt.client.types.Side;
import com.smartgwt.client.types.VisibilityMode;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.HTMLPane;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.SectionStack;
import com.smartgwt.client.widgets.layout.SectionStackSection;
import com.smartgwt.client.widgets.layout.VStack;
import com.smartgwt.client.widgets.tab.Tab;
import com.smartgwt.client.widgets.tab.TabSet;
import com.smartgwt.client.widgets.tile.TileGrid;
import com.smartgwt.client.widgets.tile.events.RecordDoubleClickEvent;
import com.smartgwt.client.widgets.tile.events.RecordDoubleClickHandler;
import com.smartgwt.client.widgets.toolbar.Toolbar;
import com.smartgwt.client.widgets.tree.TreeGrid;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.grid.*;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.util.BooleanCallback;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.util.ValueCallback;
import com.smartgwt.client.widgets.grid.events.EditorExitEvent;
import com.smartgwt.client.widgets.grid.events.EditorExitHandler;
import com.smartgwt.client.widgets.grid.events.RecordClickEvent;
import com.smartgwt.client.widgets.grid.events.RecordClickHandler;
import com.smartgwt.client.widgets.form.FilterBuilder;
import com.smartgwt.client.widgets.viewer.DetailViewerField;
import com.smartgwt.client.data.fields.DataSourceImageField; 
import com.smartgwt.client.widgets.form.fields.ButtonItem;
import com.smartgwt.client.widgets.form.fields.HeaderItem;
import com.smartgwt.client.widgets.form.fields.PasswordItem;
import com.smartgwt.client.widgets.form.fields.SelectItem;   
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.form.validator.MatchesFieldValidator;
import com.smartgwt.client.widgets.grid.ListGrid;   
import com.smartgwt.client.widgets.Canvas;   
import com.smartgwt.client.widgets.form.fields.CheckboxItem;   
import com.smartgwt.client.widgets.form.validator.RegExpValidator;  
import com.smartgwt.client.widgets.layout.VLayout;   
import com.google.gwt.user.client.ui.VerticalPanel; 
import com.google.gwt.user.client.ui.Widget; 
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.Tree;
import com.smartgwt.client.types.SelectionStyle;  
import com.smartgwt.client.widgets.tree.TreeGrid;
import com.smartgwt.client.types.TreeModelType;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.tree.*;

public class Webframework extends Tree implements EntryPoint  {
	

	final SectionStack leftSideLayout = new SectionStack(); 
	final IButton home_button = new IButton("Home");
	final IButton add_delete_prj_button = new IButton("Add/Del Project");
	final IButton settings_button = new IButton("Settings");
	final IButton configure_button = new IButton("Configure");
	final IButton logout_button = new IButton("Logout");
	final IButton account_button = new IButton("Account Manage");
	final IButton filter_button = new IButton(" Filter");
	final IButton Report_button = new IButton(" Report");
	final IButton Graph_button = new IButton("Graph");
	final IButton Sync_button = new IButton("Sync DB");

public void onModuleLoad() {
		
	HLayout mainLayout = new HLayout();
        mainLayout.setWidth100();
        mainLayout.setHeight100();
        mainLayout.setBorder("1px solid #808080");
        
        SectionStack fullLayout = new SectionStack();
        fullLayout.setWidth100();
        fullLayout.setHeight100();
        fullLayout.setBorder("1px solid #808080");
        
        

//        leftpane.setWidth("10%");
//        leftpane.setBackgroundColor("#A0A0A0");
//        leftpane.setBorder("1px solid #808080");
//        leftpane.setEdgeSize(10);

        

        hLayout_nav.setWidth("10%");
        hLayout_nav.setBackgroundColor("#A0A0A0");
        //hLayout_nav.setBackgroundColor("#FF00FF");
        hLayout_nav.setBorder("1px solid #808080");
      //  hLayout_nav.setEdgeImage("edges/custom/frame_10.png");
        hLayout_nav.setEdgeSize(10);
//
//
        hLayout_main.setWidth("80%");
        hLayout_main.setBackgroundColor("#c8c8c8");
        //hLayout_main.setBackgroundColor("#00FF00");
        hLayout_main.setBorder("1px solid #808080");
        hLayout_main.setEdgeImage("edges/custom/frame_10.png");
        hLayout_main.setEdgeSize(10);


	leftSideLayout.setWidth("15%");  
        leftSideLayout.setShowResizeBar(false);  
        leftSideLayout.setVisibilityMode(VisibilityMode.MULTIPLE);  
        leftSideLayout.setAnimateSections(true);   

	 VStack home_stack = new VStack();
        home_stack.setMembersMargin(20);
        home_stack.setPadding(15);
        home_stack.enable();
        home_stack.addMember(home_button);
    	home_stack.addMember(add_delete_prj_button);
    	home_stack.addMember(settings_button);
    	home_stack.addMember(account_button);
    	home_stack.addMember(logout_button);

        VStack A_stack = new VStack();    
        A_stack.setMembersMargin(20);    
        A_stack.setPadding(15);
        A_stack.enable();
        A_stack.addMember(web_button);
        A_stack.addMember(filter_button);
        A_stack.addMember(configure_button); 
        A_stack.addMember(Report_button);
        A_stack.addMember(Sync_button);
    	
        VStack H_stack = new VStack();
        H_stack.setMembersMargin(20);
        H_stack.setPadding(15);
        H_stack.enable();
        H_stack.addMember(Help_button);
        H_stack.addMember(crdts_button);

    
                
        SectionStackSection analysisSection = new SectionStackSection("Analysis");  
        analysisSection.setExpanded(false); 
        analysisSection.setItems(A_stack);
        analysisSection.setCanCollapse(true);
        leftSideLayout.addSection(analysisSection);
      // suppliesCategorySection.setItems(groupingbuttons);  
  
        SectionStackSection aboutSection = new SectionStackSection("About");  
        aboutSection.setExpanded(false);  
        aboutSection.setItems(A_stack);        
        aboutSection.setCanCollapse(true);
        leftSideLayout.addSection(aboutSection);
        
        
        SectionStackSection projectSection = new SectionStackSection("Project");  
        projectSection.setExpanded(false);  
        projectSection.setItems(A_stack);
        projectSection.setCanCollapse(true);
        leftSideLayout.addSection(projectSection);
  
	 mainLayout.addMember(leftSideLayout);
       // mainLayout.addMember(hLayout_main);
    	
        RootPanel.get("webframework_id").add(mainLayout);

	    }
   
     }