Package org.apache.myfaces.trinidad.skin

Examples of org.apache.myfaces.trinidad.skin.Icon


      referencedIconStack = new Stack<String>();
    }

    referencedIconStack.push(refName);

    Icon icon = skin.getIcon(refName, false);

    if ((icon instanceof ReferenceIcon) && (icon != null))
    {

      return _resolveReferenceIcon(skin,
View Full Code Here


              // Create the Icon
             
              if (resolvedNode != null)       
              {
                Icon icon = _createIconFromNode(resolvedNode);
                if (icon != null)
                {
                  iconNodes.add(new IconNode(id, icon, resolvedNode));
View Full Code Here

    }
    

    // now I need to create the icon.
    // do not create an icon if isNullIcon is true.
    Icon icon = null;

    if (!isNullIcon)
    {
     if (text != null)
     {
View Full Code Here

    boolean selected = Boolean.TRUE.equals(value);
    boolean disabled = getDisabled(bean);

    String iconName = getIconName(selected, disabled);    
    Icon icon = arc.getIcon(iconName);
   
    String altTextName = getIconAltTextName(selected);

    String shortDesc = arc.getTranslatedString(altTextName);  
    OutputUtils.renderIcon(context, arc, icon, shortDesc, null );                     
View Full Code Here

        (increment) ?
        SkinSelectors.AF_INPUT_NUMBER_SPINBOX_INCREMENT_DISABLED_ICON_NAME :
        SkinSelectors.AF_INPUT_NUMBER_SPINBOX_DECREMENT_DISABLED_ICON_NAME;
    }

    Icon icon = arc.getIcon(iconName);
    if ((icon != null) && !icon.isNull())
    {
      // Render Link with onmousedown and onmouseup event handlers
      if (!disabled)
      {
        rw.startElement("a", component);
View Full Code Here

    }

    if (getShowRequired(bean))
    {
      // Get the required Icon from the context
      Icon icon = arc.getIcon(SkinSelectors.REQUIRED_ICON_ALIAS_NAME);
      if (icon != null)
      {
        String vAlign = getDefaultValign(bean);
        _renderIcon(context, arc, icon, null, null, null, "REQUIRED_TIP", vAlign);
      }
View Full Code Here

    }

    if (iconName != null)
    {
      // Get the Icon to render from the skin
      Icon icon = arc.getIcon(iconName);
     
      if (icon != null)
      {
        _renderIcon(context,
                    arc,
View Full Code Here

    RenderingContext arc,
    boolean             disclosed,
    String              disclosedAltTextKey,
    String              undisclosedAltTextKey) throws IOException
  {
    Icon icon = _getDisclosureIcon(arc, disclosed);

    if (icon != null)
    {
      // Get the alt text
      String key = disclosed ? disclosedAltTextKey : undisclosedAltTextKey;
View Full Code Here

      // Get the Icon from the Skin
      UIXRenderingContext context = uix.getRenderingContext();
      RenderingContext arc = RenderingContext.getCurrentInstance();
      FacesContext fContext = context.getFacesContext();
      Skin skin = context.getSkin();
      Icon icon = skin.getIcon(name);

      Object uri = icon.getImageURI(fContext, arc);

      if (uri != null)
      {
       

        Integer width = icon.getImageWidth(arc);
        Integer height = icon.getImageHeight(arc);

        // =-=ags Perhaps we should consider caching ImageData
        //        instances in request/render scope, so that repeated
        //        calls to ui:imageIcon() during the same page render
        //        return the same ImageData object?  We would also
View Full Code Here

  public static void registerIcons(Skin skin, Object[] icons)
  {
    for (int i = 0; i < icons.length; i += 2)
    {
      String iconName = (String) icons[i];
      Icon icon = (Icon) icons[i + 1];

      skin.registerIcon(iconName, icon);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.skin.Icon

Copyright © 2018 www.massapicom. 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.