Esempio n. 1
0
 /** return if this LED is lit */
 public boolean isSelected() {
   return delegate.isDown();
 }
Esempio n. 2
0
 /** light up this LED */
 public void setSelected(boolean on) {
   if (delegate.isDown() != on) {
     delegate.setDown(on);
     repaint();
   }
 }