Package muntjac :: Package event :: Package dd :: Package acceptcriteria :: Module source_is_target :: Class SourceIsTarget
[hide private]
[frames] | no frames]

Class SourceIsTarget

source code

                           object --+        
                                    |        
    accept_criterion.IAcceptCriterion --+    
                                        |    
client_side_criterion.ClientSideCriterion --+
                                            |
                                           SourceIsTarget

A criterion that ensures the drag source is the same as drop target. Eg. Tree or Table could support only re-ordering of items, but no Transferables coming outside.

Note! Class is singleton, use get method to get the instance.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
accept(self, dragEvent)
Validates the data in event to be appropriate for the DropHandler.drop method.
source code
 
getIdentifier(self) source code

Inherited from client_side_criterion.ClientSideCriterion: isClientSideVerifiable, paint, paintContent, paintResponse

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
get(cls) source code
Class Variables [hide private]
  _instance = SourceIsTarget()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

accept(self, dragEvent)

source code 

Validates the data in event to be appropriate for the DropHandler.drop method.

Note that even if your criterion is validated on client side, you should always validate the data on server side too.

Overrides: accept_criterion.IAcceptCriterion.accept
(inherited documentation)

getIdentifier(self)

source code 
Overrides: client_side_criterion.ClientSideCriterion.getIdentifier