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 TypeMethodDescriptionvoidvoidaddLayoutComponent(String name, Component comp) private voidHandles propertyChanges from the picker's popupButton.private voidHandles property changes from DatePicker.private voidListening to actionEvents fired by the picker's editor.private voidHandles property changes from datepicker's editor.voidIssue #573-swingx - F2 in table doesn't focus the editor.void#565-swingx: popup not hidden if clicked into combo.voidlayoutContainer(Container parent) minimumLayoutSize(Container parent) private voidListening to actionEvents fired by the picker's monthView.private voidHandles propertyChanges from the picker's monthView.voidvoidvoidvoidvoidmouseMoved(MouseEvent ev) voidvoidpreferredLayoutSize(Container parent) voidvoidvoid
-
Field Details
-
_forwardReleaseEvent
private boolean _forwardReleaseEvent
-
-
Constructor Details
-
Handler
private Handler()
-
-
Method Details
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
valueChanged
- Specified by:
valueChangedin interfaceDateSelectionListener
-
propertyChange
- Specified by:
propertyChangein 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:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-
actionPerformed
- Specified by:
actionPerformedin 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:
focusGainedin 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:
focusLostin interfaceFocusListener
-