Package org.jdesktop.swingx.plaf.basic
Class BasicDatePickerUI.Handler
- java.lang.Object
-
- org.jdesktop.swingx.plaf.basic.BasicDatePickerUI.Handler
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.FocusListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.LayoutManager,java.beans.PropertyChangeListener,java.util.EventListener,DateSelectionListener
- Enclosing class:
- BasicDatePickerUI
private class BasicDatePickerUI.Handler extends java.lang.Object implements java.awt.LayoutManager, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.beans.PropertyChangeListener, DateSelectionListener, java.awt.event.ActionListener, java.awt.event.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 Modifier and Type Field Description private boolean_forwardReleaseEvent
-
Constructor Summary
Constructors Modifier Constructor Description privateHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidaddLayoutComponent(java.lang.String name, java.awt.Component comp)private voidbuttonPropertyChange(java.beans.PropertyChangeEvent e)Handles propertyChanges from the picker's popupButton.private voiddatePickerPropertyChange(java.beans.PropertyChangeEvent e)Handles property changes from DatePicker.private voideditorActionPerformed(java.awt.event.ActionEvent e)Listening to actionEvents fired by the picker's editor.private voideditorPropertyChange(java.beans.PropertyChangeEvent evt)Handles property changes from datepicker's editor.voidfocusGained(java.awt.event.FocusEvent e)Issue #573-swingx - F2 in table doesn't focus the editor.voidfocusLost(java.awt.event.FocusEvent e)#565-swingx: popup not hidden if clicked into combo.voidlayoutContainer(java.awt.Container parent)java.awt.DimensionminimumLayoutSize(java.awt.Container parent)private voidmonthViewActionPerformed(java.awt.event.ActionEvent e)Listening to actionEvents fired by the picker's monthView.private voidmonthViewPropertyChange(java.beans.PropertyChangeEvent e)Handles propertyChanges from the picker's monthView.voidmouseClicked(java.awt.event.MouseEvent ev)voidmouseDragged(java.awt.event.MouseEvent ev)voidmouseEntered(java.awt.event.MouseEvent ev)voidmouseExited(java.awt.event.MouseEvent ev)voidmouseMoved(java.awt.event.MouseEvent ev)voidmousePressed(java.awt.event.MouseEvent ev)voidmouseReleased(java.awt.event.MouseEvent ev)java.awt.DimensionpreferredLayoutSize(java.awt.Container parent)voidpropertyChange(java.beans.PropertyChangeEvent e)voidremoveLayoutComponent(java.awt.Component comp)voidvalueChanged(DateSelectionEvent ev)
-
-
-
Method Detail
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent ev)
- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent ev)
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent ev)
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent ev)
- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent ev)
- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent ev)
- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent ev)
- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener
-
valueChanged
public void valueChanged(DateSelectionEvent ev)
- Specified by:
valueChangedin interfaceDateSelectionListener
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
editorPropertyChange
private void editorPropertyChange(java.beans.PropertyChangeEvent evt)
Handles property changes from datepicker's editor.- Parameters:
e- the PropertyChangeEvent object describing the event source and the property that has changed
-
datePickerPropertyChange
private void datePickerPropertyChange(java.beans.PropertyChangeEvent e)
Handles property changes from DatePicker.- Parameters:
e- the PropertyChangeEvent object describing the event source and the property that has changed
-
monthViewPropertyChange
private void monthViewPropertyChange(java.beans.PropertyChangeEvent e)
Handles propertyChanges from the picker's monthView.- Parameters:
e- the PropertyChangeEvent object describing the event source and the property that has changed
-
buttonPropertyChange
private void buttonPropertyChange(java.beans.PropertyChangeEvent e)
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
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager
-
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
- Specified by:
removeLayoutComponentin interfacejava.awt.LayoutManager
-
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Specified by:
preferredLayoutSizein interfacejava.awt.LayoutManager
-
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Specified by:
minimumLayoutSizein interfacejava.awt.LayoutManager
-
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Specified by:
layoutContainerin interfacejava.awt.LayoutManager
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
editorActionPerformed
private void editorActionPerformed(java.awt.event.ActionEvent e)
Listening to actionEvents fired by the picker's editor.- Parameters:
e-
-
monthViewActionPerformed
private void monthViewActionPerformed(java.awt.event.ActionEvent e)
Listening to actionEvents fired by the picker's monthView.- Parameters:
e-
-
focusGained
public void focusGained(java.awt.event.FocusEvent e)
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 interfacejava.awt.event.FocusListener
-
focusLost
public void focusLost(java.awt.event.FocusEvent e)
#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 interfacejava.awt.event.FocusListener
-
-