Package org.ajax4jsf.renderkit

Examples of org.ajax4jsf.renderkit.ComponentVariables


writer.endElement("table");

  }   
 
  public void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, component);
    doEncodeEnd(writer, context, (org.richfaces.component.UIListShuttle)component, variables );

    ComponentsVariableResolver.removeVariables(this, component);
  }   
View Full Code Here


    return org.richfaces.component.UIDataList.class;
  }

 
  public void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component ) throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, component);
    doEncodeBegin(writer, context, (org.richfaces.component.UIDataList)component, variables );
  }   
View Full Code Here


  }   
 
    public void doEncodeChildren(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, component);
    doEncodeChildren(writer, context, (org.richfaces.component.UIDataList)component, variables );
  }   
View Full Code Here

writer.endElement("ol");

  }   
 
  public void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, component);
    doEncodeEnd(writer, context, (org.richfaces.component.UIDataList)component, variables );

    ComponentsVariableResolver.removeVariables(this, component);
  }   
View Full Code Here

    state.setFrozenColumnCount(ScrollableDataTableUtils.getFrozenColumnsCount(grid));
    state.setFrozenPart(isFrozen);
    int colsCount = ColumnWalker.iterateOverColumns(context, grid, footerCellRenderer, writer, state);
    int rowsCount = grid.getRowCount();
   
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, grid);
    variables.setVariable("rows_count", new Integer(rowsCount));
    variables.setVariable("columns_count", new Integer(colsCount));
   
  }
View Full Code Here

 
  public void setUpColumnsWidth(FacesContext context, UIScrollableDataTable grid) throws IOException{
    ScrollableDataTableRendererState state = ScrollableDataTableRendererState.getRendererState(context);
    state.setFrozenColumnCount(ScrollableDataTableUtils.getFrozenColumnsCount(grid));
    ColumnWalker.iterateOverColumns(context, grid, columnsWidthCounter, null, state);   
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, grid);
    int sumWidth = state.getSumWidth() + 200;
    variables.setVariable("sumWidth", new Integer(sumWidth));
  }
View Full Code Here

    return getResource("images/spacer.gif").getUri(
        context, menuGroup);
  }
 
  public void initializeStyleClasses(FacesContext context, UIMenuGroup menuGroup) {
    ComponentVariables variables =
      ComponentsVariableResolver.getVariables(this, menuGroup);
    delegate.initializeStyles(context, menuGroup, menuGroup.isDisabled(), variables);
  }
View Full Code Here

    delegate.initializeStyles(context, menuGroup, menuGroup.isDisabled(), variables);
  }
 
  public void initializeResources(FacesContext context, UIMenuGroup menuGroup)
  throws IOException {
    ComponentVariables variables =
      ComponentsVariableResolver.getVariables(this, menuGroup);

    String icon = ViewUtil.getResourceURL(menuGroup.getIcon());
    if (icon == null || icon.length() == 0) {
      icon = getSpacerUri(context, menuGroup);
    }

    variables.setVariable("icon", icon);
   
    String iconDisabled = ViewUtil.getResourceURL(menuGroup.getIconDisabled());
    if (iconDisabled == null || iconDisabled.length() == 0) {
      iconDisabled = getSpacerUri(context, menuGroup);
    }

    variables.setVariable("iconDisabled", iconDisabled);
   
    String actualIcon = menuGroup.isDisabled() ? iconDisabled : icon;
    variables.setVariable("actualIcon", actualIcon);

    String iconFolder = ViewUtil.getResourceURL(menuGroup.getIconFolder());
    if (iconFolder == null || iconFolder.length() == 0) {
      iconFolder = getSpacerUri(context, menuGroup);
    }

    variables.setVariable("iconFolder", iconFolder);

    String iconFolderDisabled = ViewUtil.getResourceURL(menuGroup.getIconFolderDisabled());
    if (iconFolderDisabled == null || iconFolderDisabled.length() == 0) {
      iconFolderDisabled = getSpacerUri(context, menuGroup);
    }

    variables.setVariable("iconFolderDisabled", iconFolderDisabled);
   
    String actualIconFolder = menuGroup.isDisabled() ? iconFolderDisabled : iconFolder;
    variables.setVariable("actualIconFolder", actualIconFolder);
  }
View Full Code Here

    return org.richfaces.component.UITogglePanel.class;
  }

 
  public void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component ) throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, component);
    doEncodeBegin(writer, context, (org.richfaces.component.UITogglePanel)component, variables );
  }   
View Full Code Here

writer.endElement("div");

  }   
 
  public void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, component);
    doEncodeEnd(writer, context, (org.richfaces.component.UITogglePanel)component, variables );

    ComponentsVariableResolver.removeVariables(this, component);
  }   
View Full Code Here

TOP

Related Classes of org.ajax4jsf.renderkit.ComponentVariables

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.