org.richfaces.renderkit.html

## Class ToolbarRendererBase

- java.lang.Object
- - javax.faces.render.Renderer
  - - org.richfaces.renderkit.RendererBase
    - - org.richfaces.renderkit.html.ToolbarRendererBase

- Direct Known Subclasses:
    ToolbarGroupRenderer, ToolbarRenderer

      public abstract class ToolbarRendererBase
      extends org.richfaces.renderkit.RendererBase

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `ToolbarRendererBase.ItemSeparators`
    `static class` | `ToolbarRendererBase.Locations`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Map<String,org.richfaces.ui.common.ComponentAttribute>` | `ITEMS_HANDLER_ATTRIBUTES`
    `static String` | `RENDERER_TYPE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ToolbarRendererBase()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)`
    `protected String` | `encodeClientItemID(javax.faces.component.UIComponent component)`
    `protected Class<? extends javax.faces.component.UIComponent>` | `getComponentClass()`
    `protected String` | `getHeightToolbar(javax.faces.component.UIComponent component)`
    `protected Map<String,Object>` | `getOptions(javax.faces.component.UIComponent component)`
    `boolean` | `getRendersChildren()`
    `protected String` | `getWidthToolbar(javax.faces.component.UIComponent component)`
    `protected void` | `insertDefaultSeparatorIfNeed(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer)` Inserts default separator.
    `protected void` | `insertSeparatorIfNeed(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer)` Inserts separator between toolbar items.
    `protected boolean` | `isPropertyRendered(String property)`
    `protected void` | `renderColElements(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)`

    - ### Methods inherited from class org.richfaces.renderkit.RendererBase

      `concatClasses, concatStyles, decode, doDecode, doEncodeBegin, doEncodeChildren, doEncodeEnd, encodeBegin, encodeEnd, getResourcePath, getSkin, getUtils, preDecode, preEncodeBegin, queueComponentEventForBehaviorEvent, renderChildren`

    - ### Methods inherited from class javax.faces.render.Renderer

      `convertClientId, getConvertedValue`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### RENDERER_TYPE

          public static final String RENDERER_TYPE

      See Also:
        Constant Field Values

    - #### ITEMS_HANDLER_ATTRIBUTES

          public static final Map<String,org.richfaces.ui.common.ComponentAttribute> ITEMS_HANDLER_ATTRIBUTES

  - ### Constructor Detail

    - #### ToolbarRendererBase

          public ToolbarRendererBase()

  - ### Method Detail

    - #### renderColElements

          protected void renderColElements(javax.faces.context.FacesContext context,
                               javax.faces.component.UIComponent component)
                                    throws IOException

      Throws:
        `IOException`

    - #### encodeChildren

          public void encodeChildren(javax.faces.context.FacesContext context,
                            javax.faces.component.UIComponent component)
                              throws IOException

      Overrides:
        `encodeChildren` in class `org.richfaces.renderkit.RendererBase`
      Throws:
        `IOException`

    - #### insertSeparatorIfNeed

          protected void insertSeparatorIfNeed(javax.faces.context.FacesContext context,
                                   javax.faces.component.UIComponent component,
                                   javax.faces.context.ResponseWriter writer)
                                        throws IOException

      Inserts separator between toolbar items. Uses facet "itemSeparator" if it is set and default separator implementation if facet is not set.
      Parameters:
        `context` - - faces context
        `component` - - component
        `writer` - - response writer
      Throws:
        `IOException` - - in case of IOException during writing to the ResponseWriter

    - #### insertDefaultSeparatorIfNeed

          protected void insertDefaultSeparatorIfNeed(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent component,
                                          javax.faces.context.ResponseWriter writer)
                                               throws IOException

      Inserts default separator. Possible values are: "square", "disc", "grid", "line" - for separators provided by component implementation; "none" - for no separators between toolbar items; URI string value - for custom images specified by the page author.
      Parameters:
        `context` - - faces context
        `component` - - component
        `writer` - - response writer
      Throws:
        `IOException` - - in case of IOException during writing to the ResponseWriter

    - #### getComponentClass

          protected Class<? extends javax.faces.component.UIComponent> getComponentClass()

      Overrides:
        `getComponentClass` in class `org.richfaces.renderkit.RendererBase`

    - #### getRendersChildren

          public boolean getRendersChildren()

      Overrides:
        `getRendersChildren` in class `javax.faces.render.Renderer`

    - #### isPropertyRendered

          protected boolean isPropertyRendered(String property)

    - #### getWidthToolbar

          protected String getWidthToolbar(javax.faces.component.UIComponent component)

    - #### getHeightToolbar

          protected String getHeightToolbar(javax.faces.component.UIComponent component)

    - #### getOptions

          protected Map<String,Object> getOptions(javax.faces.component.UIComponent component)

    - #### encodeClientItemID

          protected String encodeClientItemID(javax.faces.component.UIComponent component)

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.