How does a "permanent" magnet with switch work? We have several magnetic stands on my university, see here. This stand has a button which makes you able to turn the magnet off and on. It is quite hard to press the button, it seems like something mechanical. But it must be a permanent magnet since it doesn't run on electricity, so I wondered, how is it possible to "turn off" a permanent magnet? Or am I missing something?
EDIT
In reaction to CuriousOne:
If the button causes the magnet inside to move, than how does this work since the button seems to be one solid pin inside the stand, see the two images.

 A: The mechanical button lowers or raises the magnet, which changes the effective force between it and the steel plate that the base attaches to. You are correct, one can not turn a permanent magnet off this way, but one can greatly change the force between it and a magnetic material by changing the distance. 
After looking it up I have to correct myself. One particular design doesn't actually lower or raise the magnet but it turns a cylindrical magnet in an assembly between two magnetic jokes. This is a very important difference to my original suggestion, which would never completely eliminate the force between the magnet and the base plate. In the design shown in https://en.wikipedia.org/wiki/Magnetic_base it's the change in symmetry that can essentially completely cancel the field. It's quite ingenious, really. 
A: The push-pull part is a cylindrical permanent magnet.
The main body is divided into two unequal parts by a non-magnetic section.
In the non-magnetic state the inner magnet is 'shorted' in the larger section.
In the magnetic state one end of the inner magnet is pushed beyond the non-magnetic section to create an external pole.
A: There is another explanation for this and a different design that could be used for something like this. There is a good explanation for this alternate design at this link (https://www.kjmagnetics.com/blog.asp?p=magswitch).
A: With the push button mag stand  the inner magnet does not rotate. It moves in a axial direction. Changing the magnetic flux path.
