Examples of GridPermissionsPerRoleVO


Examples of org.jallinone.system.permissions.java.GridPermissionsPerRoleVO

   * @param row selected row index
   * @param attributeName attribute name that identifies the selected grid column
   * @return <code>true</code> if the selected cell is editable, <code>false</code> otherwise
   */
  public boolean isCellEditable(GridControl grid,int row,String attributeName) {
    GridPermissionsPerRoleVO vo = (GridPermissionsPerRoleVO)grid.getVOListTableModel().getObjectForRow(row);
    if (attributeName.equals("editableInEdit") && !vo.isDefaultEditableInEdit())
      return false;
    if (attributeName.equals("editableInIns") && !vo.isDefaultEditableInIns())
      return false;
    if (attributeName.equals("required") && !vo.isEditableInIns() && !vo.isEditableInEdit())
      return true;
    if (attributeName.equals("required") && vo.isDefaultRequired())
      return false;
    if (attributeName.equals("visible"))
      return true;
    return grid.isFieldEditable(row,attributeName);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.