Package org.ajax4jsf.renderkit

Examples of org.ajax4jsf.renderkit.ComponentVariables


  }

  public void encodeBegin(FacesContext context, UIComponent component)
      throws IOException {
    UIOrderingBaseComponent orderingComponent = (UIOrderingBaseComponent) component;
    ComponentVariables variables = ComponentsVariableResolver.getVariables(
        this, component);
    variables.setVariable(ITEM_STATE_VAR_NAME, orderingComponent
        .getItemState());

    super.encodeBegin(context, component);
  }
View Full Code Here



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

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

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

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

writer.endElement("td");

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

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

    return "";
  }

  public void initializeLines(FacesContext context, UITreeNode treeNode)
  throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(
        this, treeNode);

    UITree tree = treeNode.getUITree();

    if (tree.isShowConnectingLines()) {
      if (Boolean.TRUE.equals(treeNode.getAttributes().get("isLastElement"))) {
        variables.setVariable("line", "dr-tree-h-ic-line-last");
      } else {
        variables.setVariable("line", "dr-tree-h-ic-line-node");
      }
      if (tree.isExpanded() && !tree.isLeaf()) {
        variables
        .setVariable("lineFirst", "dr-tree-h-ic-line-exp");
      } else {
        variables.setVariable("lineFirst",
        "dr-tree-h-ic-line-clp");
      }
    }
  }
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.UIDataFltrSlider)component, variables );

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

    }
  }

  public void initializeResources(FacesContext context, UITreeNode treeNode)
  throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(
        this, treeNode);

    UITree tree = treeNode.getUITree();
    String resource;
    String cssClass;
    resource = UITree.DEFAULT_HIGHLIGHTED_CSS_CLASS;
    resource += " rich-tree-node-highlighted";
    cssClass = tree.getHighlightedClass();
    if (cssClass != null) {
      resource += " " + cssClass;
    }
    cssClass = treeNode.getHighlightedClass();
    if (cssClass != null) {
      resource += " " + cssClass;
    }
    variables.setVariable("highlightedClass", resource);

    resource = UITree.DEFAULT_SELECTED_CSS_CLASS;
    resource += " rich-tree-node-selected";
    cssClass = tree.getSelectedClass();
    if (cssClass != null) {
      resource += " " + cssClass;
    }
    cssClass = treeNode.getSelectedClass();
    if (cssClass != null) {
      resource += " " + cssClass;
    }
    variables.setVariable("selectedClass", resource);


    resource = ViewUtil.getResourceURL(treeNode.getIcon());     
    if (resource == null) {
      resource = ViewUtil.getResourceURL(tree.getIcon());     
    }

    if (resource != null) {
      variables.setVariable("folderIcon", resource);
    }

    resource = ViewUtil.getResourceURL(treeNode.getIconCollapsed());
    if (resource == null) {
      resource = ViewUtil.getResourceURL(tree.getIconCollapsed());
    }

    if (resource != null) {
      variables.setVariable("collapsed", resource);
    }

    resource = ViewUtil.getResourceURL(treeNode.getIconExpanded());
    if (resource == null) {
      resource = ViewUtil.getResourceURL(tree.getIconExpanded());
    }

    if (resource != null) {
      variables.setVariable("expanded", resource);
    }

    resource = ViewUtil.getResourceURL(treeNode.getIconLeaf());
    if (resource == null) {
      resource = ViewUtil.getResourceURL(tree.getIconLeaf());
    }

    if (resource != null) {
      variables.setVariable("leafIcon", resource);
    }
  }
View Full Code Here

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

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

writer.endElement("table");

  }   
 
    public void doEncodeChildren(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
    ComponentVariables variables = ComponentsVariableResolver.getVariables(this, component);
    doEncodeChildren(writer, context, (org.richfaces.component.UIPanelMenuGroup)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.UIPanelMenuGroup)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.