Class Picker

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants
Direct Known Subclasses:
DatePicker, TimePicker

public abstract class Picker extends JTextField
Abstract base class for picker components.
See Also:
  • Constructor Details

    • Picker

      protected Picker(int columns)
      Constructs a new picker.
      Parameters:
      columns - The column count.
  • Method Details

    • getPopupHorizontalAlignment

      public HorizontalAlignment getPopupHorizontalAlignment()
      Returns the popup's horizontal alignment.
      Returns:
      The popup's horizontal alignment.
    • setPopupHorizontalAlignment

      public void setPopupHorizontalAlignment(HorizontalAlignment popupHorizontalAlignment)
      Sets the popup's horizontal alignment, relative to the picker.
      Parameters:
      popupHorizontalAlignment - The popup's horizontal alignment.
    • getPopupVerticalAlignment

      public VerticalAlignment getPopupVerticalAlignment()
      Returns the popup's vertical alignment.
      Returns:
      The popup's vertical alignment.
    • setPopupVerticalAlignment

      public void setPopupVerticalAlignment(VerticalAlignment popupVerticalAlignment)
      Sets the popup's vertical alignment, relative to the picker.
      Parameters:
      popupVerticalAlignment - The popup's vertical alignment.
    • processFocusEvent

      protected void processFocusEvent(FocusEvent event)
      Processes a focus event.
      Overrides:
      processFocusEvent in class Component
    • processKeyEvent

      protected void processKeyEvent(KeyEvent event)
      Processes a key event.
      Overrides:
      processKeyEvent in class JComponent
    • isPopupEnabled

      protected abstract boolean isPopupEnabled()
      Indicates that the popup is enabled.
      Returns:
      true if the popup is enabled; false, otherwise.
    • getPopupComponent

      protected abstract JComponent getPopupComponent()
      Returns the popup component.
      Returns:
      The popup component.