Package com.extjs.gxt.ui.client.widget

Examples of com.extjs.gxt.ui.client.widget.TabPanel


    initialize();

    addToolBar();
   
    TabPanel tabPanel = new TabPanel();
    TabItem tbtmDetalles = new TabItem("Detalles");
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    tabPanel.add(tbtmDetalles);
    tbtmDetalles.add(horizontalPanel);
    tbtmDetalles.setHeight(DETAILS_HEIGTH.toString());

    horizontalPanel.add(getPanelFields());
   
View Full Code Here


      pe.preventDefault();
      TabItem item = (TabItem) component.getParent();
      stepInto(item, pe, true);
    } else if (component instanceof TabPanel) {
      pe.preventDefault();
      TabPanel panel = (TabPanel) component;
      TabItem item = panel.getSelectedItem();
      if (item != null && item.getItemCount() > 0) {
        item.getItem(0).focus();
      }
    }
  }
View Full Code Here

    initialize();

    addToolBar();
   
    TabPanel tabPanel = new TabPanel();
    TabItem tbtmDetalles = new TabItem("Detalles");
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    tabPanel.add(tbtmDetalles);
    tbtmDetalles.add(horizontalPanel);
    tbtmDetalles.setHeight(DETAILS_HEIGTH.toString());

    horizontalPanel.add(getPanelFields());
   
View Full Code Here

    initialize();

    addToolBar();
   
    TabPanel tabPanel = new TabPanel();
    TabItem tbtmDetalles = new TabItem("Detalles");
    VerticalPanel panel = new VerticalPanel();
    tabPanel.add(tbtmDetalles);
    tbtmDetalles.add(panel);
    tbtmDetalles.setHeight(DETAILS_HEIGTH.toString());

    panel.add(getPanelFields());
    panel.add(getPermissions());
View Full Code Here

  public ContentView(Controller controller) {
    super(controller);
  }

  public void initialize() {
    tabPanel = new TabPanel();
    tabPanel.setCloseContextMenu(true);
    tabPanel.setBorderStyle(false);
    tabPanel.setBodyBorder(false);
    tabPanel.setTabScroll(true);
    tabPanel.setAnimScroll(true);
View Full Code Here

    w.setIcon(IconHelper.createStyle("tabs"));
    w.setHeading("Tab Window");

    w.setLayout(new FitLayout());

    TabPanel panel = new TabPanel();

    for (int i = 0; i < 4; i++) {
      TabItem item = new TabItem("Tab Item " + (i + 1));
      item.addText("Something useful would be here");
      panel.add(item);
    }

    w.add(panel);
    return w;
  }
View Full Code Here

    createTreeContent();
    westPanel.syncSize();
  }

  private TabPanel createTabPanel() {
    tabPanel = new TabPanel();
    tabPanel.setMinTabWidth(70);
    tabPanel.setBorderStyle(false);
    tabPanel.setBodyBorder(false);
    tabPanel.setTabPosition(TabPosition.BOTTOM);
View Full Code Here

        Button open = we.getWindow().getData("open");
        open.focus();
      }
    });
   
    TabPanel panel = new TabPanel();
    panel.setBorders(false);
    TabItem item1 = new TabItem("Hello World 1");
    item1.addText("Hello...");
    item1.addStyleName("pad-text");

    TabItem item2 = new TabItem("Hello World 2");
    item2.addText("... World!");
    item2.addStyleName("pad-text");
    panel.add(item1);
    panel.add(item2);

    window.add(panel, new FitData(4));
    window.addButton(new Button("Close", new SelectionListener<ButtonEvent>() {
      @Override
      public void componentSelected(ButtonEvent ce) {
View Full Code Here

    VerticalPanel vp = new VerticalPanel();
    vp.setSpacing(10);

    String txt = TestData.DUMMY_TEXT_SHORT;

    TabPanel folder = new TabPanel();
    folder.setWidth(450);
    folder.setAutoHeight(true);

    TabItem shortText = new TabItem("Short Text");
    shortText.addStyleName("pad-text");
    shortText.addText(txt);
    folder.add(shortText);

    TabItem longText = new TabItem("Long Text");
    longText.addStyleName("pad-text");
    longText.addText(txt + "<br>" + txt);
    folder.add(longText);

    TabPanel panel = new TabPanel();
    panel.setPlain(true);
    panel.setSize(450, 250);

    TabItem normal = new TabItem("Normal");
    normal.addStyleName("pad-text");
    normal.addText("Just a plain old tab");
    panel.add(normal);

    TabItem iconTab = new TabItem("Icon Tab");
    iconTab.setIcon(Resources.ICONS.table());
    iconTab.addStyleName("pad-text");
    iconTab.addText("Just a plain old tab with an icon");
    panel.add(iconTab);

    TabItem ajax1 = new TabItem("Ajax Tab");
    ajax1.setScrollMode(Scroll.AUTO);
    ajax1.addStyleName("pad-text");
    ajax1.setAutoLoad(new RequestBuilder(RequestBuilder.GET, GWT.getHostPageBaseURL() + "data/ajax1.html"));
    panel.add(ajax1);

    TabItem eventTab = new TabItem("Event Tab");
    eventTab.addListener(Events.Select, new Listener<ComponentEvent>() {
      public void handleEvent(ComponentEvent be) {
        Window.alert("Event Tab Was Selected");
      }
    });
    eventTab.addStyleName("pad-text");
    eventTab.addText("I am tab 4's content. I also have an event listener attached.");
    panel.add(eventTab);

    TabItem disabled = new TabItem("Disabled");
    disabled.setEnabled(false);
    panel.add(disabled);

    vp.add(folder);
    vp.add(panel);
    add(vp);
  }
View Full Code Here

    });
    toggle.toggle(true);
    hp.add(toggle);
    vp.add(hp);

    advanced = new TabPanel();
    advanced.setSize(600, 250);
    advanced.setMinTabWidth(115);
    advanced.setResizeTabs(true);
    advanced.setAnimScroll(true);
    advanced.setTabScroll(true);
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.TabPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.