Esempio n. 1
0
 def buttonClick(self, event):
     # create Notification instance and customize
     n = Notification(self._caption.getValue(),
                      self._description.getValue(), self._style.getValue())
     n.setPosition(self._position.getValue())
     d = self._delay.getValue()
     n.setDelayMsec(int(d))  # sec->msec
     self._c.getWindow().showNotification(n)
Esempio n. 2
0
 def buttonClick(self, event):
     # create Notification instance and customize
     n = Notification(self._caption.getValue(),
             self._description.getValue(), self._style.getValue())
     n.setPosition(self._position.getValue())
     d = self._delay.getValue()
     n.setDelayMsec( int(d) )  # sec->msec
     self._c.getWindow().showNotification(n)
Esempio n. 3
0
 def showPojoState(self):
     n = Notification('POJO state', Notification.TYPE_TRAY_NOTIFICATION)
     n.setPosition(Notification.POSITION_CENTERED)
     n.setDescription(('First name: ' + self._person.getFirstName() +
                       '<br/>Last name: ' + self._person.getLastName() +
                       '<br/>Country: ' + self._person.getCountryCode() +
                       '<br/>Birthdate: ' + self._person.getBirthdate() +
                       '<br/>Shoe size: ' + self._person.getShoesize() +
                       '<br/>Password: ' + self._person.getPassword()))
     self.getWindow().showNotification(n)
Esempio n. 4
0
 def showPojoState(self):
     n = Notification('POJO state', Notification.TYPE_TRAY_NOTIFICATION)
     n.setPosition(Notification.POSITION_CENTERED)
     n.setDescription('First name: ' + self._person.getFirstName()
             + '<br/>Last name: ' + self._person.getLastName()
             + '<br/>Country: ' + self._person.getCountryCode()
             + '<br/>Birthdate: ' + self._person.getBirthdate()
             + '<br/>Shoe size: ' + self._person.getShoesize()
             + '<br/>Password: '******'<br/>UUID: ' + self._person.getUuid())
     self.getWindow().showNotification(n)