NAME
IWL::Menu::Item - a menu item widget
INHERITANCE
IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Container -> IWL::Menu::Item
DESCRIPTION
A menu item widget
CONSTRUCTOR
IWL::Menu::Item->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-values.
- parentType
-
menu (default) or menubar
SIGNALS
- select
-
Fires when the item is selected
- unselect
-
Fires when the item is unselected
- change
-
Fires when the item's state has been changed. Only menu radio and check menu items fire this signal
- activate
-
Fires when this item has been activated, via double clicking
METHODS
- setText (TEXT)
-
Sets the text for the menu item
Parameters: TEXT - the text
- getText
-
Returns the menu item text
- setIcon (ICON)
-
Sets the icon of the menu item
Parameters: ICON - a url, or a stock id for the icon
- setType ([TYPE, GROUP])
-
Sets the type of the menu item
Parameters: TYPE - optional, type of the menu item: - none - regular menu item (default) - radio - a radio menu item - check - a check menu item
GROUP - optional, the group of the radio item, if that type is used
- getType
-
Returns the menu item type
-
Sets SUBMENU as the submenu of the menu item
Parameters: SUBMENU - an IWL::Menu
-
Returns the menu item's submenu
- toggle (BOOL)
-
Toggles the menu item, if it's of time check or radio
Parameters: BOOL - a boolean value, true if the item should be checked
- setDisabled (BOOL)
-
Sets whether the menu item is disabled or enabled
Parameters: BOOL - true if the menu item should be disabled
- isDisabled
-
Returns true if the menu item is disabled
LICENCE AND COPYRIGHT
Copyright (c) 2006-2008 Viktor Kojouharov. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 283:
You forgot a '=back' before '=head1'