com.dlsc.flexgantt.policy.layer
Class DefaultPopupPolicy

java.lang.Object
  extended by com.dlsc.flexgantt.policy.AbstractPolicy
      extended by com.dlsc.flexgantt.policy.layer.DefaultPopupPolicy
All Implemented Interfaces:
IPolicy, IPopupPolicy

public class DefaultPopupPolicy
extends AbstractPolicy
implements IPopupPolicy

The default implementation of IPopupPolicy. For more information please refer to the interface documentation.

Since:
1.0
Author:
Dirk Lemmermann

Constructor Summary
DefaultPopupPolicy()
           
 
Method Summary
 java.lang.Object getPopupValue(java.lang.Object node, java.lang.Object timelineObject, IGanttChartModel model, boolean extended)
          Returns an object that can be utilized to provide some kind of popup for a timeline object.
 
Methods inherited from class com.dlsc.flexgantt.policy.AbstractPolicy
assertClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPopupPolicy

public DefaultPopupPolicy()
Method Detail

getPopupValue

public java.lang.Object getPopupValue(java.lang.Object node,
                                      java.lang.Object timelineObject,
                                      IGanttChartModel model,
                                      boolean extended)
Description copied from interface: IPopupPolicy
Returns an object that can be utilized to provide some kind of popup for a timeline object. A popup is similar to a tooltip but provides more details in various ways, not just as a short text.

Specified by:
getPopupValue in interface IPopupPolicy
Parameters:
node - the tree node on which the timeline object is stored
timelineObject - the timeline object for which to return a popup object
model - the data source that returned the node and timeline object
extended - a flag that signals whether the user wants to see the standard popup information or the extended version
Returns:
an arbitrary object that must be interpreted by the popup renderer in order to visualize something meaningful for the user