public ActionListBox addItem ( final String label , final Runnable action ) { return addItem ( new Runnable ( ) { @ Override public void run ( ) { action . run ( ) ; } @ Override public String toString ( ) { return label ; } } ) ; }
Adds a new item to the list which is displayed in the list using a supplied label .