Is it possible to create a layer mask with a gradient alpha?

Can anyone explain how to do this sort of effect in which the alpha channel is made to fade out with a gradient effect, as briefly mentioned in The Alpha Channel? Or is it not possible with the masking tools available?