com.cc.framework.ui.model
Class SchedulerView

java.lang.Object
  extended bycom.cc.framework.ui.model.SchedulerView
All Implemented Interfaces:
java.io.Serializable, SimpleEnumType

public class SchedulerView
extends java.lang.Object
implements SimpleEnumType, java.io.Serializable

Specifies the style used to display dates in a Scheduler control

Version:
$Revision: 1.9 $
Author:
Harald Schulz
See Also:
Serialized Form

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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

MASK_ALL

public static final int MASK_ALL
Mask for all views

See Also:
Constant Field Values

DAY

public static final SchedulerView DAY
The control will be displayed in day view


WEEK

public static final SchedulerView WEEK
The control will be displayed in week view


WORKWEEK

public static final SchedulerView WORKWEEK
The control will display only work days in a week using day view


MONTH

public static final SchedulerView MONTH
The control will be displayed in month view


YEAR

public static final SchedulerView YEAR
The control will be displayed in month short view


view

private java.lang.String view
The internal view name


bit

private int bit
An Bit position in the View Mask


ALL

private static final SchedulerView[] ALL
Collection with all enumeration elements

Constructor Detail

SchedulerView

private SchedulerView(java.lang.String view,
                      int bit)
Constructor for ScheduleView

Parameters:
view - Specifies the style used to display dates in a Scheduler control
bit - Ordinal value for the bit position in the view mask
Method Detail

mask

public int mask()
Returns:
returns a Bitmask for this view

toString

public java.lang.String toString()
Returns the ScheduleView

Returns:
The ScheduleView

isInMask

public boolean isInMask(int viewMask)
Checks if the view is contained in the given mask

Parameters:
viewMask - The View Mask to test
Returns:
true if the view is set in the mask

equals

public boolean equals(java.lang.Object obj)
Compares this type to the specified object.

Parameters:
obj - The object to compare this ScheduleView object against.
Returns:
true if the internal types are equal; false otherwise.

hashCode

public int hashCode()
See Also:
Object.hashCode()

parse

public static SchedulerView parse(java.lang.String code)
Creates for the argument an object of type AlignmentType

Parameters:
code - String to parse
Returns:
The new Object

parseMask

public static int parseMask(java.lang.String viewList)
Converts the semicolon delimited list of views into a view mask

Parameters:
viewList - semicolon delimited list of views or "true" for all possible views or "false"Returns:
bit mask


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.