List of usage examples for com.google.gwt.user.client.ui DockLayoutPanel getWidgetContainerElement
public Element getWidgetContainerElement(Widget child)
From source file:com.google.gwt.sample.mail.client.Mail.java
License:Apache License
/** * This method constructs the application user interface by instantiating * controls and hooking up event handler. *//*from www . ja va 2 s . com*/ public void onModuleLoad() { // Inject global styles. GWT.<GlobalResources>create(GlobalResources.class).css().ensureInjected(); // Create the UI defined in Mail.ui.xml. DockLayoutPanel outer = binder.createAndBindUi(this); // Get rid of scrollbars, and clear out the window's built-in margin, // because we want to take advantage of the entire client area. Window.enableScrolling(false); Window.setMargin("0px"); // Special-case stuff to make topPanel overhang a bit. Element topElem = outer.getWidgetContainerElement(topPanel); topElem.getStyle().setZIndex(2); topElem.getStyle().setOverflow(Overflow.VISIBLE); // Listen for item selection, displaying the currently-selected item in // the detail area. mailList.setListener(new MailList.Listener() { public void onItemSelected(MailItem item) { mailDetail.setItem(item); } }); // Add the outer panel to the RootLayoutPanel, so that it will be // displayed. RootLayoutPanel root = RootLayoutPanel.get(); root.add(outer); }
From source file:es.ugr.rodgom.ludiuca.client.profesor.ProfesorGUI.java
License:Apache License
/** * This method constructs the application user interface by instantiating * controls and hooking up event handler. */// w w w . j av a 2s. c o m public ProfesorGUI() { // Inject global styles. GWT.<GlobalResources>create(GlobalResources.class).css().ensureInjected(); GWT.log("Antes del binder"); // Create the UI defined in Mail.ui.xml. DockLayoutPanel outer = binder.createAndBindUi(this); GWT.log("Despus del binder"); //Cargamos el contexto Context.setCentralPan(centralPan); Context.setTopPanel(topPanel); Context.setShortCuts(shortcuts); GWT.log("Despus de actualizar el contexto"); // Get rid of scrollbars, and clear out the window's built-in margin, // because we want to take advantage of the entire client area. Window.enableScrolling(true); Window.setMargin("0px"); // Special-case stuff to make topPanel overhang a bit. Element topElem = outer.getWidgetContainerElement(topPanel); topElem.getStyle().setZIndex(2); topElem.getStyle().setOverflow(Overflow.VISIBLE); // Add the outer panel to the RootLayoutPanel, so that it will be // displayed. RootLayoutPanel root = RootLayoutPanel.get(); //root.clear(); root.add(outer); }
From source file:es.ugr.rodgom.ludiuca.client.student.StudentGUI.java
License:Apache License
/** * This method constructs the application user interface by instantiating * controls and hooking up event handler. *///w w w .jav a2 s . c o m public StudentGUI() { // Inject global styles. GWT.<GlobalResources>create(GlobalResources.class).css().ensureInjected(); GWT.log("Antes del binder"); // Create the UI defined in Mail.ui.xml. DockLayoutPanel outer = binder.createAndBindUi(this); GWT.log("Despus del binder"); //Cargamos el contexto ContextStudent.setCentralPan(centralPan); ContextStudent.setTopPanel(topPanel); ContextStudent.setShortCuts(shortcuts); GWT.log("Despus de actualizar el contexto"); // Get rid of scrollbars, and clear out the window's built-in margin, // because we want to take advantage of the entire client area. Window.enableScrolling(true); Window.setMargin("0px"); // Special-case stuff to make topPanel overhang a bit. Element topElem = outer.getWidgetContainerElement(topPanel); topElem.getStyle().setZIndex(2); topElem.getStyle().setOverflow(Overflow.VISIBLE); // Add the outer panel to the RootLayoutPanel, so that it will be // displayed. RootLayoutPanel root = RootLayoutPanel.get(); //root.clear(); root.add(outer); }
From source file:eu.gaetan.grigis.mail.client.gui.Mail.java
License:Apache License
public void displayWebMail(String mail) { // Inject global styles. GWT.<GlobalResources>create(GlobalResources.class).css().ensureInjected(); // Create the UI defined in Mail.ui.xml. DockLayoutPanel outer = binder.createAndBindUi(this); setMail(mail);/*from ww w. j av a 2 s. c o m*/ // Get rid of scrollbars, and clear out the window's built-in margin, // because we want to take advantage of the entire client area. Window.enableScrolling(false); Window.setMargin("0px"); // Special-case stuff to make topPanel overhang a bit. Element topElem = outer.getWidgetContainerElement(topPanel); topElem.getStyle().setZIndex(2); topElem.getStyle().setOverflow(Overflow.VISIBLE); // Listen for item selection, displaying the currently-selected item in // the detail area. mailList.setListener(new MailList.Listener() { public void onItemSelected(MailItem item) { mailDetail.setItem(item); } }); // Add the outer panel to the RootLayoutPanel, so that it will be // displayed. RootLayoutPanel root = RootLayoutPanel.get(); root.clear();//remove everything before root.add(outer); reloadMails(); }
From source file:py.edu.uca.intercajas.client.menumail.MenuMail.java
License:Apache License
/** * This method constructs the application user interface by instantiating * controls and hooking up event handler. *//* w w w . j a va 2 s .c om*/ public void init() { // Inject global styles. GWT.<GlobalResources>create(GlobalResources.class).css().ensureInjected(); // Create the UI defined in Mail.ui.xml. DockLayoutPanel outer = binder.createAndBindUi(this); // Get rid of scrollbars, and clear out the window's built-in margin, // because we want to take advantage of the entire client area. Window.enableScrolling(false); Window.setMargin("0px"); // Special-case stuff to make topPanel overhang a bit. Element topElem = outer.getWidgetContainerElement(topPanel); topElem.getStyle().setZIndex(2); topElem.getStyle().setOverflow(Overflow.VISIBLE); // Listen for item selection, displaying the currently-selected item in // the detail area. // mailList.setListener(new MailList.Listener() { // public void onItemSelected(MailItem item) { // mailDetail.setItem(item); // } // }); // Add the outer panel to the RootLayoutPanel, so that it will be // displayed. //MenuMain PRINCIPAL RootLayoutPanel.get().add(outer); }