|
jWorkSheet release 0.90 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ponec.jworksheet.bo.item.Time
public class Time
Time
Field Summary | |
---|---|
static java.lang.String |
SEPARATOR
Separator |
static int |
VALUE_MAX
|
static int |
VALUE_MIN
|
Constructor Summary | |
---|---|
Time(boolean systemTime)
Creates a new instance of a System Time. |
|
Time(int minutes)
Creates a new instance of a System Time. |
|
Time(java.lang.String time)
Creates a new instance of Time |
Method Summary | |
---|---|
void |
addHour(float aHours)
|
void |
addMinute(int minutes)
|
java.lang.Object |
clone(int depth,
java.lang.Object context)
Returns a clone |
Time |
cloneAdd(int period)
Add some minutes to a new Time instance. |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object obj)
|
int |
getMinutes()
Return minutes |
short |
getTimeMinutes()
Returns Time in minutes. |
void |
setTime(int minutes)
|
void |
setTime(int hourse,
int minute)
|
void |
setTimeFromSystem()
Assign a system time. |
short |
substract(Time time)
Result [minutes]: this - time. |
java.lang.String |
toString()
|
protected void |
valid(int minutes)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SEPARATOR
public static int VALUE_MIN
public static int VALUE_MAX
Constructor Detail |
---|
public Time(java.lang.String time)
time
- Format 23:56public Time(int minutes)
public Time(boolean systemTime)
Method Detail |
---|
public void setTimeFromSystem()
public void setTime(int hourse, int minute)
public void setTime(int minutes)
public short getTimeMinutes()
protected void valid(int minutes)
public void addMinute(int minutes)
public void addHour(float aHours)
public short substract(Time time)
public int getMinutes()
public java.lang.String toString()
toString
in interface ValueTextable
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public Time cloneAdd(int period)
public java.lang.Object clone(int depth, java.lang.Object context)
clone
in interface UjoCloneable
|
jWorkSheet release 0.90 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |