Examples of TabbedPanel


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

                    return new MetadataPanel(panelId, paNodeBean);
                }
            };
            tabs.add(metadataTab);

            TabbedPanel tabbedPanel = new TabbedPanel("tabs", tabs);
            if (get("tabs") == null)
            {
                tabbedPanel.setSelectedTab(0);
            }
            else if (get("tabs") instanceof TabbedPanel)
            {
                TabbedPanel current = (TabbedPanel) get("tabs");
                remove(current);

                if (current.getTabs() == tabbedPanel.getTabs())
                {
                    tabbedPanel.setSelectedTab(current.getSelectedTab());
                }
            }

            addOrReplace(tabbedPanel);
        }
View Full Code Here

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

                    }
                } );
            }

            // This is a tabbed panel that submits the form and doesn't switch if there are errors.
            tabbedPanel = new TabbedPanel("tabs", tabs) {
                private static final long serialVersionUID = 1L;
                @Override
                protected WebMarkupContainer newLink(String linkId, final int index)
                {
                    return new TabbedPanelSubmitLink(linkId, index);
View Full Code Here

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

    });

    // add the new tabbed panel, attribute modifier only used to switch
    // between different css variations
    add(new TabbedPanel("tabs", tabs).add(new AttributeModifier("class", true,
      TabbedPanelPage.this.getDefaultModel())));

  }
View Full Code Here

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

        }
       
        // we need to override with submit links so that the various form
        // element
        // will validate and write down into their
        theForm.add(new TabbedPanel("tabs", tabs) {
            @Override
            protected WebMarkupContainer newLink(String linkId, final int index) {
                return new SubmitLink(linkId) {
                    @Override
                    public void onSubmit() {
View Full Code Here

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

        // TODO Auto-generated method stub
        return null;
      }
    });

    TabbedPanel tabbedPanel = new TabbedPanel("tabs", tabs);
    tabbedPanel.setSelectedTab(getTabIdx(tabs,
        parameters.getString("tab", "File Manager")));

    add(tabbedPanel);
  }
View Full Code Here

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

    });

    // add the new tabbed panel, attribute modifier only used to switch
    // between different css variations
    add(new TabbedPanel("tabs", tabs).add(new AttributeModifier("class", true,
      TabbedPanelPage.this.getDefaultModel())));

  }
View Full Code Here

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

    });

    // add the new tabbed panel, attribute modifier only used to switch
    // between different css variations
    add(new TabbedPanel("tabs", tabs).add(new AttributeModifier("class", true,
        TabbedPanelPage.this.getModel())));

  }
View Full Code Here

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

    });

    // add the new tabbed panel, attribute modifier only used to switch
    // between different css variations
    add(new TabbedPanel("tabs", tabs).add(new AttributeModifier("class", true,
      TabbedPanelPage.this.getDefaultModel())));

  }
View Full Code Here

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

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

            public Panel getPanel(String panelId)
            {
                return new InformationTab(panelId, document);
            }
        };
        tabs.getTabs().add(tempTab);
        tempTab = new AbstractTab(new Model("Metadata"))
        {

            public Panel getPanel(String panelId)
            {
                return new MetaDataTab(panelId, document);
            }
        };
        tabs.getTabs().add(tempTab);
        tempTab = new AbstractTab(new Model("Security"))
        {

            public Panel getPanel(String panelId)
            {
                return new SecurityTab(panelId, document);
            }
        };
        tabs.getTabs().add(tempTab);
        if (node.getDocType().equals(FileType.Folder))
        {
            tempTab = new AbstractTab(new Model("Document ordering"))
            {

                public Panel getPanel(String panelId)
                {
                    return new DocumentOrderingTabPanel(panelId, document);
                }
            };
            tabs.getTabs().add(tempTab);
        }
        if (node.getDocType().equals(FileType.Folder)
                || node.getDocType().equals(FileType.Page))
        {
            tempTab = new AbstractTab(new Model("Menus"))
            {

                public Panel getPanel(String panelId)
                {
                    return new MenuTabPanel(panelId, document);
                }
            };
            tabs.getTabs().add(tempTab);
        }
        tempTab = new AbstractTab(new Model("Import/Export"))
        {

            public Panel getPanel(String panelId)
            {
                return new ImportDataTab(panelId, document);
            }
        };
        tabs.getTabs().add(tempTab);
        tabs.setSelectedTab(0);
    }
View Full Code Here

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

                    };
                }
                tabs.add(tab);
                // }
            }
            add(new TabbedPanel("assocTabs", tabs));
        }
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.