public static final String getSelectedValue ( ListBox list ) { int index = list . getSelectedIndex ( ) ; return ( index >= 0 ) ? list . getValue ( index ) : null ; }
Utility function to get the current value .