Registers a new listener to be informed about unit switches.
Registers a new listener to be informed
about unit switches. Whenever the user
switches the unit by selecting an item from
the popup menu, an ActionEvent
is fired
and delivered to all registered listeners.
the listener to register
Adds a new unit (text/icon combo label) to the end of the label list.
Adds a new unit (text/icon combo label) to the end of the label list. If the unit list had been empty, this new label will be selected.
Queries the action for a given index.
Queries the action for a given index. This
action may contain a NAME
or ICON
field.
the action at the given index
Deregisters a new listener from being informed about unit switches.
Deregisters a new listener from being informed about unit switches.
the listener to unregister
Queries the index of the currently selected unit.
Queries the index of the currently selected unit.
the index of the active unit or -1
if no unit has been selected
Changes the currently selected unit.
Changes the currently selected unit. This method does not fire an action event.
the new index. Values outside the allowed range (0 ... numUnits-1) are ignored.
Queries the action for selected index.
Queries the action for selected index. This
action may contain a NAME
or ICON
field.
the action at the selected index or null
if no unit is selected
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.