public boolean handleAction ( ActionEvent action ) { Object arg = null ; if ( action instanceof CommandEvent ) { arg = ( ( CommandEvent ) action ) . getArgument ( ) ; } return handleAction ( action . getSource ( ) , action . getActionCommand ( ) , arg ) ; }
Instructs this controller to process this action event . When an action is posted by a user interface element it will be posted to the controller in closest scope for that element . If that controller handles the event it should return true from this method to indicate that processing should stop . If it cannot handle the event it can return false to indicate that the event should be propagated to the next controller up the chain .