Package org.uengine.kernel

Examples of org.uengine.kernel.CompositeRole


    int[] selectedIndeces=list.getSelectedIndices();
   
    if(selectedIndeces.length == 0) return null;   
    if(selectedIndeces.length == 1) return list.getSelectedValue();   
    if(selectedIndeces.length > 1){
      CompositeRole cr = new CompositeRole();
      Object[] objRoles = list.getSelectedValues();
      Role[] roleRoles = new Role[objRoles.length];

      for(int i=0; i<objRoles.length; i++)
        roleRoles[i] = (Role)objRoles[i];
     
      cr.setRoles(roleRoles);
     
      return cr;
    }else{
      return null;
    }
View Full Code Here


    if(obj==null) list.clearSelection();
   
    HashMap rolesMap = new HashMap();
   
    if(obj instanceof CompositeRole){
      CompositeRole cr = (CompositeRole)obj;
      Role[] arrRole = cr.getRoles();
      for(int i=0; i<arrRole.length; i++){
        rolesMap.put(arrRole[i].getName(), arrRole[i]);
      }
    }else if(obj instanceof Role){
      Role role = (Role)obj;
View Full Code Here

TOP

Related Classes of org.uengine.kernel.CompositeRole

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.