Examples of IconImpl


Examples of org.jasig.portal.container.om.servlet.IconImpl

       
        return servletDefinitions;
    }
   
    private IconImpl getIcon(Element e) {
        IconImpl icon = null;
        NodeList iconNL = e.getElementsByTagName("icon");
        if (iconNL.getLength() > 0) {
            icon = new IconImpl();
            Element iconE = (Element)iconNL.item(0);
            icon.setSmallIcon(XML.getChildElementText(iconE, "small-icon"));
            icon.setLargeIcon(XML.getChildElementText(iconE, "large-icon"));
        }
        return icon;
    }
View Full Code Here

Examples of org.jasig.portal.container.om.servlet.IconImpl

    private FilterImpl[] getFilters(Element e) {
        NodeList filterNL = e.getElementsByTagName("filter");
        FilterImpl[] filters = new FilterImpl[filterNL.getLength()];
        for (int i = 0; i < filterNL.getLength(); i++) {
            Element filterE = (Element)filterNL.item(i);
            IconImpl icon = getIcon(filterE);
            String filterName = XML.getChildElementText(filterE, "filter-name");
            DisplayNameSet displayNames = getDisplayNames(filterE);
            DescriptionSet descriptions = getDescriptions(filterE);
            String filterClass = XML.getChildElementText(filterE, "filter-class");
            ParameterSet initParameters = getParameters(filterE, "init-param");
View Full Code Here

Examples of org.jboss.jca.common.metadata.spec.IconImpl

         if (conAnnotation.smallIcon() != null && conAnnotation.smallIcon().length > 0)
         {
            for (String smallIconAnnotation : conAnnotation.smallIcon())
            {
               if (smallIconAnnotation != null && !smallIconAnnotation.trim().equals(""))
                  icons.add(new IconImpl(new XsdString(smallIconAnnotation, null), null, null, null));
            }
         }
         if (conAnnotation.largeIcon() != null && conAnnotation.largeIcon().length > 0)
         {
            for (String largeIconAnnotation : conAnnotation.largeIcon())
            {
               if (largeIconAnnotation != null && !largeIconAnnotation.trim().equals(""))
                  icons.add(new IconImpl(null, new XsdString(largeIconAnnotation, null), null, null));
            }
         }
      }

      // Transaction support
View Full Code Here

Examples of org.jboss.jca.common.metadata.spec.IconImpl

         if (conAnnotation.smallIcon() != null && conAnnotation.smallIcon().length > 0)
         {
            for (String smallIconAnnotation : conAnnotation.smallIcon())
            {
               if (smallIconAnnotation != null && !smallIconAnnotation.trim().equals(""))
                  icons.add(new IconImpl(new XsdString(smallIconAnnotation, null), null, null, null));
            }
         }
         if (conAnnotation.largeIcon() != null && conAnnotation.largeIcon().length > 0)
         {
            for (String largeIconAnnotation : conAnnotation.largeIcon())
            {
               if (largeIconAnnotation != null && !largeIconAnnotation.trim().equals(""))
                  icons.add(new IconImpl(null, new XsdString(largeIconAnnotation, null), null, null));
            }
         }
      }

      // Transaction support
View Full Code Here

