Package muntjac :: Package ui :: Module tree :: Class TargetItemAllowsChildren
[hide private]
[frames] | no frames]

Class TargetItemAllowsChildren

source code

                                                   object --+            
                                                            |            
    event.dd.acceptcriteria.accept_criterion.IAcceptCriterion --+        
                                                                |        
event.dd.acceptcriteria.client_side_criterion.ClientSideCriterion --+    
                                                                    |    
              event.dd.acceptcriteria.target_detail_is.TargetDetailIs --+
                                                                        |
                                                                       TargetItemAllowsChildren

A criterion that accepts Transferable only directly on a tree node that can have children.

Class is singleton, use TargetItemAllowsChildren.get to get the instance.


See Also: Tree.setChildrenAllowed

Instance Methods [hide private]
 
__init__(self)
Constructs a criterion which ensures that the value there is a value in TargetDetails that equals the reference value.
source code
 
accept(self, dragEvent)
Validates the data in event to be appropriate for the DropHandler.drop method.
source code

Inherited from event.dd.acceptcriteria.target_detail_is.TargetDetailIs: getIdentifier, paintContent

Inherited from event.dd.acceptcriteria.client_side_criterion.ClientSideCriterion: isClientSideVerifiable, paint, 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 = TargetItemAllowsChildren()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructs a criterion which ensures that the value there is a value in TargetDetails that equals the reference value.

Parameters:
  • dataFlavor - the type of data to be checked
  • value - the reference value to which the drop target detail will be compared
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: event.dd.acceptcriteria.accept_criterion.IAcceptCriterion.accept
(inherited documentation)