com.miginfocom.ashape.interaction
Interface OverrideFilter


public interface OverrideFilter

A filter to implement if providing conditional overrides. An implmentor may for instance take Activity objects as arguments and returned another object than the provided if some property of the Activity is set, or not set. It might for instance return an recurrenc icon if the activity is recurring. Or a PlaceRect that reflects the completion of that activity.


Method Summary
 java.lang.Object getOverride(java.lang.Object subject, java.lang.Object defaultObject)
          Return an object other than defaultObject depending onthe state of subject.
 

Method Detail

getOverride

java.lang.Object getOverride(java.lang.Object subject,
                             java.lang.Object defaultObject)
Return an object other than defaultObject depending onthe state of subject.

Parameters:
subject - The subject that should be investigated. The object type is a loose contract between the user of this object and this object.
defaultObject - The default object to return if nothing specific to return.
Returns:
The object. May be null or defaultObject, or any other valid object, normally of the same class type as defaultObject.

Returning defaultObject means that there is no current override and normally this lead to other override filters or constructs beeing evaluated.



Copyright © 2009 MiG InfoCom AB. All Rights Reserved.