Package org.richfaces.component

Examples of org.richfaces.component.UICommandLink


    panelGrid2.setTransient(true);
   
    panelGrid2.setColumns(1);
   
    /** BUTO GE **/
      UICommandLink clGE = buildCommandLinkRich(
          "GE_" + nomColumna,
          null,
          renderList ,
          executeList);
     
      ValueExpression vGE = (ValueExpression) Utils.resolveExpression("/images/ElementPlus.jpg");
      HtmlGraphicImage giGE = buildGraphicImage(
          "GE_" + nomColumna,
          vGE,
          "Mayor que");
     
      clGE.getChildren().add(giGE);
     
      // setPropertyBean (ge = greater or equal,...)
      clGE.addActionListener(setPropertyActionListener(
            valueExpressionOperadors,
            "ge",
            String.class));
     
      panelGrid2.getChildren().add(clGE);
    /*************************/
   
   
    /** BUTO LE **/
      UICommandLink clLE = buildCommandLinkRich(
              "LE_" + nomColumna,
              null,
              renderList ,
              executeList);
     
      ValueExpression vLE = (ValueExpression) Utils.resolveExpression("/images/ElementMinus.jpg");
      HtmlGraphicImage giLE = buildGraphicImage(
              "LE_" + nomColumna,
              vLE,
              "Menor que");
     
      clLE.getChildren().add(giLE);
     
      // setPropertyBean (ge = greater or equal,...)
      clLE.addActionListener(setPropertyActionListener(
              valueExpressionOperadors,
              "le",
              String.class));
     
      panelGrid2.getChildren().add(clLE);
View Full Code Here


   */
    public static UICommandLink butoneraBooleana(
        String idColumna)
    {
     
      UICommandLink cl = buildCommandLinkRich(
          "butoneraBooleana_" + idColumna ,
          null,
          new ArrayList<String>(){/**
           *
           */
          private static final long serialVersionUID = 1L;

        {add("@this");}} ,
          new ArrayList<String>(){/**
           *
           */
          private static final long serialVersionUID = 1L;

        {add("@this");}});
   
    ValueExpression vTrue = (ValueExpression) Utils.resolveExpression("/images/16-security-lock.png");
    ValueExpression vFalse = (ValueExpression) Utils.resolveExpression("/images/16-em-cross.png");
    ValueExpression vNoTrueFalse = (ValueExpression) Utils.resolveExpression("/images/chkOff.gif");
    HtmlGraphicImage giTrue = buildGraphicImage("cl_gr_true" + idColumna, vTrue, "True");
    HtmlGraphicImage giFalse = buildGraphicImage("cl_gr_false" + idColumna, vFalse, "False");
    HtmlGraphicImage giNoTrueFalse = buildGraphicImage("cl_gr_notruefalse" + idColumna, vNoTrueFalse, "No llenado");
   

    giTrue.setValueExpression(
        "rendered",
        (ValueExpression) Utils.resolveExpression("#{  item.caractInmobles[" + idColumna + "] != null ?  item.caractInmobles[" + idColumna + "] : 'false' }"));
   
    giFalse.setValueExpression(
        "rendered",
        (ValueExpression) Utils.resolveExpression("#{not (item.caractInmobles[" + idColumna + "] != null ?  item.caractInmobles[" + idColumna + "] : 'false') }"));
   
    giNoTrueFalse.setValueExpression(
        "rendered",
        (ValueExpression) Utils.resolveExpression("#{item.caractInmobles[" + idColumna + "] == null}"));


    cl.addActionListener(setPropertyActionListener(
                "#{item.caractInmobles[" + idColumna + "]}",
                "#{not item.caractInmobles[" + idColumna + "] }", Boolean.class));
   
    cl.getChildren().add(giTrue);
    cl.getChildren().add(giFalse);
 
      return cl;
     
     
    }
View Full Code Here

    UIColumn column = (UIColumn) application.createComponent(UIColumn.COMPONENT_TYPE);
   
    column.setId("columnAmbLink_" + displayValue)
    column.setTransient(true);
   
       UICommandLink clSolInmoble = buildCommandLinkRich(
                   "clr_" + displayValue ,
                   null,
                   renderList , 
                   executeList);
      
       clSolInmoble.setActionExpression(Utils.createAction(action, String.class))
   
       // ValueExpression "value" de la imatge
    ValueExpression v = (ValueExpression) Utils.resolveExpression(imatge);
    HtmlGraphicImage gisolInmoble = buildGraphicImage(
                "clr_gr_" + displayValue,
                v,
                toolTip);
   
    clSolInmoble.getChildren().add(gisolInmoble);
   
    // setPropertyBean inmoble seleccionat
    clSolInmoble.addActionListener(setPropertyActionListener(
                "#{inmobleForm.currentInmobleIndex}",
                "#{item.idInmoble}",
                Integer.class));
   
   
    clSolInmoble.addActionListener(setPropertyActionListener(
        "#{inmobleForm.currentInmobleCaract}",
        "#{item}",
        InmobleCaract.class));

   
View Full Code Here

      {
     
        if (tipusColumna.compareTo("BOOL") == 0)
        {
       
          UICommandLink cl = butoneraBooleana(idColumna);
         
          column.getChildren().add(cl);
       
        }
        else
View Full Code Here

      ArrayList<String> renderList,
      ArrayList<String> executeList)
  {
    Application application = FacesContext.getCurrentInstance().getApplication();
   
    UICommandLink commandLink = (UICommandLink) application.createComponent(UICommandLink.COMPONENT_TYPE);
       
    commandLink.setId("commandLinkRich_" + displayValue);
    commandLink.setTransient(true);
   
    commandLink.setExecute(executeList);
    commandLink.setRender(renderList);
   
    //commandLink.setOncomplete("#{rich:component('formulariDatatable:dyn_taulaInmoblesVenedor:3:popupPanel_inputText_column_it_5')}.show()");
   
    if (bindingValue != null)
      commandLink.setActionExpression(Utils.createAction(bindingValue, MethodExpression.class));
   
       
    return commandLink;
 
  }
View Full Code Here

TOP

Related Classes of org.richfaces.component.UICommandLink

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.