question: private void updateUiFromCommand ( Command command ) { if ( command == null ) { return ; } actionsComboBox . setText ( command . getAction ( ) ) ; dataTextField . setText ( command . getData ( ) ) ; categoryTextField . setText ( command . getCategory ( ) ) ; mimeTextField . setText ( command . getMimeType ( ) ) ; componentTextField . setText ( command . getComponent ( ) ) ; userTextField . setText ( command . getUser ( ) ) ; flagsList_ . removeSelectionInterval ( 0 , flagsList_ . getItemsCount ( ) ) ; List < IntentFlags > flags = command . getFlags ( ) ; if ( flags != null && flags . size ( ) > 0 ) { for ( IntentFlags flag : command . getFlags ( ) ) { flagsList_ . setSelectedValue ( flag , false ) ; } } else { flagsList_ . setSelectedIndex ( 0 ) ; } updateFlagsTextField ( ) ; tableModel_ . removeAllRows ( ) ; List < ExtraField > extras = command . getExtras ( ) ; if ( extras != null && extras . size ( ) > 0 ) { for ( ExtraField extra : extras ) { tableModel_ . addRow ( extra ) ; } } updateTableVisibility ( ) ; }
target:  Fills up vies from given command