Examples of org.jboss.jca.common.metadata.spec.IconImpl

         if (conAnnotation.smallIcon() != null && conAnnotation.smallIcon().length > 0)
         {
            for (String smallIconAnnotation : conAnnotation.smallIcon())
            {
               if (smallIconAnnotation != null && !smallIconAnnotation.trim().equals(""))
                  icons.add(new IconImpl(new XsdString(smallIconAnnotation, null), null, null, null));
            }
         }
         if (conAnnotation.largeIcon() != null && conAnnotation.largeIcon().length > 0)
         {
            for (String largeIconAnnotation : conAnnotation.largeIcon())
            {
               if (largeIconAnnotation != null && !largeIconAnnotation.trim().equals(""))
                  icons.add(new IconImpl(null, new XsdString(largeIconAnnotation, null), null, null));
            }
         }
      }

      // Transaction support
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.IconImpl

    }

    protected Icons getIcons(String smallIcon, String largeIcon) {
        IconsImpl icons = null;
        if (smallIcon.length() > 0 || largeIcon.length() > 0) {
            IconImpl i = new IconImpl();
            i.setSmallIcon(smallIcon);
            i.setLargeIcon(largeIcon);
            icons = new IconsImpl();
            icons.add(i);
        }
        return icons;
    }
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.IconImpl

      DescriptionGroupMetaData group = result.getDescriptionGroup();
      assertNotNull(group);
      Icons icons = group.getIcons();
      assertNotNull(icons);
     
      IconImpl icon = new IconImpl();
      icon.setSmallIcon("small");
      icon.setLargeIcon("large");
      assertEquals(new Icon[] { icon }, icons.value());
   }
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.IconImpl

      DisplayName[] expecteddns = {endn, frdn, dedn};
      assertEquals(expecteddns, displayNames.value());

      Icons icons = group.getIcons();
      assertNotNull(icons);
      IconImpl enicn = new IconImpl();
      enicn.setId("en-ear-icon-id");
      enicn.setSmallIcon("en-ear-small-icon");
      enicn.setLargeIcon("en-ear-large-icon");
      IconImpl fricn = new IconImpl();
      fricn.setLanguage("fr");
      fricn.setId("fr-ear-icon-id");
      fricn.setSmallIcon("fr-ear-small-icon");
      fricn.setLargeIcon("fr-ear-large-icon");
      IconImpl deicn = new IconImpl();
      deicn.setLanguage("de");
      deicn.setId("de-ear-icon-id");
      deicn.setSmallIcon("de-ear-small-icon");
      deicn.setLargeIcon("de-ear-large-icon");
     
      Icon[] expectedicns = {enicn, fricn, deicn};
      assertEquals(expectedicns, icons.value());
   }
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.IconImpl

      DisplayName[] expecteddns = {endn, frdn, dedn};
      assertEquals(expecteddns, displayNames.value());

      Icons icons = group.getIcons();
      assertNotNull(icons);
      IconImpl enicn = new IconImpl();
      enicn.setId("en-ear-icon-id");
      enicn.setSmallIcon("en-ear-small-icon");
      enicn.setLargeIcon("en-ear-large-icon");
      IconImpl fricn = new IconImpl();
      fricn.setLanguage("fr");
      fricn.setId("fr-ear-icon-id");
      fricn.setSmallIcon("fr-ear-small-icon");
      fricn.setLargeIcon("fr-ear-large-icon");
      IconImpl deicn = new IconImpl();
      deicn.setLanguage("de");
      deicn.setId("de-ear-icon-id");
      deicn.setSmallIcon("de-ear-small-icon");
      deicn.setLargeIcon("de-ear-large-icon");
     
      Icon[] expectedicns = {enicn, fricn, deicn};
      assertEquals(expectedicns, icons.value());
   }
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.IconImpl

      DescriptionGroupMetaData group = ear.getDescriptionGroup();
      assertNotNull(group);
      Icons icons = group.getIcons();
      assertNotNull(icons);
     
      IconImpl en = new IconImpl();
      en.setId("en-ear-icon-id");
      en.setSmallIcon("en-ear-small-icon");
      en.setLargeIcon("en-ear-large-icon");
      IconImpl fr = new IconImpl();
      fr.setLanguage("fr");
      fr.setId("fr-ear-icon-id");
      fr.setSmallIcon("fr-ear-small-icon");
      fr.setLargeIcon("fr-ear-large-icon");
      IconImpl de = new IconImpl();
      de.setLanguage("de");
      de.setId("de-ear-icon-id");
      de.setSmallIcon("de-ear-small-icon");
      de.setLargeIcon("de-ear-large-icon");
     
      Icon[] expected = {en, fr, de};
      assertEquals(expected, icons.value());
   }
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.