JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing
Class JCPopupCalendar.Bounds

java.lang.Object
  |
  +--com.klg.jclass.swing.JCPopupCalendar.Bounds
All Implemented Interfaces:
Comparable, Serializable
Enclosing class:
JCPopupCalendar

protected class JCPopupCalendar.Bounds
extends Object
implements Comparable, Serializable

This class is allows the DateEditor to make sure its value falls between any minimum or maximum specified on the popup calendar.

See Also:
Serialized Form

Field Summary
protected  Calendar value
          The value used for this bounds.
 
Constructor Summary
JCPopupCalendar.Bounds()
          The no args constructor.
JCPopupCalendar.Bounds(Calendar value)
          Constructor which specifies a value as minimum or maximum.
 
Method Summary
 int compareTo(Object o)
          Compares this object with the specified object for order.
 Calendar getValue()
          Get the minimum or maximum value.
 void setValue(Calendar value)
          Sets a new minimum or maximum value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected Calendar value
The value used for this bounds. Either the minimum or maximum value.

Constructor Detail

JCPopupCalendar.Bounds

public JCPopupCalendar.Bounds()
The no args constructor. Value is null which implies no minimum or maximum.


JCPopupCalendar.Bounds

public JCPopupCalendar.Bounds(Calendar value)
Constructor which specifies a value as minimum or maximum.

Parameters:
value - The minimum or maximum value.
Method Detail

getValue

public Calendar getValue()
Get the minimum or maximum value.

Returns:
The current minimum or maximum value.

setValue

public void setValue(Calendar value)
Sets a new minimum or maximum value.

Parameters:
value - The new minimum or maximum value.

compareTo

public int compareTo(Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface Comparable
Parameters:
o - The Object to be compared.
Returns:
A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
ClassCastException - if the object passed in is not a Date object.

Copyright © 2004 Quest Software Inc..
All rights reserved.