JDatePicker v4.3

com.standbysoft.component.date.swing
Class JDateComponent.RollDateAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycom.standbysoft.component.date.swing.JDateComponent.DateAction
          extended bycom.standbysoft.component.date.swing.JDateComponent.RollDateAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Enclosing class:
JDateComponent

public static class JDateComponent.RollDateAction
extends JDateComponent.DateAction

This action is used to increment/decrement the value of one date field with one unit.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
JDateComponent.RollDateAction(int field, boolean up)
          Creates an action that will roll one date field with one unit.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class com.standbysoft.component.date.swing.JDateComponent.DateAction
getDateComponent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDateComponent.RollDateAction

public JDateComponent.RollDateAction(int field,
                                     boolean up)
Creates an action that will roll one date field with one unit.

Parameters:
field - date field that is rolled (Calendar.WEEK_OF_YEAR, Calendar.DATE, etc)
up - true if incremented or false if decremented.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

JDatePicker v4.3

Visit www.jdatepicker.com for further information or send us your suggestions.

Copyright © 2003-2007 Stand By Soft Ltd. All Rights Reserved.