Class FlatComboBoxUI

    • Field Detail

      • minimumWidth

        protected int minimumWidth
      • editorColumns

        protected int editorColumns
      • buttonStyle

        protected java.lang.String buttonStyle
      • arrowType

        protected java.lang.String arrowType
      • background

        private java.awt.Color background
      • editableBackground

        protected java.awt.Color editableBackground
      • focusedBackground

        protected java.awt.Color focusedBackground
      • disabledBackground

        protected java.awt.Color disabledBackground
      • disabledForeground

        protected java.awt.Color disabledForeground
      • buttonBackground

        protected java.awt.Color buttonBackground
      • buttonEditableBackground

        protected java.awt.Color buttonEditableBackground
      • buttonFocusedBackground

        protected java.awt.Color buttonFocusedBackground
      • buttonSeparatorWidth

        protected float buttonSeparatorWidth
        Since:
        2
      • buttonSeparatorColor

        protected java.awt.Color buttonSeparatorColor
        Since:
        2
      • buttonDisabledSeparatorColor

        protected java.awt.Color buttonDisabledSeparatorColor
        Since:
        2
      • buttonArrowColor

        protected java.awt.Color buttonArrowColor
      • buttonDisabledArrowColor

        protected java.awt.Color buttonDisabledArrowColor
      • buttonHoverArrowColor

        protected java.awt.Color buttonHoverArrowColor
      • buttonPressedArrowColor

        protected java.awt.Color buttonPressedArrowColor
      • popupBackground

        protected java.awt.Color popupBackground
      • popupInsets

        protected java.awt.Insets popupInsets
        Since:
        3
      • selectionInsets

        protected java.awt.Insets selectionInsets
        Since:
        3
      • selectionArc

        protected int selectionArc
        Since:
        3
      • hoverListener

        private java.awt.event.MouseListener hoverListener
      • hover

        protected boolean hover
      • pressed

        protected boolean pressed
      • oldStyleValues

        private java.util.Map<java.lang.String,​java.lang.Object> oldStyleValues
      • borderShared

        private java.util.concurrent.atomic.AtomicBoolean borderShared
    • Constructor Detail

      • FlatComboBoxUI

        public FlatComboBoxUI()
    • Method Detail

      • createUI

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

        public void installUI​(javax.swing.JComponent c)
        Overrides:
        installUI in class javax.swing.plaf.basic.BasicComboBoxUI
      • installUIImpl

        private void installUIImpl​(javax.swing.JComponent c)
      • installListeners

        protected void installListeners()
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicComboBoxUI
      • uninstallListeners

        protected void uninstallListeners()
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicComboBoxUI
      • installDefaults

        protected void installDefaults()
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicComboBoxUI
      • uninstallDefaults

        protected void uninstallDefaults()
        Overrides:
        uninstallDefaults in class javax.swing.plaf.basic.BasicComboBoxUI
      • createLayoutManager

        protected java.awt.LayoutManager createLayoutManager()
        Overrides:
        createLayoutManager in class javax.swing.plaf.basic.BasicComboBoxUI
      • createFocusListener

        protected java.awt.event.FocusListener createFocusListener()
        Overrides:
        createFocusListener in class javax.swing.plaf.basic.BasicComboBoxUI
      • createPropertyChangeListener

        protected java.beans.PropertyChangeListener createPropertyChangeListener()
        Overrides:
        createPropertyChangeListener in class javax.swing.plaf.basic.BasicComboBoxUI
      • createPopup

        protected javax.swing.plaf.basic.ComboPopup createPopup()
        Overrides:
        createPopup in class javax.swing.plaf.basic.BasicComboBoxUI
      • configureEditor

        protected void configureEditor()
        Overrides:
        configureEditor in class javax.swing.plaf.basic.BasicComboBoxUI
      • updateEditorPadding

        private void updateEditorPadding()
      • updateEditorColors

        private void updateEditorColors()
      • createArrowButton

        protected javax.swing.JButton createArrowButton()
        Overrides:
        createArrowButton in class javax.swing.plaf.basic.BasicComboBoxUI
      • installStyle

        protected void installStyle()
        Since:
        2
      • applyStyle

        protected void applyStyle​(java.lang.Object style)
        Since:
        2
      • applyStyleProperty

        protected java.lang.Object applyStyleProperty​(java.lang.String key,
                                                      java.lang.Object value)
        Since:
        2
      • update

        public void update​(java.awt.Graphics g,
                           javax.swing.JComponent c)
        Overrides:
        update in class javax.swing.plaf.ComponentUI
      • paintCurrentValue

        public void paintCurrentValue​(java.awt.Graphics g,
                                      java.awt.Rectangle bounds,
                                      boolean hasFocus)
        Overrides:
        paintCurrentValue in class javax.swing.plaf.basic.BasicComboBoxUI
      • paintCurrentValueBackground

        public void paintCurrentValueBackground​(java.awt.Graphics g,
                                                java.awt.Rectangle bounds,
                                                boolean hasFocus)
        Overrides:
        paintCurrentValueBackground in class javax.swing.plaf.basic.BasicComboBoxUI
      • getBackground

        protected java.awt.Color getBackground​(boolean enabled)
      • getForeground

        protected java.awt.Color getForeground​(boolean enabled)
      • getMinimumSize

        public java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)
        Overrides:
        getMinimumSize in class javax.swing.plaf.basic.BasicComboBoxUI
      • getDefaultSize

        protected java.awt.Dimension getDefaultSize()
        Overrides:
        getDefaultSize in class javax.swing.plaf.basic.BasicComboBoxUI
      • getDisplaySize

        protected java.awt.Dimension getDisplaySize()
        Overrides:
        getDisplaySize in class javax.swing.plaf.basic.BasicComboBoxUI
      • getSizeForComponent

        protected java.awt.Dimension getSizeForComponent​(java.awt.Component comp)
        Overrides:
        getSizeForComponent in class javax.swing.plaf.basic.BasicComboBoxUI
      • isCellRenderer

        private boolean isCellRenderer()
      • isCellRendererBackgroundChanged

        private boolean isCellRendererBackgroundChanged()
      • isMacStyle

        private boolean isMacStyle()
      • isPermanentFocusOwner

        public static boolean isPermanentFocusOwner​(javax.swing.JComboBox<?> comboBox)
        Since:
        1.3