# com.bea.ide.ui.propertyeditor.editors
DatePickerPropertyEditor Class

public class DatePickerPropertyEditor
extends `DropDownPropertyEditor`

A property editor which displays a date picker popup window when the dropdown button is pressed.

Hierarchy
  `Object`
  `Component`
  `Container`
  `JComponent`
  `JPanel`
  `DefaultPropertyEditor`
  `DropDownPropertyEditor`
  `DatePickerPropertyEditor`

All Implemented Interfaces
  `Accessible`, `EventListener`, `FocusListener`, `ImageObserver`, `IPropertyEditor`, `MenuContainer`, `MouseListener`, `Serializable`

## Nested Class Summary

Nested classes from com.bea.ide.ui.propertyeditor.editors`.`DropDownPropertyEditor``
``DropDownPropertyEditor.MyArrowIcon`, `DropDownPropertyEditor.MyComboBoxButton``

Nested classes from javax.swing`.`JPanel``
``JPanel.AccessibleJPanel``

Nested classes from javax.swing`.`JComponent``
``JComponent.AccessibleJComponent``

Nested classes from java.awt`.`Container``
``Container.AccessibleAWTContainer``

Nested classes from java.awt`.`Component``
``Component.AccessibleAWTComponent`, `Component.BltBufferStrategy`, `Component.FlipBufferStrategy``

## Field Summary

Fields from javax.swing`.`JComponent``
`accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW`

Fields from java.awt`.`Component``
`BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT`

Fields from interface java.awt.image`.`ImageObserver``
`ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH`

## Constructor Summary

DatePickerPropertyEditor(`IProperty` property, boolean isTextFieldEditable, `JFormattedTextField.AbstractFormatter` formatter)
DatePickerPropertyEditor(`IProperty` property, boolean isTextFieldEditable)

## Method Summary

`public void` | `activate`(`FocusListener` l) Adds the focus listener to all focusable components in its display.
`public void` | `deactivate`(`FocusListener` l) Removes the listener from any focusable components that the listener was added to in addFocusListener.
`protected void` | `displayDropDown`(`Component` button) Displays the date picker popup window.
`public void` | `focusLost`(`FocusEvent` e) Invoked when the text field loses the keyboard focus.
`protected void` | `hideDropDown`() Hides the popup date picker window.
`protected boolean` | `isDropDownDisplayed`() Returns true if the picker popup window is showing.

Methods from `com.bea.ide.ui.propertyeditor.editors.`DropDownPropertyEditor``
``focusGained`, `handleKeyPressedEvent`, `mouseEntered`, `mouseExited`, `mousePressed`, `valueSelected``

Methods from `com.bea.ide.ui.propertyeditor.editors.`DefaultPropertyEditor``
``createDefaultFormatter`, `focusGained`, `focusLost`, `getComponent`, `getProperty`, `getTextField`, `handleKeyPressedEvent`, `isFocusContainer`, `mouseClicked`, `mouseEntered`, `mouseExited`, `mousePressed`, `mouseReleased`, `setFocused``

Methods from `javax.swing.`JPanel``
`getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI`

Methods from `javax.swing.`JComponent``
`addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI`

Methods from `java.awt.`Container``
`add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree`

Methods from `java.awt.`Component``
`action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.accessibility.`Accessible``
`getAccessibleContext`

Methods from interface `java.awt.event.`FocusListener``
`focusGained, focusLost`

Methods from interface `java.awt.image.`ImageObserver``
`imageUpdate`

Methods from interface `com.bea.ide.ui.propertyeditor.`IPropertyEditor``
``activate`, `deactivate`, `getComponent`, `getProperty`, `setFocused``

Methods from interface `java.awt.`MenuContainer``
`getFont, postEvent, remove`

Methods from interface `java.awt.event.`MouseListener``
`mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased`

## Constructor Detail

### DatePickerPropertyEditor

    public DatePickerPropertyEditor(IProperty property,
                                    boolean isTextFieldEditable,
                                    JFormattedTextField.AbstractFormatter formatter)

### DatePickerPropertyEditor

    public DatePickerPropertyEditor(IProperty property,
                                    boolean isTextFieldEditable)

## Method Detail

### activate(FocusListener) Method

    public void activate(FocusListener l)

Adds the focus listener to all focusable components in its display. The property view will update its selection highlighting for this property based on the focus gain and loss events received by this listener.

Note that if the property editor uses popup windows, it may need to add this focus listener to any focusable components in the popup window.

Overrides
  `DefaultPropertyEditor.activate(FocusListener)`

#### Parameters

l
  the focus listener

Related Topics

``FocusListener``

### deactivate(FocusListener) Method

    public void deactivate(FocusListener l)

Removes the listener from any focusable components that the listener was added to in addFocusListener.

Overrides
  `DefaultPropertyEditor.deactivate(FocusListener)`

#### Parameters

l
  the focus listener

Related Topics

``FocusListener``

### displayDropDown(Component) Method

    protected void displayDropDown(Component button)

Displays the date picker popup window.

Overrides
  `DropDownPropertyEditor.displayDropDown(Component)`

#### Parameters

button
  the component to show the popup.

### focusLost(FocusEvent) Method

    public void focusLost(FocusEvent e)

Invoked when the text field loses the keyboard focus.

Overrides
  `DropDownPropertyEditor.focusLost(FocusEvent)`

### hideDropDown() Method

    protected void hideDropDown()

Hides the popup date picker window.

Overrides
  `DropDownPropertyEditor.hideDropDown()`

### isDropDownDisplayed() Method

    protected boolean isDropDownDisplayed()

Returns true if the picker popup window is showing.

Overrides
  `DropDownPropertyEditor.isDropDownDisplayed()`