Package org.apache.myfaces.trinidad.skin

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


    )
  {
    if (iconName == null)
      throw new NullPointerException("Null iconName");

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


      referencedIconStack = new Stack<String>();
    }

    referencedIconStack.push(refName);

    Icon icon = getIcon(refName, false);

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

      return _resolveReferenceIcon((ReferenceIcon)icon,
View Full Code Here

  public Object endElement(
    ParseContext context,
    String       namespaceURI,
    String       localName) throws SAXParseException
  {
    Icon icon = null;

    if (CONTEXT_IMAGE_NAME.equals(localName))
    {
      icon = new ContextImageIcon(_uri,
                                  _rtlURI,
View Full Code Here

  {
    // render the determinate image (i.e., the one where we know the
    // percent complete.)
    String iconName = _getProcessingIconName(percentComplete);

    Icon determinateIcon = context.getIcon(iconName);
    String altText =  getDeterminateAltText(context,
                                            String.valueOf(percentComplete));
    // render the determinateIcon if we have one
    if ((determinateIcon != null) &&
        (!determinateIcon.equals(NullIcon.sharedInstance())))
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      FacesContext fContext = context.getFacesContext();
      OutputUtils.renderIcon(fContext,
                             arc,
View Full Code Here

    UIXRenderingContext context,
    int              percentComplete
    ) throws IOException
  {
    // Grab the indeterminate Icon
    Icon indeterminateIcon = context.getIcon(
                                AF_PROGRESS_INDICATOR_INDETERMINATE_ICON_NAME);
    String processingString =
      getTranslatedString(context, "af_progressIndicator.PROCESSING");
    // render the indeterminateIcon if we have one
    if ((indeterminateIcon != null) &&
        (!indeterminateIcon.equals(NullIcon.sharedInstance())))
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      FacesContext fContext = context.getFacesContext();
      OutputUtils.renderIcon(fContext,
                             arc,
View Full Code Here

        writer.startElement("tr", null);
      }

      if (showBackButton)
      {
        Icon prevIcon = getIcon(arc, 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 = arc.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, arc, prevIcon, false, prevOnClick);
          writer.endElement("td");

          _renderSpacerCell(context, arc);
        }

        _renderStartTableCell(writer, id, renderedId);
        renderedId = true;
        writer.writeAttribute("valign", "middle", null);
        writer.writeAttribute("nowrap", Boolean.TRUE, null);
        _renderLink(context, arc, false, prevOnClick, prevRecords, id);
        writer.endElement("td");
        _renderSpacerCell(context, arc);
      }

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

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

      writer.endElement("td");

      if (showNextButton)
      {
        _renderSpacerCell(context, arc);

        _renderStartTableCell(writer, id, true);
        writer.writeAttribute("valign", "middle", null);
        writer.writeAttribute("nowrap", Boolean.TRUE, null);
        _renderLink(context, arc, true, nextOnClick, nextRecords, id);
        writer.endElement("td");

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

          _renderStartTableCell(writer, id, true);
          writer.writeAttribute("valign", "middle", null);
View Full Code Here


    boolean vertical = _getOrientation(context, node);

    // Grab the separator Icon, which is rendered by the BetweenRenderer
    Icon separatorIcon = context.getIcon(
                                   AF_NAVIGATION_PATH_SEPARATOR_ICON_NAME);

    BetweenRenderer between = new BetweenRenderer(node,
                                                  vertical,
                                                  realChildCount,
View Full Code Here

    {
      String iconName = getIconName();
      assert (iconName != null);
     
      Skin skin = context.getSkin();
      Icon icon = skin.getIcon(iconName);
     
      if (icon != null)
      {
        BaseDesktopUtils.renderIcon(context,
                                    icon,
View Full Code Here

                 ? SkinSelectors.AF_SELECT_INPUT_DATE_NEXT_ICON_NAME
                 : SkinSelectors.AF_SELECT_INPUT_DATE_NEXT_DISABLED_ICON_NAME;
      }
    }

    Icon icon = arc.getIcon(iconName);

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

  // Create the IconData for the specified Skin
  private static IconData _createIconData(
    UIXRenderingContext context)
  {
    Icon start = context.getIcon(AF_MENU_BAR_START_ICON_NAME);
    Icon end = context.getIcon(AF_MENU_BAR_END_ICON_NAME);
    Icon background = context.getIcon(AF_MENU_BAR_BACKGROUND_ICON_NAME);
    Icon separator = context.getIcon(AF_MENU_BAR_SEPARATOR_ICON_NAME);
    Icon leadingSeparator = context.getIcon(AF_MENU_BAR_LEADING_SEPARATOR_ICON_NAME);
    Icon trailingSeparator = context.getIcon(AF_MENU_BAR_TRAILING_SEPARATOR_ICON_NAME);

    return new IconData(start,
                        end,
                        background,
                        separator,
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.