set

abstract fun set(text: String)(source)

null or "" hides the item. The item keeps its icon.

Since

api 2


abstract fun set(text: String, icon: Icon)(source)

Sets the text and the icon; a null icon means none. null or "" text hides the item, icon and all. The icon must come from this plugin's Ui; an installed icon wider or taller than ICON_MAX_PX throws IllegalArgumentException, whether or not the unit draws icons (UI_ICONS).

Since

api 3