Examples of ITab


Examples of org.apache.wicket.extensions.markup.html.tabs.ITab

   */
  @Override
  protected List<ITab> getTabs()
  {
    List<ITab> tabs = new ArrayList<ITab>();
    tabs.add(new ITab()
    {
      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
        Gifkikker panel = new Gifkikker(panelId);
        // not an ISecureComponent but with an ISecurityCheck to check
        // for enough rights when rendering
        SecureComponentHelper.setSecurityCheck(panel, new ContainerSecurityCheck(panel));
        return panel;
      }

      public boolean isVisible()
      {
        // @TODO what todo with the new isVisible method ?
        return true;
      }

      public IModel<String> getTitle()
      {
        return new Model<String>("Gifkikker");
      }
    });
    tabs.add(new ITab()
    {
      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
        Heineken panel = new Heineken(panelId);
        SecureComponentHelper.setSecurityCheck(panel, new ContainerSecurityCheck(panel));
        return panel;
      }

      public boolean isVisible()
      {
        // @TODO what todo with the new isVisible method ?
        return true;
      }

      public IModel<String> getTitle()
      {
        return new Model<String>("Heineken");
      }
    });
    tabs.add(new ITab()
    {
      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.tabs.ITab

    add(HeaderContributor.forCss(AC_CSS));
    add(new IncludeMooToolsStateless());
    RepeatingView rp = new RepeatingView("repeater");

    for (int i = 0; i < tabs.size(); i++) {
      ITab tab = (ITab) tabs.get(i);
      rp.add(new MFXTab(String.valueOf(i), tab));
    }
    add(rp);

    add(new MFXWindowLoad().addAction(getJavaScript()));
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.tabs.ITab

   *            the index of the tab
   * @return the class or null if the tab at the index is not an ISecureTab
   */
  protected Class< ? extends Panel> getTabClass(int tabIndex)
  {
    ITab tab = getTabs().get(tabIndex);
    if (tab instanceof ISecureTab)
      return ((ISecureTab) tab).getPanel();
    return null;
  }
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.tabs.ITab

   *            the index of the tab
   * @return the class or null if the tab at the index is not an ISecureTab
   */
  protected Class<? extends Panel> getTabClass(int tabIndex)
  {
    ITab tab = getTabs().get(tabIndex);
    if (tab instanceof ISecureTab){
      return ((ISecureTab)tab).getPanel();
                }
    return null;
  }
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.tabs.ITab

    protected void controlTabs()
    {
        SiteTreeNode node = getUserSelectedNode();
        TabbedPanel tabs = (TabbedPanel) get("tabs");
        tabs.getTabs().clear();
        ITab tempTab;
        tempTab = new AbstractTab(new Model("Information"))
        {

            public Panel getPanel(String panelId)
            {
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.tabs.ITab

        this.menuOptions = menuOptions;
    }

    private void controlMenuTabs(final boolean nodeSelected)
    {
        ITab tab = null;
        menuTabs.clear();
        if (nodeSelected)
        {
            tab = new AbstractTab(new Model("Info"))
            {
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.tabs.ITab

        }

        public MenuTabPanel(String id, JetspeedDocument document)
        {
            super(id, document);
            ITab tab = null;
            DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("root");
            rootNode.add(new DefaultMutableTreeNode(new MenuTreeNode("Menus",null)));
            final ModalWindow metaDataModalWindow;
            add(metaDataModalWindow = new ModalWindow("modalwindow"));
            // Adding menu tree node
View Full Code Here

Examples of org.zkoss.ganttz.extensions.ITab

        });
    }

    private void changeTab(ModeType oldType, ModeType newType) {
        ITab previousTab = tabs.get(oldType);
        previousTab.hide();
        ITab newTab = tabs.get(newType);
        newTab.show();
    }
View Full Code Here

Examples of org.zkoss.ganttz.extensions.ITab

        }
    }

    @Override
    public String getName() {
        ITab currentTab = getCurrentTab();
        return currentTab == null ? "" : currentTab.getName();
    }
View Full Code Here

Examples of org.zkoss.ganttz.extensions.ITab

        return currentTab == null ? "" : currentTab.getName();
    }

    @Override
    public String getCssClass() {
        ITab currentTab = getCurrentTab();
        return currentTab == null ? "hidden" : currentTab.getCssClass();
    }
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.