Java Date Picker v2.0.0

com.standbysoft.datepicker
Class JDatePicker

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--com.standbysoft.datepicker.JDatePicker
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class JDatePicker
extends javax.swing.JComponent

A component that lets the user to specify a date. The date can be either typed-in or it can be selected using a date chooser.

Author:
Nicolae Cismaru
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JDatePicker()
          Creates a date field with a default date chooser that does not allow to type-in the date.
 
Method Summary
 void addDateSelectionListener(DateSelectionListener listener)
           
static javax.swing.table.TableCellEditor createTableCellEditor()
           
 java.awt.Color getCalendarBackground()
           
 java.awt.Color getCalendarForeground()
           
 java.awt.Color getCalendarTitleBackground()
           
 java.awt.Color getCalendarTitleForeground()
           
 java.awt.Color getCalendarTrailingForeground()
           
 DateSelectionModel getDateSelectionModel()
           
 java.util.Locale getLocale()
           
 java.util.Date getSelectedDate()
          Returns the date represented by this component.
 DatePickerUI getUI()
          Returns the L&F object that renders this component.
 java.lang.String getUIClassID()
          Returns the name of the L&F class that renders this component.
 void removeDateSelectionListener(DateSelectionListener listener)
           
 void setCalendarBackground(java.awt.Color calendarBackground)
           
 void setCalendarForeground(java.awt.Color calendarForeground)
           
 void setCalendarTitleBackground(java.awt.Color calendarTitleBackground)
           
 void setCalendarTitleForeground(java.awt.Color calendarTitleForeground)
           
 void setCalendarTrailingForeground(java.awt.Color calendarTrailingForeground)
           
 void setDateSelectionModel(DateSelectionModel dateSelectionModel)
           
 void setLocale(java.util.Locale locale)
           
 void setSelectedDate(java.util.Date date)
          Specifies the date that this component represents.
 void setUI(DatePickerUI ui)
          Sets the L&F object that renders this component.
 void updateUI()
          Resets the UI property to a value from the current look and feel.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDatePicker

public JDatePicker()
Creates a date field with a default date chooser that does not allow to type-in the date.
Method Detail

setUI

public void setUI(DatePickerUI ui)
Sets the L&F object that renders this component.
Parameters:
ui - the DatePickerUI L&F object

updateUI

public void updateUI()
Resets the UI property to a value from the current look and feel.
Overrides:
updateUI in class javax.swing.JComponent
See Also:
JComponent.updateUI()

getUIClassID

public java.lang.String getUIClassID()
Returns the name of the L&F class that renders this component.
Overrides:
getUIClassID in class javax.swing.JComponent
Returns:
the string "DatePickerUI"
See Also:
JComponent.getUIClassID()

getUI

public DatePickerUI getUI()
Returns the L&F object that renders this component.
Returns:
the DatePickerUI object that renders this component

createTableCellEditor

public static javax.swing.table.TableCellEditor createTableCellEditor()

getSelectedDate

public java.util.Date getSelectedDate()
Returns the date represented by this component.
Returns:
the date represented by this component.

setSelectedDate

public void setSelectedDate(java.util.Date date)
Specifies the date that this component represents. This date can be selected using the date chooser or it can be typed-in by the user.
Parameters:
date - new date that this component represents

addDateSelectionListener

public void addDateSelectionListener(DateSelectionListener listener)

removeDateSelectionListener

public void removeDateSelectionListener(DateSelectionListener listener)

getDateSelectionModel

public DateSelectionModel getDateSelectionModel()

setDateSelectionModel

public void setDateSelectionModel(DateSelectionModel dateSelectionModel)

setLocale

public void setLocale(java.util.Locale locale)
Overrides:
setLocale in class java.awt.Component

getLocale

public java.util.Locale getLocale()
Overrides:
getLocale in class java.awt.Component

getCalendarBackground

public java.awt.Color getCalendarBackground()

setCalendarBackground

public void setCalendarBackground(java.awt.Color calendarBackground)

getCalendarForeground

public java.awt.Color getCalendarForeground()

setCalendarForeground

public void setCalendarForeground(java.awt.Color calendarForeground)

getCalendarTitleBackground

public java.awt.Color getCalendarTitleBackground()

setCalendarTitleBackground

public void setCalendarTitleBackground(java.awt.Color calendarTitleBackground)

getCalendarTitleForeground

public java.awt.Color getCalendarTitleForeground()

setCalendarTitleForeground

public void setCalendarTitleForeground(java.awt.Color calendarTitleForeground)

getCalendarTrailingForeground

public java.awt.Color getCalendarTrailingForeground()

setCalendarTrailingForeground

public void setCalendarTrailingForeground(java.awt.Color calendarTrailingForeground)

Java Date Picker v2.0.0

Copyright © 2003 Standby Soft Ltd. All Rights Reserved.