com.monad.homerun.action
Class DateBinding

java.lang.Object
  extended by com.monad.homerun.action.Binding
      extended by com.monad.homerun.action.DateBinding
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class DateBinding
extends Binding
implements java.lang.Comparable

DateBinding represents an action bound to a specific date/time. Used as entries in calendars.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.monad.homerun.action.Binding
RUN_MODE, RUN_MODE_STR, START_MODE, START_MODE_STR, STOP_MODE, STOP_MODE_STR
 
Constructor Summary
DateBinding()
           
DateBinding(DateBinding entry)
           
DateBinding(int day, int minutes, int actionMode, java.lang.String actionName, java.lang.String actionCategory)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
          Comparable method
 short getDay()
          Returns the binding day of month
 short getMinutes()
          Returns the time in minute of the week
 boolean sameButDay(DateBinding binding)
          Tests for equality of entries that differ only by day
 void setDay(short day)
          Sets the binding day of month
 void setMinutes(short minutes)
          Sets the time in minute of the week
 
Methods inherited from class com.monad.homerun.action.Binding
getActionCategory, getActionMode, getActionName, getMode, getModeIconName, getModes, getNote, getProperties, getProperty, modeFor, setNote, setProperties, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateBinding

public DateBinding()

DateBinding

public DateBinding(int day,
                   int minutes,
                   int actionMode,
                   java.lang.String actionName,
                   java.lang.String actionCategory)

DateBinding

public DateBinding(DateBinding entry)
Method Detail

getDay

public short getDay()
Returns the binding day of month

Returns:
day - from 1 to last day of month

setDay

public void setDay(short day)
Sets the binding day of month

Parameters:
day - - from 1 to last day of month

getMinutes

public short getMinutes()
Returns the time in minute of the week

Returns:
minutes - from 1 to last minute of month

setMinutes

public void setMinutes(short minutes)
Sets the time in minute of the week

Parameters:
minutes - - from 1 to last minute of month

sameButDay

public boolean sameButDay(DateBinding binding)
Tests for equality of entries that differ only by day

Parameters:
binding - the DateBinding to compare
Returns:
true if time of day the same

compareTo

public int compareTo(java.lang.Object obj)
Comparable method

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - the TimeBinding to compare with this one


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.