|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.MAssignmentSlot
public class MAssignmentSlot
Assignment Slot. Display Information about Assignment Slot
| Field Summary | |
|---|---|
static int |
DISPLAY_ALL
toString displays everything |
static int |
DISPLAY_DATETIME_FROM_TO
toString displays formatted day time from-to |
static int |
DISPLAY_FULL
toString displays formatted all info |
static int |
DISPLAY_NAME
toString displays name |
static int |
DISPLAY_NAME_DESCRIPTION
toString displays name and optional description |
static int |
DISPLAY_TIME_FROM
toString displays formatted time from |
static int |
DISPLAY_TIME_FROM_TO
toString displays formatted time from-to |
static int |
STATUS_Confirmed
Assignment Code |
static int |
STATUS_NonBusinessDay
Not Available Code |
static int |
STATUS_NotAvailable
Not Available Code |
static int |
STATUS_NotConfirmed
Assignment Code |
static int |
STATUS_NotInSlotDay
Not Available Code |
static int |
STATUS_NotInSlotTime
Not Available Code |
static int |
STATUS_TimeSlot
Assignment Code |
static int |
STATUS_UnAvailable
Not Available Code |
| Constructor Summary | |
|---|---|
MAssignmentSlot()
Comparator Constructor |
|
MAssignmentSlot(long startTime,
long endTime)
Timeslot Constructor |
|
MAssignmentSlot(MResourceAssignment assignment)
Assignment Constructor |
|
MAssignmentSlot(Timestamp startTime,
Timestamp endTime)
Timeslot Constructor |
|
MAssignmentSlot(Timestamp startTime,
Timestamp endTime,
String name,
String description,
int status)
Non Assignment Constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(MAssignmentSlot slot)
Compares its two arguments for order. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this Comparator. |
Color |
getColor(boolean background)
Get Color for Status |
String |
getDescription()
Get Description |
Timestamp |
getEndTime()
Get End time |
String |
getInfo()
Get Info with Date, Time From-To Name Description |
String |
getInfoDateTimeFromTo()
Get Info with Date & Time From-To |
String |
getInfoNameDescription()
Get Info with Name and optional Description |
String |
getInfoTimeFrom()
Get Info with Time From |
String |
getInfoTimeFromTo()
Get Info with Time From-To |
MResourceAssignment |
getMAssignment()
Get Assugnment |
String |
getName()
Get Name |
Timestamp |
getStartTime()
Get Start time |
int |
getStatus()
Get Status |
int |
getXMax()
Get X columns |
int |
getXPos()
Get X position |
int |
getYEnd()
Get Y end position |
int |
getYStart()
Get Y start position |
int |
hashCode()
HashCode of MAssignmentSlot |
boolean |
inSlot(Timestamp time,
boolean endTime)
Returns true if time is between start and end Time. |
boolean |
isAssignment()
Is the Slot an Assignment? |
void |
setDescription(String description)
Set Description |
void |
setDisplay(int displayMode)
Set Display Mode of toString() |
void |
setEndTime(Timestamp endTime)
Set End time |
void |
setLanguage(Language language)
Set Language |
void |
setMAssignment(MResourceAssignment assignment)
Set Assignment |
void |
setName(String name)
Set Name |
void |
setStartTime(Timestamp startTime)
Set Start time |
void |
setStatus(int status)
Set Status |
void |
setX(int xPos,
int xMax)
Set X position |
void |
setY(int yStart,
int yEnd)
Set Y position |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_NotAvailable
public static final int STATUS_UnAvailable
public static final int STATUS_NonBusinessDay
public static final int STATUS_NotInSlotDay
public static final int STATUS_NotInSlotTime
public static final int STATUS_NotConfirmed
public static final int STATUS_Confirmed
public static final int STATUS_TimeSlot
public static final int DISPLAY_ALL
public static final int DISPLAY_TIME_FROM
public static final int DISPLAY_TIME_FROM_TO
public static final int DISPLAY_DATETIME_FROM_TO
public static final int DISPLAY_NAME
public static final int DISPLAY_NAME_DESCRIPTION
public static final int DISPLAY_FULL
| Constructor Detail |
|---|
public MAssignmentSlot()
public MAssignmentSlot(Timestamp startTime,
Timestamp endTime)
startTime - start timeendTime - end time
public MAssignmentSlot(long startTime,
long endTime)
startTime - start timeendTime - end time
public MAssignmentSlot(Timestamp startTime,
Timestamp endTime,
String name,
String description,
int status)
startTime - start timeendTime - end timename - namedescription - descriptionstatus - statuspublic MAssignmentSlot(MResourceAssignment assignment)
assignment - MAssignment| Method Detail |
|---|
public void setStatus(int status)
status - STATUS_..public int getStatus()
public boolean isAssignment()
public Color getColor(boolean background)
background - true if background - or foreground
public Timestamp getStartTime()
public void setStartTime(Timestamp startTime)
startTime - start time, if null use current timepublic Timestamp getEndTime()
public void setEndTime(Timestamp endTime)
endTime - end time, if null use start timepublic void setMAssignment(MResourceAssignment assignment)
assignment - MAssignmentpublic MResourceAssignment getMAssignment()
public void setName(String name)
name - namepublic String getName()
public void setDescription(String description)
description - descriptionpublic String getDescription()
public void setY(int yStart,
int yEnd)
yStart - zero based Y start indexyEnd - zero based Y end indexpublic int getYStart()
public int getYEnd()
public void setX(int xPos,
int xMax)
xPos - zero based X position indexxMax - number of parallel columnspublic int getXPos()
public int getXMax()
public void setLanguage(Language language)
language - languagepublic void setDisplay(int displayMode)
displayMode - DISPLAY_public String toString()
toString in class Objectpublic String getInfoTimeFrom()
public String getInfoTimeFromTo()
public String getInfoDateTimeFromTo()
public String getInfoNameDescription()
public String getInfo()
public boolean inSlot(Timestamp time,
boolean endTime)
Example: - Slots: 0:00-9:00 - 9:00-10:00 - 10:00-11:00 - ... - inSlot (9:00, false) -> 1 // start time - inSlot (10:00, true) -> 1 // end time
time - time of the dayendTime - if true, the end time is included
public int compareTo(MAssignmentSlot slot)
compareTo in interface Comparable<MAssignmentSlot>obj - the first object to be compared.o2 - the second object to be compared.
public boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true only if the specified object is also
a comparator and it imposes the same ordering as this
comparator.Object.equals(java.lang.Object),
Object.hashCode()public int hashCode()
hashCode in class Object
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||