Examples of Tabs


Examples of gwtquery.plugins.ui.widgets.Tabs

        return false;
      };
    };

    // tabs init with a custom tab template and an "add" callback filling in the content
    final Tabs tabs = $("#tabs").as(Ui).tabs( //
    Tabs.Options.create().tabTemplate("<li><a href=\"#{href}\">#{label}</a> <span class=\"ui-icon ui-icon-close\">Remove Tab</span></li>")) //
    .bind(Tabs.Event.add, new Function() {
      @Override
      public boolean f(Event e, Object data) {
        final Tabs.Event event = ((JavaScriptObject) data).cast();
        String tab_content = tab_content_input.val();
        if(tab_content == null || tab_content.isEmpty()) {
          tab_content = "Tab " + tab_counter + " content.";
        }
        $(event.panel()).append("<p>" + tab_content + "</p>");

        // close icon: removing the tab on click
        // note: closable tabs gonna be an option in the future - see http://dev.jqueryui.com/ticket/3924
        $("span.ui-icon-close", event.tab().getParentElement()).click(removeTab);
        return false;
      }
    });

    $("#tabs span.ui-icon-close").click(removeTab);

    final Function addTab = new Function() {
      @Override
      public void f(Element e) {
        String tab_title = tab_title_input.val();
        if(tab_title == null || tab_title.isEmpty()) {
          tab_title = "Tab " + tab_counter;
        }
        tabs.add("#tabs-" + tab_counter, tab_title);
        tab_counter++;
      }
    };

    // modal dialog init: custom buttons and a "close" callback reseting the form inside
View Full Code Here

Examples of org.docx4j.model.properties.paragraph.Tabs

//    if (pPr.getSuppressLineNumbers() != null)
//      dest.setSuppressLineNumbers(pPr.getSuppressLineNumbers());
//    if (pPr.getSuppressOverlap() != null)
//      dest.setSuppressOverlap(pPr.getSuppressOverlap());
    if (pPr.getTabs() != null)
      properties.add(new Tabs(pPr.getTabs()));
    if (pPr.getTextAlignment() != null)
      properties.add(new TextAlignmentVertical(pPr.getTextAlignment()));
//    if (pPr.getTextboxTightWrap() != null)
//      dest.setTextboxTightWrap(pPr.getTextboxTightWrap());
//    if (pPr.getTextDirection() != null)
View Full Code Here

Examples of org.odlabs.wiquery.ui.tabs.Tabs

 
  private Label indexLabel;
 
  public TabsPanel(String id) {
    super(id);
    Tabs tabs = new Tabs("tabs");
    tabs.setAjaxBeforeActivateEvent(new Tabs.ITabsAjaxEvent() {
      private static final long serialVersionUID = 1L;

      @Override
      public void onEvent(AjaxRequestTarget target, Tabs tabs, int index) {
        TabsPanel.this.index = index;
        target.add(indexLabel);
      }
    });
    tabs.setCollapsible(true);
    tabs.setActive(false);
    tabs.setHide(new TabsAnimateOption(new EffectOptionObject()
        .setEffect("drop")
        .setDuration(200)
    ));
    tabs.setShow(new TabsAnimateOption(new EffectOptionObject()
        .setEffect("slide")
        .setDuration(200)
    ));
    add(tabs);
   
View Full Code Here

Examples of org.zkoss.zul.Tabs

        Treecell tcBootFlag = (Treecell) rowChildrenData.get(3);
        String bootFlag = tcBootFlag.getLabel();


        Tabs tbs = (Tabs) getFellow("tbs");
        Tabpanels tps = (Tabpanels) getFellow("tps");

        // if bootFlat =N , db setter not want you boot this function
        // if the tab is opened, you should not open it again
        // when judging  isOpened, if the tab is opened, set selected,
View Full Code Here

Examples of org.zkoss.zul.Tabs

        /* get an instance of the borderlayout defined in the zul-file */
        Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        Center center = bl.getCenter();
        // get the tabs component
        Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        /**
         * Check if the tab is already opened than select them and<br>
         * go out of here. If not than create them.<br>
         */

        Tab checkTab = null;
        try {
          // checkTab = (Tab) tabs.getFellow(tabName);
          checkTab = (Tab) tabs.getFellow("tab_" + tabName.trim());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

View Full Code Here

Examples of org.zkoss.zul.Tabs

        /* get an instance of the borderlayout defined in the zul-file */
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        final Center center = bl.getCenter();
        // get the tabs component
        final Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        /**
         * Check if the tab is already opened than select them and<br>
         * go out of here. If not than create them.<br>
         */

        Tab checkTab = null;
        try {
          // checkTab = (Tab) tabs.getFellow(tabName);
          checkTab = (Tab) tabs.getFellow("tab_" + tabID.trim());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

View Full Code Here

Examples of org.zkoss.zul.Tabs

        /* get an instance of the borderlayout defined in the zul-file */
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        final Center center = bl.getCenter();

        final Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        // Check if the tab is already open, if not than create them
        Tab checkTab = null;
        try {
          checkTab = (Tab) tabs.getFellow("tab_" + this.getId());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

View Full Code Here

Examples of org.zkoss.zul.Tabs

        /* get an instance of the borderlayout defined in the zul-file */
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        final Center center = bl.getCenter();

        final Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        // Check if the tab is already open, if not than create them
        Tab checkTab = null;
        try {
          checkTab = (Tab) tabs.getFellow("tab_" + this.getId());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

View Full Code Here

Examples of org.zkoss.zul.Tabs

                Emitter<Timeplot> timePlot) {
            Tabbox chartComponent = new Tabbox();
            chartComponent.setOrient("vertical");
            chartComponent.setHeight("200px");

            Tabs chartTabs = new Tabs();
            chartTabs.appendChild(new Tab(_("Load")));
            chartComponent.appendChild(chartTabs);
            chartTabs.setWidth("124px");

            Tabpanels chartTabpanels = new Tabpanels();
            Tabpanel loadChartPannel = new Tabpanel();
            // avoid adding Timeplot since it has some pending issues
            CompanyPlanningModel.appendLoadChartAndLegend(loadChartPannel,
View Full Code Here

Examples of org.zkoss.zul.Tabs

    private void selectTab(String tabName) {
        tabSelected = tabName;
    }

    private void appendTabs(Tabbox chartComponent) {
        Tabs chartTabs = new Tabs();
        chartTabs.appendChild(createTab(_("Load"), "load_tab"));
        chartTabs.appendChild(createTab(_("Earned value"), "earned_value_tab"));

        chartComponent.appendChild(chartTabs);
        chartTabs.setSclass("charts-tabbox");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.