Package org.primefaces.model

Examples of org.primefaces.model.Cell


    UIComponent columnChild = column.getChildren().get(0);
    if(columnChild instanceof ValueHolder) {
      cellValue = ((ValueHolder) columnChild).getValue();
    }
   
    return new Cell(rowData, columnId, cellValue);
  }
View Full Code Here


    }
  }
 
  protected String isCellSelected(Object rowData, Object selection, boolean single) {
    if(single) {
      Cell cell = (Cell) selection;
      if(rowData.equals(cell.getRowData()))
        return cell.getColumnId();
      else
        return null;
     
    } else {
      StringBuffer buffer = new StringBuffer();
      Cell[] cells = (Cell[]) selection;
     
      for(Cell cell : cells) {
        if(rowData.equals(cell.getRowData())) {
          buffer.append(cell.getColumnId());
          buffer.append(",");
        }
      }
   
      return buffer.length() > 0 ? buffer.toString() : null;
View Full Code Here

        UIComponent columnChild = column.getChildren().get(0);
        if (columnChild instanceof ValueHolder) {
            cellValue = ((ValueHolder) columnChild).getValue();
        }

        return new Cell(rowData, column.getId(), cellValue);
    }
View Full Code Here

TOP

Related Classes of org.primefaces.model.Cell

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.