protected void update ( ) { putValue ( Action . ACTION_COMMAND_KEY , command . getActionCommand ( ) ) ; CommandFaceDescriptor face = command . getFaceDescriptor ( ) ; if ( face != null ) { face . configure ( this ) ; } setEnabled ( command . isEnabled ( ) ) ; }
Updates this instance according to the properties provided by the underlying command .