com.sun.faces.renderkit.html_basic

Class ButtonRenderer

    • Field Detail

      • ATTRIBUTES

        private static final Attribute[] ATTRIBUTES
    • Constructor Detail

      • ButtonRenderer

        public ButtonRenderer()
    • Method Detail

      • decode

        public void decode(javax.faces.context.FacesContext context,
                  javax.faces.component.UIComponent component)
        Overrides:
        decode in class HtmlBasicRenderer
      • encodeBegin

        public void encodeBegin(javax.faces.context.FacesContext context,
                       javax.faces.component.UIComponent component)
                         throws java.io.IOException
        Overrides:
        encodeBegin in class javax.faces.render.Renderer
        Throws:
        java.io.IOException
      • encodeEnd

        public void encodeEnd(javax.faces.context.FacesContext context,
                     javax.faces.component.UIComponent component)
                       throws java.io.IOException
        Overrides:
        encodeEnd in class HtmlBasicRenderer
        Throws:
        java.io.IOException
      • wasClicked

        private static boolean wasClicked(javax.faces.context.FacesContext context,
                         javax.faces.component.UIComponent component,
                         java.lang.String clientId)

        Determine if this component was activated on the client side.

        Parameters:
        context - the FacesContext for the current request
        component - the component of interest
        clientId - the client id, if it has been retrieved, otherwise null
        Returns:
        true if this component was in fact activated, otherwise false
      • isReset

        private static boolean isReset(javax.faces.component.UIComponent component)
        Parameters:
        component - the component of interest
        Returns:
        true if the button represents a reset button, otherwise false
      • getButtonType

        private static java.lang.String getButtonType(javax.faces.component.UIComponent component)

        If the component's type attribute is null or not equal to reset, submit or button, default to submit.

        Parameters:
        component - the component of interest
        Returns:
        the type for this button
      • getNonOnClickBehaviors

        private static java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> getNonOnClickBehaviors(javax.faces.component.UIComponent component)

Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.