com.goatherd.swing.date
Class JDatePopup

java.lang.Object
  extended by com.goatherd.swing.date.JDatePopup
All Implemented Interfaces:
EventListener, PopupMenuListener, ComboPopup

public class JDatePopup
extends Object
implements ComboPopup, PopupMenuListener

Based upon PSwing DatePopup class.

Things changed from PSwing class:
- Modified listener implementation using adapters. - Localised the calendar (using Java 1.6 method if present local property else) - Fixed a bug with displaying sundays as first DAY_OF_WEEK

Since:
Java 1.5
Version:
1.0 03/02/08
Author:
Rob MacGrogan, Maik Kreutzfeldt
See Also:
JComboBox,


Constructor Summary
JDatePopup(JDateComboBox comboBox)
          Do not call directly.
Used only by ComboBoxUI.
 
Method Summary
 KeyListener getKeyListener()
           
 JList getList()
           
 MouseListener getMouseListener()
           
 MouseMotionListener getMouseMotionListener()
          Should be null
 void hide()
           
 boolean isVisible()
           
 void popupMenuCanceled(PopupMenuEvent e)
          Variables hideNext and mouseInside are used to hide the popupMenu by clicking the mouse in the JComboBox
 void popupMenuWillBecomeInvisible(PopupMenuEvent e)
           
 void popupMenuWillBecomeVisible(PopupMenuEvent e)
           
 void show()
           
 void uninstallingUI()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDatePopup

public JDatePopup(JDateComboBox comboBox)
Do not call directly.
Used only by ComboBoxUI.

Parameters:
comboBox -
Method Detail

getKeyListener

public KeyListener getKeyListener()
Specified by:
getKeyListener in interface ComboPopup

getList

public JList getList()
Specified by:
getList in interface ComboPopup

getMouseListener

public MouseListener getMouseListener()
Specified by:
getMouseListener in interface ComboPopup

getMouseMotionListener

public MouseMotionListener getMouseMotionListener()
Should be null

Specified by:
getMouseMotionListener in interface ComboPopup

hide

public void hide()
Specified by:
hide in interface ComboPopup

isVisible

public boolean isVisible()
Specified by:
isVisible in interface ComboPopup

popupMenuCanceled

public void popupMenuCanceled(PopupMenuEvent e)
Variables hideNext and mouseInside are used to hide the popupMenu by clicking the mouse in the JComboBox

Specified by:
popupMenuCanceled in interface PopupMenuListener

popupMenuWillBecomeInvisible

public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
Specified by:
popupMenuWillBecomeInvisible in interface PopupMenuListener

popupMenuWillBecomeVisible

public void popupMenuWillBecomeVisible(PopupMenuEvent e)
Specified by:
popupMenuWillBecomeVisible in interface PopupMenuListener

show

public void show()
Specified by:
show in interface ComboPopup

uninstallingUI

public void uninstallingUI()
Specified by:
uninstallingUI in interface ComboPopup