Kydome announces the availablility v1.0 Beta3 of their Menus plugin for Servoy.
Features:- Customize the main MenuBar
o Hide the entire main menubar
Create a menubar navigation component inside a form (control a JMenuBar bean)
Create a menubar in a Dialog
Create keyboard shortcuts that trigger global Servoy methods
On each menubar (main menubar, JMenuBar bean or menubar on a Dialog), the following features are available:
o Add new menus at runtime, including submenus
o Alter or remove menu(items)s at runtime
o Add menuitems to menus, that will trigger global Servoy methods
Regular menuitems
Checkboxmenuitems
Radiobuttonmenuitems
o Insert Separators in menus
o Set Enabled, Visible and Text properties on menu(items)
[/list:u][/list:u]Known issues:
Samplecode is not available yet. Will be added within a week
General comments on using this plugin:- After the alteration of a menubar (add/remove a menu, or change the appearance of an existing one), you will need to update the menubar, by calling plugins.Kydome_Menus.updateUI(); This only applies to menubars, since menus that popup will get drawn every time they are shown again
The index of menus on a menubar or menuitems in a menu starts with 0, meaning that if there are 4 menus on a menubar, the first one is index 0 and the last one is index 3
A menu inside a menu is both a MenuItem and a Menu. It depends how you access it, which features are available
When adding a menuitem that triggers a global method, arguments can be supplied that will be supplied as arguments to the global method when the menuitem is clicked. Also, the feedback option needs to be set:
o value 1: will pass as arguments to triggered global method:
1
the menuitemname
all arguments that were specified to be passed when creating the menuitem
o value 2: will pass as arguments to triggered global method:
2
the menuitemname
the state (“true”/“false”/“N/A”): will return the text true or false incase of checkbox or radiobutton menuitems
o any other value passed as feedbackoption will result in the following arguments being passed to the triggered global method:
3
all arguments that were specified to be passed when creating the menuitem
See the global method FeedbackGlobal in the demo solution how to work with these options
[/list:u]- The plugin offers the feature to reset a customized main menubar to the original Servoy menubar. Since Servoy alters its menus are runtime, to make sure the restore can be done correctly, its best practice not to alter the appearance of Servoys menus and menuitems. They can savely be removed with the remove/removeAll functions.
This is Beta software. Do not use in production.
The Copyright of this product is protected[/list:u] Pricing:
This plugin will become commercially available after release of version 1.0 final. Pricing details will become available within two weeks. For now, the licensekey below can be used for testing. This key will expire at the end of February 2005:
Key: 8oX/X0hiGsIe82Xzsz0eReB2eD/Zi93myO5isuUDCdo/JLfdpezhbdA8v7/z0Fay
Name: v1.0 Betatest
Count: 5
This information needs to be entered on the Servoy Admin page, in the Server Plugin Settings section
Downloaded… installed.. and after 3 minutes the main menu was NO MORE visible… … as I wanted!!!
Then tried to make my own menu…and it worked after 3 tries !!!
Very nice interesting tool Paul, it works even without examining you sample application so I suppose that when I’ll examine it.. I will discover a lot more interesting features of you great work!!
Error occured loading server class com.kydome.plugins.Menus.MenusServer from plugin, error: java.lang.NoClassDefFoundError:
org/apache/commons/collections/map/AbstractHashedMap