Package com.projity.graphic.configuration

Examples of com.projity.graphic.configuration.HasResourceIndicators


    return value instanceof HasResourceIndicators;
  }
 
 
  public void setIndicators(Object value,JComponent label,StringBuffer text,boolean isSelected, boolean hasFocus){
    HasResourceIndicators indicators = (HasResourceIndicators)value;
    if (indicators.isInTeam()) {
      label.add(team);
      setLook(team,isSelected,hasFocus);
      text.append(Messages.getString("ResourceIndicatorsComponent.ThisResourceIsOnTheProjectTeam")); //$NON-NLS-1$
    }
    if (indicators.isUser()) {
      int license=indicators.getLicense();
      JLabel l;
      switch (license) {
      case ApplicationUser.POWER_USER: l=indicators.isAdministrator()?userAdmin:(indicators.isExternal()?userPowerUserExternal:userPowerUser);
        break;
      case ApplicationUser.LITE_USER: l=indicators.isExternal()?userLiteUserExternal:userLiteUser;
        break;
      case ApplicationUser.INACTIVE: l=userInactive;
      break;
      default:
        l=null;
        break;
      }
      if (l!=null){
        label.add(l);
        setLook(l,isSelected,hasFocus);
        text.append(Messages.getString("ResourceIndicatorsComponent.UserLicense")+UserUtil.licenseToLabel(license)+(indicators.isAdministrator()?Messages.getString("ResourceIndicatorsComponent.Administrator"):"")+(indicators.isExternal()?Messages.getString("ResourceIndicatorsComponent.PartnerCustomer"):"")+"<br>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.projity.graphic.configuration.HasResourceIndicators

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.