Class StayOpenCheckBoxMenuItemUI


  • public class StayOpenCheckBoxMenuItemUI
    extends javax.swing.plaf.basic.BasicCheckBoxMenuItemUI
    UI for StayOpenCheckBoxItem or JCheckBoxMenuItem. Does not close menu that the CheckBox is in when set. JCheckBoxMenuItem items in Popup menus require this UI to stay open. Does NOT work with Nimbus LAF, does not display checked check-boxes.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI

        javax.swing.plaf.basic.BasicMenuItemUI.MouseInputHandler
    • Field Summary

      • Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI

        acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      protected void doClick​(javax.swing.MenuSelectionManager msm)  
      • Methods inherited from class javax.swing.plaf.basic.BasicCheckBoxMenuItemUI

        getPropertyPrefix, processMouseEvent
      • Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI

        createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, paint, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • doClick

        protected void doClick​(javax.swing.MenuSelectionManager msm)
        Overrides:
        doClick in class javax.swing.plaf.basic.BasicMenuItemUI
      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)