Package com.projity.graphic.configuration

Examples of com.projity.graphic.configuration.HasTaskIndicators


  }
 
 
 
  public void setIndicators(Object value,JComponent label,StringBuffer text,boolean isSelected, boolean hasFocus){
    HasTaskIndicators indicators = (HasTaskIndicators)value;

    if (indicators.getWorkCalendar() != null) {
      setLook(calendar,isSelected,hasFocus);
      label.add(calendar);
      text.append(Messages.getString("TaskIndicatorsComponent.TheCalendar") + indicators.getWorkCalendar().getName() + Messages.getString("TaskIndicatorsComponent.isAssignedToTheTask")); //$NON-NLS-1$ //$NON-NLS-2$
    }
    long constraintDate = indicators.getConstraintDate();
    if (constraintDate != 0) {
      setLook(constraint,isSelected,hasFocus);
      label.add(constraint);
      text.append(Messages.getString("TaskIndicatorsComponent.ThisTaskHasA") + constraintTypeField.getText(indicators,null) + Messages.getString("TaskIndicatorsComponent.constraintOn") + constraintDateField.getText(indicators,null)+"<br>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    }
    if (indicators.isInvalidIntersectionCalendar()) {
      setLook(invalidCalendar,isSelected,hasFocus);
      label.add(invalidCalendar);
      text.append(Messages.getString("TaskIndicatorsComponent.TheIntersection")); //$NON-NLS-1$
    }
    String note = indicators.getNotes();
    if (note != null && note.length() > 0) {
      setLook(notes,isSelected,hasFocus);
      label.add(notes);
      text.append(Messages.getString("TaskIndicatorsComponent.Notes") + note + "'<br>"); //$NON-NLS-1$ //$NON-NLS-2$
    }
    if (indicators.isComplete()) {
      setLook(completed,isSelected,hasFocus);
      label.add(completed);
      text.append(Messages.getString("TaskIndicatorsComponent.TheTaskWasCompletedOn") + finish.getText(indicators,null)+"<br>"); //$NON-NLS-1$ //$NON-NLS-2$
    }
   
    if (indicators.isParentWithAssignments()) {
      setLook(parentAssignment,isSelected,hasFocus);
      label.add(parentAssignment);
      text.append(Messages.getString("TaskIndicatorsComponent.ThisParentTaskHasResources") + ((NormalTask)indicators).getResourceNames()+"<br>"); //$NON-NLS-1$ //$NON-NLS-2$
    }
   
View Full Code Here

TOP

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

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.