com.pallas.swing.date
Class DatePopup

java.lang.Object
  |
  +--com.pallas.swing.date.DatePopup
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

class DatePopup
extends java.lang.Object
implements java.awt.event.MouseMotionListener, java.awt.event.MouseListener, java.awt.event.KeyListener

Title: $FileName: DatePopup.java$

Version:
$VerNum: 3$
Author:
$AuthorName: Rob MacGrogan$

$Description: Popup calendar for PDate.$
$KeyWordsOff: $


Field Summary
protected  java.awt.Color background
           
protected  java.util.Calendar calendar
           
protected  javax.swing.JPanel calendarPanel
           
protected  PDate comboBox
           
protected  javax.swing.JPanel days
           
protected  java.awt.Color foreground
           
private  boolean isVisible
           
protected  javax.swing.JList list
           
protected  java.text.SimpleDateFormat monthFormat
           
protected  javax.swing.JLabel monthLabel
           
protected  boolean mouseInside
           
protected  javax.swing.Popup popup
           
protected  java.awt.Color selectedBackground
           
protected  java.awt.Color selectedForeground
           
 
Constructor Summary
DatePopup(PDate comboBox)
           
 
Method Summary
private  int calcY()
           
protected  javax.swing.JLabel createUpdateButton(int field, int amount)
           
 java.awt.event.KeyListener getKeyListener()
           
 javax.swing.JList getList()
           
 java.awt.event.MouseListener getMouseListener()
           
 java.awt.event.MouseMotionListener getMouseMotionListener()
           
 javax.swing.Popup getPopup()
           
 void hide()
           
protected  void initializePopup()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void show()
           
protected  void togglePopup()
           
protected  void updatePopup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comboBox

protected PDate comboBox

calendar

protected java.util.Calendar calendar

popup

protected javax.swing.Popup popup

monthLabel

protected javax.swing.JLabel monthLabel

days

protected javax.swing.JPanel days

calendarPanel

protected javax.swing.JPanel calendarPanel

monthFormat

protected java.text.SimpleDateFormat monthFormat

selectedBackground

protected java.awt.Color selectedBackground

selectedForeground

protected java.awt.Color selectedForeground

background

protected java.awt.Color background

foreground

protected java.awt.Color foreground

isVisible

private boolean isVisible

list

protected javax.swing.JList list

mouseInside

protected boolean mouseInside
Constructor Detail

DatePopup

public DatePopup(PDate comboBox)
Method Detail

getPopup

public javax.swing.Popup getPopup()

show

public void show()

hide

public void hide()

getList

public javax.swing.JList getList()

getMouseListener

public java.awt.event.MouseListener getMouseListener()

getMouseMotionListener

public java.awt.event.MouseMotionListener getMouseMotionListener()

getKeyListener

public java.awt.event.KeyListener getKeyListener()

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

togglePopup

protected void togglePopup()

createUpdateButton

protected javax.swing.JLabel createUpdateButton(int field,
                                                int amount)

initializePopup

protected void initializePopup()

calcY

private int calcY()

updatePopup

protected void updatePopup()


Copyright 2003 Pallas Technology.