amber.type.server
Class SelectedDate

java.lang.Object
  |
  +--amber.type.server.SelectedDate
All Implemented Interfaces:
java.io.Serializable

public class SelectedDate
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int CurrentMonth
           
protected  int day
          The day of the month selected.
protected  int month
          The month of the control selected.
static int NextMonth
           
static int PriorMonth
          Month constant.
 
Constructor Summary
SelectedDate()
          Default Constructor.
SelectedDate(int day, int month)
          Initialising Constructor.
 
Method Summary
 int getDay()
          Gets the data in the following variable: The day of the month selected.
 int getMonth()
          Gets the data in the following variable: The month of the control selected.
 void setDay(int data)
          Sets the data in the following variable: The day of the month selected.
 void setMonth(int data)
          Sets the data in the following variable: The month of the control selected.
 java.lang.String toString()
          This function returns the String form of the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PriorMonth

public static final int PriorMonth
Month constant.

CurrentMonth

public static final int CurrentMonth

NextMonth

public static final int NextMonth

day

protected int day
The day of the month selected.

month

protected int month
The month of the control selected. This is one of 0-2 depending on the month: prior, current, next.
Constructor Detail

SelectedDate

public SelectedDate()
Default Constructor.

SelectedDate

public SelectedDate(int day,
                    int month)
Initialising Constructor.
Parameters:
day - The day of the month selected.
month - The month of the control selected. This is one of 0-2 depending on the month: prior, current, next.
Method Detail

getDay

public int getDay()
Gets the data in the following variable: The day of the month selected.
Returns:
int containing the required information.

getMonth

public int getMonth()
Gets the data in the following variable: The month of the control selected. This is one of 0-2 depending on the month: prior, current, next.
Returns:
int containing the required information.

setDay

public void setDay(int data)
Sets the data in the following variable: The day of the month selected.
Parameters:
data - int containing the data to set the variable to.

setMonth

public void setMonth(int data)
Sets the data in the following variable: The month of the control selected. This is one of 0-2 depending on the month: prior, current, next.
Parameters:
data - int containing the data to set the variable to.

toString

public java.lang.String toString()
This function returns the String form of the data.
Overrides:
toString in class java.lang.Object
Returns:
String containing the string version of this class.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.