MenuControl.getName

The item name that uniquely identifies the shared menu and allows other Menu Controls to share the same menu state. This property is read only.

Further documentation.

returns java.lang.String