1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Criterion that wraps another criterion and inverts its return value."""
17
18 from muntjac.event.dd.acceptcriteria.client_side_criterion import \
19 ClientSideCriterion
20
21
22 -class Not(ClientSideCriterion):
23 """Criterion that wraps another criterion and inverts its return value.
24 """
25
27 self._acceptCriterion = acceptCriterion
28
29
30 - def paintContent(self, target):
31 super(Not, self).paintContent(target)
32 self._acceptCriterion.paint(target)
33
34
36 return not self._acceptCriterion.accept(dragEvent)
37
38
40 return 'com.vaadin.event.dd.acceptcriteria.Not'
41