|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.SchedulerView
Specifies the style used to display dates in a Scheduler control
Field Summary | |
private static SchedulerView[] |
ALL
Collection with all enumeration elements |
private int |
bit
An Bit position in the View Mask |
static SchedulerView |
DAY
The control will be displayed in day view |
static int |
MASK_ALL
Mask for all views |
static SchedulerView |
MONTH
The control will be displayed in month view |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
view
The internal view name |
static SchedulerView |
WEEK
The control will be displayed in week view |
static SchedulerView |
WORKWEEK
The control will display only work days in a week using day view |
static SchedulerView |
YEAR
The control will be displayed in month short view |
Constructor Summary | |
private |
SchedulerView(java.lang.String view,
int bit)
Constructor for ScheduleView |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this type to the specified object. |
int |
hashCode()
|
boolean |
isInMask(int viewMask)
Checks if the view is contained in the given mask |
int |
mask()
|
static SchedulerView |
parse(java.lang.String code)
Creates for the argument an object of type AlignmentType |
static int |
parseMask(java.lang.String viewList)
Converts the semicolon delimited list of views into a view mask |
java.lang.String |
toString()
Returns the ScheduleView |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final int MASK_ALL
public static final SchedulerView DAY
public static final SchedulerView WEEK
public static final SchedulerView WORKWEEK
public static final SchedulerView MONTH
public static final SchedulerView YEAR
private java.lang.String view
private int bit
private static final SchedulerView[] ALL
Constructor Detail |
private SchedulerView(java.lang.String view, int bit)
view
- Specifies the style used to display dates in a Scheduler
controlbit
- Ordinal value for the bit position in the view maskMethod Detail |
public int mask()
public java.lang.String toString()
public boolean isInMask(int viewMask)
viewMask
- The View Mask to test
true
if the view is set in the maskpublic boolean equals(java.lang.Object obj)
obj
- The object to compare this ScheduleView
object
against.
true
if the internal types are equal;
false
otherwise.public int hashCode()
Object.hashCode()
public static SchedulerView parse(java.lang.String code)
code
- String to parse
public static int parseMask(java.lang.String viewList)
viewList
- semicolon delimited list of views or "true"
for
all possible views or "false"
Returns:
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |