| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.util.SeparatorUtils
public class SeparatorUtils
Utils class for consolidating separators on toolbars, popupmenus and menus.
| Method Summary | |
|---|---|
| static void | consolidateSeparators(JMenu menu)Consolidates separators in a menu: subsequent separators will be collapsed to one separator if the first visible item of a menu is a separator, it will be made invisible if the last visible item of a menu is a separator, it will be made invisible | 
| static void | consolidateSeparators(JMenuBar menuBar)Consolidates separators in a menubar. | 
| static void | consolidateSeparators(JPopupMenu popupMenu)Consolidates separators in a popupmenu: subsequent separators will be collapsed to one separator if the first visible item of a menu is a separator, it will be made invisible if the last visible item of a menu is a separator, it will be made invisible | 
| static void | consolidateSeparators(JToolBar toolBar)Consolidates separators in a toolbar: subsequent separators will be collapsed to one separator if the first visible item of a menu is a separator, it will be made invisible if the last visible item of a menu is a separator, it will be made invisible | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static void consolidateSeparators(JToolBar toolBar)
menu - the menu (cannot be null)public static void consolidateSeparators(JPopupMenu popupMenu)
menu - the menu (cannot be null)public static void consolidateSeparators(JMenu menu)
menu - the menu (cannot be null)public static void consolidateSeparators(JMenuBar menuBar)
consolidateSeparators(JMenu) for each menu in the menubar.
menuBar - the menu bar (cannot be null)consolidateSeparators(JMenu)| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||