Class BuddyTextFieldUI

  • Direct Known Subclasses:
    SearchFieldUI

    public class BuddyTextFieldUI
    extends PromptTextFieldUI

    TODO: queries the text components layout manager for the preferred size.

    • Field Detail

      • MAC_MARGIN

        private static final java.awt.Insets MAC_MARGIN
    • Constructor Detail

      • BuddyTextFieldUI

        public BuddyTextFieldUI​(javax.swing.plaf.TextUI delegate)
        Creates a new BuddyTextFieldUI which delegates most work to another TextUI.
        Parameters:
        delegate -
    • Method Detail

      • hasMacTextFieldBorder

        private boolean hasMacTextFieldBorder​(javax.swing.JComponent c)
      • installUI

        public void installUI​(javax.swing.JComponent c)
        Description copied from class: PromptTextUI
        Calls TextUI#installUI(JComponent) on the delegate and installs a focus listener on c which repaints the component when it gains or loses the focus.
        Overrides:
        installUI in class PromptTextUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Description copied from class: PromptTextUI
        Delegates, then uninstalls the focus listener.
        Overrides:
        uninstallUI in class PromptTextUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        TODO: comment
        Overrides:
        getPreferredSize in class PromptTextUI
        See Also:
        ComponentUI.getPreferredSize(javax.swing.JComponent)