Package org.jdesktop.swingx.plaf.basic
Class BasicDatePickerUI.Handler
java.lang.Object
org.jdesktop.swingx.plaf.basic.BasicDatePickerUI.Handler
- All Implemented Interfaces:
ActionListener
,FocusListener
,MouseListener
,MouseMotionListener
,LayoutManager
,PropertyChangeListener
,EventListener
,DateSelectionListener
- Enclosing class:
BasicDatePickerUI
private class BasicDatePickerUI.Handler
extends Object
implements LayoutManager, MouseListener, MouseMotionListener, PropertyChangeListener, DateSelectionListener, ActionListener, FocusListener
PENDING: JW - I really hate the one-in-all. Wont touch
it for now, maybe later. As long as we have it, the new
listeners (dateSelection) are here too, for consistency.
Adding the Layout here as well is ... , IMO.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addLayoutComponent
(String name, Component comp) private void
Handles propertyChanges from the picker's popupButton.private void
Handles property changes from DatePicker.private void
Listening to actionEvents fired by the picker's editor.private void
Handles property changes from datepicker's editor.void
Issue #573-swingx - F2 in table doesn't focus the editor.void
#565-swingx: popup not hidden if clicked into combo.void
layoutContainer
(Container parent) minimumLayoutSize
(Container parent) private void
Listening to actionEvents fired by the picker's monthView.private void
Handles propertyChanges from the picker's monthView.void
void
void
void
void
mouseMoved
(MouseEvent ev) void
void
preferredLayoutSize
(Container parent) void
void
void
-
Field Details
-
_forwardReleaseEvent
private boolean _forwardReleaseEvent
-
-
Constructor Details
-
Handler
private Handler()
-
-
Method Details
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
valueChanged
- Specified by:
valueChanged
in interfaceDateSelectionListener
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
editorPropertyChange
Handles property changes from datepicker's editor.- Parameters:
e
- the PropertyChangeEvent object describing the event source and the property that has changed
-
datePickerPropertyChange
Handles property changes from DatePicker.- Parameters:
e
- the PropertyChangeEvent object describing the event source and the property that has changed
-
monthViewPropertyChange
Handles propertyChanges from the picker's monthView.- Parameters:
e
- the PropertyChangeEvent object describing the event source and the property that has changed
-
buttonPropertyChange
Handles propertyChanges from the picker's popupButton. PENDING: does nothing, kept while refactoring .. which properties from the button do we want to handle?- Parameters:
e
- the PropertyChangeEvent object describing the event source and the property that has changed.
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
editorActionPerformed
Listening to actionEvents fired by the picker's editor.- Parameters:
e
-
-
monthViewActionPerformed
Listening to actionEvents fired by the picker's monthView.- Parameters:
e
-
-
focusGained
Issue #573-swingx - F2 in table doesn't focus the editor. Do the same as combo: manually pass-on the focus to the editor.- Specified by:
focusGained
in interfaceFocusListener
-
focusLost
#565-swingx: popup not hidden if clicked into combo. The problem is that the combo uses the same trick as this datepicker to prevent auto-closing of the popup if focus is transfered back to the picker's editor. The idea is to hide the popup manually when the permanentFocusOwner changes to somewhere else. JW: doesn't work - we only get the temporary lost, but no permanent loss if the focus is transfered from the focusOwner to a new permanentFocusOwner. OOOkaay ... looks like exclusively related to a combo: we do get the expected focusLost if the focus is transferred permanently from the temporary focusowner to a new "normal" permanentFocusOwner (like a textfield), we don't get it if transfered to a tricksing owner (like a combo or picker). So can't do anything here. listen to keyboardFocusManager?- Specified by:
focusLost
in interfaceFocusListener
-