Package org.apache.myfaces.trinidad.skin

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


  private void _renderLocatorIcon(
    FacesContext     fc,
    RenderingContext rc
    ) throws IOException
  {
    Icon icon = rc.getIcon(SkinSelectors.AF_TREE_TABLE_LOCATOR_ICON_NAME);

    if (icon != null)
    {
      Object altText = rc.getTranslatedString(_BREADCRUMBS_START_KEY);
View Full Code Here


    writer.writeAttribute(XhtmlConstants.ID_ATTRIBUTE, id, null);
    renderStyleClass(context, rc, SkinSelectors.NAV_BAR_ALINK_STYLE_CLASS);
    writer.writeAttribute("onclick", onclick, null);
    writer.writeURIAttribute("href", "#", null);

    Icon icon = rc.getIcon(getControlLinkIconName(translationKey));
    if (icon != null)
    {
      OutputUtils.renderIcon(context, rc, icon, rc.getTranslatedString(translationKey),
                             null);
    } else
View Full Code Here

  {
    if (iconName == null)
      throw new NullPointerException(_LOG.getMessage(
        "NULL_ICONNAME"));

    Icon icon = _icons.get(iconName);
    if (resolveIcon)
    {
      if (icon instanceof ReferenceIcon)
      {
        // find the true icon, not a ReferenceIcon
View Full Code Here

    if (isRightToLeft() && !iconName.endsWith(StyleUtils.RTL_CSS_SUFFIX))
    {
      // append :rtl to the mappedIconName. If no icon with that name,
      // default to getting the icon with the original mappedIconName.
      String rtlIconName = iconName + StyleUtils.RTL_CSS_SUFFIX;
      Icon rtlIcon = skin.getIcon(rtlIconName);

      if ((rtlIcon == null) || rtlIcon.isNull())
      {
        // we want :rtl icons to default to regular icons, not a NullIcon,
        //  which is what the Skin does.
        rtlIcon = skin.getIcon(iconName);
        if (rtlIcon != null)
View Full Code Here

      // skip rendering back button for narrow-screen PDAs to reduce the
      // overall width of selectRangeChoiceBar.
      if (showBackButton && !narrowScreen)
      {
        Icon prevIcon = getIcon(rc, false, (prevOnClick != null));

        if (!prevIcon.isNull())
        {
          // We assign an id to the left arrow so that we can target it as
          // a partial target to work around bug 2275703 - see note above.
          if (iconID != null)
          {
            writer.startElement("td", component);
            writer.writeAttribute("id", iconID, null);

            // If the navigation bar that we are currently rendering
            // is included in a partial page response, add the icon
            // id to the list of partial targets.
            // =-=AEW Not sure this is still necessary
            PartialPageContext pprContext = rc.getPartialPageContext();
            if ((pprContext != null) &&
                pprContext.isInsidePartialTarget())
            {
              pprContext.addRenderedPartialTarget(iconID);
            }
          }
          else
          {
            // not in PPR mode, so just render the td (and id if not in a table)
            _renderStartTableCell(writer, id, renderedId);
            renderedId = true;
          }


          writer.writeAttribute("valign", "middle", null);
          _renderArrow(context, rc, prevIcon, false, prevOnClick);
          writer.endElement("td");

          _renderSpacerCell(context, rc);
        }

        _renderStartTableCell(writer, id, renderedId);
        renderedId = true;
        writer.writeAttribute("valign", "middle", null);
        writer.writeAttribute("nowrap", Boolean.TRUE, null);

        _renderLink(context,
                    rc,
                    false,
                    prevOnClick,
                    prevRecords,
                    id,
                    source,
                    backValue);

        writer.endElement("td");
        _renderSpacerCell(context, rc);
      }

      _renderStartTableCell(writer, id, renderedId);
      renderedId = true;
      writer.writeAttribute("valign", "middle", null);
      writer.writeAttribute("nowrap", Boolean.TRUE, null);

      _renderChoice(context,
                    rc,
                    component,
                    id,
                    source,
                    formName,
                    minValue,
                    currentValue,
                    blockSize,
                    maxValue,
                    validate);

      writer.endElement("td");

      // skip rendering back button for narrow-screen PDAs to reduce the
      // overall width of selectRangeChoiceBar.
      if (showNextButton && !narrowScreen)
      {
        _renderSpacerCell(context, rc);

        _renderStartTableCell(writer, id, true);
        writer.writeAttribute("valign", "middle", null);
        writer.writeAttribute("nowrap", Boolean.TRUE, null);

        _renderLink(context,
                    rc,
                    true,
                    nextOnClick,
                    nextRecords,
                    id,
                    source,
                    nextValue);

        writer.endElement("td");

        Icon nextIcon = getIcon(rc, true, (nextOnClick != null));
        if (!nextIcon.isNull())
        {
          _renderSpacerCell(context, rc);

          _renderStartTableCell(writer, id, true);
          writer.writeAttribute("valign", "middle", null);
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

                 ? SkinSelectors.AF_SELECT_INPUT_DATE_NEXT_ICON_NAME
                 : SkinSelectors.AF_SELECT_INPUT_DATE_NEXT_DISABLED_ICON_NAME;
      }
    }

    Icon icon = rc.getIcon(iconName);

    // If we've got an Icon, render it
    if (icon != null)
    {
      OutputUtils.renderIcon(context,
View Full Code Here

    {
      // Render the first valid icon found. The list should be in
      // decreasing priority order.
      for(String iconName : iconNames)
      {
        Icon icon = rc.getIcon(iconName);
        if(icon != null)
        {
          OutputUtils.renderIcon(context, rc, icon, shortDesc, null);
          break;
        }
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

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.