Examples of ISecureTab


Examples of org.apache.wicket.security.extensions.markup.html.tabs.ISecureTab

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

      public Panel getPanel(String panelId)
      {
        Gifkikker panel = new Gifkikker(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>("Gifkikker");
      }

      public Class< ? extends Panel> getPanel()
      {
        return Gifkikker.class;
      }
    });
    tabs.add(new ISecureTab()
    {
      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");
      }

      public Class< ? extends Panel> getPanel()
      {
        return Heineken.class;
      }
    });
    tabs.add(new ISecureTab()
    {
      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
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.