This is the universal greeting given to white foreigners regardless of whether the person who is addressed is male or female. The less advanced English students know only “Mister” and “how are you”, which they will enthusiastically yell at white foreigners many times.
If you are a white foreigner (locally known as bule) you tend to get stared at in places where few white foreigners go, but overall, Indonesians stand back and look, rather than gather around you. Those who do come right up to you are usually kids. The other habit which altogether ordinary to Indonesians is touching between those of the same gander.