2-APL UPC project.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 22 lines 509 B view raw
1package blockworld.lib; 2 3import javax.swing.JLabel; 4 5public class ROIntegerView extends JLabel implements IntegerAttrListener { 6 7 private static final long serialVersionUID = -4767694535801030958L; 8 9 protected ROIntegerAttr _attr; 10 11 public ROIntegerView( ROIntegerAttr attr ) { 12 _attr = attr; 13 _attr.addAttributeListener( this ); 14 15 // update text 16 onValueChange( new Integer( attr.getValue() ) ); 17 } 18 19 public void onValueChange( Integer value ) { 20 setText( value.toString() ); 21 } 22}