Package com.ptc.projectmanagement.plan
Class PlannableHealthStatusIconHandler
java.lang.Object
com.ptc.projectmanagement.plan.PlannableHealthStatusIconHandler
- All Implemented Interfaces:
HealthStatusIconHandler
PlannableHealthStatusIconHandler - handler for returning health status icons.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptiongetHealthStatusImageIcon(List objectList) This API is called from the setModelData of the HealthStatusViewDataUtility.java.getIcon(HealthStatusType healthStatusType, boolean isComplete, boolean isCancelled, AbstractPlanActivity activity) Use: This API will return the graphical 'health status' icon of activity.Use: This API will return the graphical 'health status' icon of floating baseline member.Returns relative path for the icon for plannables that are cancelled.Returns relative path for the icon for plannables that are completed Late.Returns relative path for the icon for plannables that are completed.protected IconComponentgetStatusIcon(String imagePath, String toolTip) This API returns the Icon Component object after setting the path and tool-tip.
-
Method Details
-
getIcon
public Object getIcon(HealthStatusType healthStatusType, boolean isComplete, boolean isCancelled, AbstractPlanActivity activity) throws WTException, WTPropertyVetoException Use: This API will return the graphical 'health status' icon of activity. It will return Icon Component object for activity that is Completed/Cancelled or having status- Red/Yellow/Green/Unavailable. In any other cases, it would call the healthStatusType.getDisplay() method and return that object which is textual representation of the health status.- Specified by:
getIconin interfaceHealthStatusIconHandler- Parameters:
HealthStatusType- healthStatusType boolean isComplete, boolean isCancelled, Locale locale, AbstractPlanActivity activity - This needs to be provided in order to check if activity has been completed on/before or after the deadline. pass this argument ONLY when you need icon for Activity and not for Plan or Resource Assignment.- Returns:
- Object
- Throws:
WTPropertyVetoExceptionWTException-
Supported API: true
-
getIconForCompletedLate
Returns relative path for the icon for plannables that are completed Late. e.g. "netmarkets/images/late_completed_activities.png"
Supported API: true- Specified by:
getIconForCompletedLatein interfaceHealthStatusIconHandler- Returns:
-
getIconForCompletedPlannables
Returns relative path for the icon for plannables that are completed. e.g. "netmarkets/images/completed_activities.png"
Supported API: true- Specified by:
getIconForCompletedPlannablesin interfaceHealthStatusIconHandler- Returns:
-
getIconForCancelledPlannables
Returns relative path for the icon for plannables that are cancelled. e.g. "netmarkets/images/cancelled_activities.png"
Supported API: true- Specified by:
getIconForCancelledPlannablesin interfaceHealthStatusIconHandler- Returns:
-
getHealthStatusImageIcon
This API is called from the setModelData of the HealthStatusViewDataUtility.java. Handles icons for Activity, Plan, ResourceAssignment, SharedAssignment objects and Floating Baseline Member Link objects
Supported API: true- Specified by:
getHealthStatusImageIconin interfaceHealthStatusIconHandler- Parameters:
List- objectList- Returns:
- HashMap<Object, Object> - <activity/Plan/ResourceAssignment/FloatingBaseline Member, icon component>
-
getIcon
public HashMap<Object,Object> getIcon(FloatingBaselineMember fbmlObject, Object result, HashMap<Object, Object> iconList) throws WTExceptionUse: This API will return the graphical 'health status' icon of floating baseline member. It will return Icon Component object for floating baseline member that is status- Red/Yellow/Green/Unavailable. In any other cases, it would call the healthStatusTypeFBML.getDisplay() method and return that object which is textual representation of the health status.- Specified by:
getIconin interfaceHealthStatusIconHandler- Parameters:
BaseHealthStatusType- healthStatusTypeFBML- Returns:
- Object
- Throws:
WTException-
Supported API: true
-
getStatusIcon
This API returns the Icon Component object after setting the path and tool-tip.
Supported API: true- Parameters:
String- imagePath eg."netmarkets/images/cancelled_activities.png".String- toolTip.- Returns:
- IconComponent object.
-