net.sourceforge.jdatepicker
Interface JDateComponent

All Known Subinterfaces:
JDatePanel, JDatePicker
All Known Implementing Classes:
JDatePanelImpl, JDatePickerImpl

public interface JDateComponent

This interface is implemented by all components which represent a date by day granularity. T will be one of the following org.joda.time.DateMidnight, java.util.Date or java.util.Calendar. Since the first version of JDatePicker generics was added to Java and JodaTime emerged as a important date handling library in the Java community. Created 16 April 2010 Updated 18 April 2010

Author:
Juan Heyns

Method Summary
 void addActionListener(java.awt.event.ActionListener actionListener)
          Adds an ActionListener.
 java.util.Properties getI18nStrings()
          Gets the currently set internationalised strings of the component.
 DateModel<?> getModel()
          Returns the value of the currently represented date in the component.
 void removeActionListener(java.awt.event.ActionListener actionListener)
          Removes the ActionListener.
 void setI18nStrings(java.util.Properties i18nStrings)
          Sets internationalised the strings of the component.
 

Method Detail

getModel

DateModel<?> getModel()
Returns the value of the currently represented date in the component. Depending on the version of the library used this type will one of the following: - java.util.Calendar - org.joda.time.DateMidnight - java.util.Date

Returns:

addActionListener

void addActionListener(java.awt.event.ActionListener actionListener)
Adds an ActionListener. The actionListener is notified when a user clicks on a date. Deliberately selecting a date will trigger this event, not scrolling which fires a ChangeEvent for ChangeListeners.

Parameters:
actionListener -

removeActionListener

void removeActionListener(java.awt.event.ActionListener actionListener)
Removes the ActionListener. The actionListener is notified when a user clicks on a date.

Parameters:
arg -

getI18nStrings

java.util.Properties getI18nStrings()
Gets the currently set internationalised strings of the component.

Returns:

setI18nStrings

void setI18nStrings(java.util.Properties i18nStrings)
Sets internationalised the strings of the component.

Parameters:
strings -


Copyright © 2010. All Rights Reserved.