示例#1
0
 def onChange(self, event):
     idx = self.listBox.getSelectedIndex()
     value = self.listBox.getValue(idx)
     if u"All".equals(value):
         self.doEventsGet(None)
     else:
         self.doEventsGet(RsvpStatus.valueOf(value))
示例#2
0
 def createEventFilter(self):
     filter = HorizontalPanel()
     self.listBox.addItem(u"All")
     for rs in RsvpStatus.values():
         self.listBox.addItem(java.str(rs))
     filter.setSpacing(10)
     filter.add(HTML(u"Filter By: "))
     filter.add(self.listBox)
     return filter