package com.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; import com.smartgwt.client.types.Alignment; import com.smartgwt.client.types.BackgroundRepeat; import com.smartgwt.client.types.VisibilityMode; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.SectionStack; import com.smartgwt.client.widgets.layout.VLayout; /** * Entry point classes define onModuleLoad(). */ public class CheckBox implements EntryPoint { private VLayout mainContentVLayout; int browserWidth=0; int browserHeight=0; int x = 0; int y = 0; private HLayout mainPanelOuter; private SectionStack mainSectionStack; private HLayout groupLayout = new HLayout(); public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(); rootPanel.clear(); rootPanel.add(mainWindowView()); } private VLayout mainWindowView() { browserWidth=com.google.gwt.user.client.Window.getClientWidth(); browserHeight=com.google.gwt.user.client.Window.getClientHeight(); x = (browserWidth/2); y = (browserHeight/2); mainContentVLayout = new VLayout(); mainContentVLayout.setWidth100(); mainContentVLayout.setHeight100(); mainContentVLayout.setMinWidth(1080); mainContentVLayout.setMinHeight(500); mainContentVLayout.setAlign(Alignment.CENTER); mainPanelOuter = new HLayout(); mainPanelOuter.setWidth100(); mainPanelOuter.setHeight100(); mainPanelOuter.setTitle(""); HLayout titleLayout = new HLayout(); titleLayout.setWidth100(); titleLayout.setBackgroundRepeat(BackgroundRepeat.NO_REPEAT); HLayout productLayout = new HLayout(); productLayout.setWidth100(); productLayout.setAlign(Alignment.RIGHT); mainSectionStack = new SectionStack(); mainSectionStack.setVisibilityMode(VisibilityMode.MULTIPLE); mainSectionStack.setWidth100(); mainSectionStack.setHeight100(); mainSectionStack.setScrollSectionIntoView(true); mainSectionStack.setCanResizeSections(false); MainWindowGroupTree mainWindowGroupTree = MainWindowGroupTree.getInstance(); groupLayout.addMember(mainWindowGroupTree.getTreeVLayout()); groupLayout.addMember(MainWindowGroupTree.getInstance().getMainVLayout()); mainPanelOuter.addMembers(groupLayout); mainContentVLayout.addMember(mainPanelOuter); return mainContentVLayout; } }