Class BasicDateFieldUI

All Implemented Interfaces:
ViewFactory

public class BasicDateFieldUI extends BasicTextFieldUI
Basis of a look and feel for a RMACalendarField.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.

  • Field Details

    • cachedMinimumSize

      protected Dimension cachedMinimumSize
  • Constructor Details

    • BasicDateFieldUI

      public BasicDateFieldUI()
      Creates a new BasicDateFieldUI.
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent c)
    • getPropertyPrefix

      protected String getPropertyPrefix()
      Fetches the name used as a key to lookup properties through the UIManager. This is used as a prefix to all the standard text properties.
      Overrides:
      getPropertyPrefix in class BasicTextFieldUI
      Returns:
      the name ("TextField")
    • installUI

      public void installUI(JComponent c)
      Overrides:
      installUI in class BasicTextUI
    • installDefaults

      protected void installDefaults()
      Overrides:
      installDefaults in class BasicTextUI
    • getVisibleEditorRect

      protected Rectangle getVisibleEditorRect()
      Gets the allocation to give the root View. Due to an unfortunate set of historical events this method is inappropriately named. The Rectangle returned has nothing to do with visibility.
      Overrides:
      getVisibleEditorRect in class BasicTextUI
      Returns:
      the bounding box for the root view
    • paintSafely

      protected void paintSafely(Graphics g)
      Overrides:
      paintSafely in class BasicTextUI
    • createEllipsesButton

      protected JButton createEllipsesButton()
      Creates the ellipses button. Subclasses can create any button they like. The default behavior of this class is to attach various listeners to the button returned by this method. Returns an instance of BasicEllipsesButton.
    • configureEllipsesButton

      public void configureEllipsesButton()
      Configures the ellipses button by adding listeners.
    • createLayoutManager

      protected LayoutManager createLayoutManager()
      Creates the standard DateField layout manager that has the ellipses button to the right and the editor to the left. Returns an instance of BasicDateFieldUI$DateFieldLayoutManager.
    • getInsets

      protected Insets getInsets()
      Gets the insets from the DateField.
    • getPreferredSize

      public Dimension getPreferredSize(JComponent c)
      Overrides:
      getPreferredSize in class BasicTextUI
    • getMinimumSize

      public Dimension getMinimumSize(JComponent c)
      Overrides:
      getMinimumSize in class BasicTextUI
    • getMaximumSize

      public Dimension getMaximumSize(JComponent c)
      Overrides:
      getMaximumSize in class BasicTextUI