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

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


    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());
   
    initializeLDAPPanel();
    initializePatronPanel();
View Full Code Here


  @Override
  public void onEnter(Component component, PreviewEvent pe) {
    if (!isManaged()) return;
    if (component instanceof HeaderItem) {
      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());
   
    initializeCreatePanel();
    initializeModifyStatusPanel();
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());

    add(tabPanel, new RowData(WINDOW_WIDTH, Style.DEFAULT, new Margins()));
View Full Code Here

    tabPanel.setTabScroll(true);
    tabPanel.setAnimScroll(true);
    tabPanel.addListener(Events.Remove, new Listener<TabPanelEvent>() {

      public void handleEvent(TabPanelEvent be) {
        TabItem item = be.getItem();
        Entry entry = (Entry) item.getData("entry");
        Dispatcher.forwardEvent(AppEvents.HidePage, entry);
      }

    });
    tabPanel.addListener(Events.Select, new Listener<TabPanelEvent>() {
View Full Code Here

    if (page == null) {
      page = new Page(entry);
      entry.set("page", page);
    }

    TabItem item = tabPanel.findItem("page__"+page.getId(), false);
    if (item == null) {
      item = new TabItem();
      item.setData("entry", entry);
      item.setClosable(entry.isClosable());
      item.setId("page__"+page.getId());
      item.setText(entry.getName());
      item.setLayout(new FitLayout());
      item.add(page);
      tabPanel.add(item);
    }

    if (item != tabPanel.getSelectedItem()) {
      tabPanel.setSelection(item);
View Full Code Here

    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

    tabPanel.setMinTabWidth(70);
    tabPanel.setBorderStyle(false);
    tabPanel.setBodyBorder(false);
    tabPanel.setTabPosition(TabPosition.BOTTOM);

    treeItem = new TabItem();
    treeItem.setText("Tree");
    tabPanel.add(treeItem);

    listItem = new TabItem();
    listItem.setText("List");
    tabPanel.add(listItem);

    return tabPanel;
  }
View Full Code Here

      }
    });
   
    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>() {
View Full Code Here

    setBodyBorder(false);

    addListener(Events.Adopt, new Listener<ComponentEvent>() {
      public void handleEvent(ComponentEvent be) {
        if(getParent() != null && getParent() instanceof TabItem) {
          TabItem t = (TabItem) getParent();
          t.setHideMode(entry.getHideMode());
        }
      }
    });
   
    TabItem demo = new TabItem();
    demo.setScrollMode(Scroll.AUTO);
    if (entry.isFill()) {
      demo.setLayout(new FitLayout());
      demo.setScrollMode(Scroll.NONE);
    }
   
    demo.setHideMode(entry.getHideMode());

    demo.setText("Demo");
    demo.add(entry.getExample());
    add(demo);
   
    if (entry.isClosable()) {
      TabItem source = new TabItem();
      source.setText("Source");
      source.setUrl(entry.getSourceUrl());
      add(source);
    }
  }
View Full Code Here

TOP

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

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.