|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.ClientHandlerImp com.cc.framework.ui.model.imp.ControlDesignModelImp com.cc.framework.ui.model.imp.SchedulerDesignModelImp
DesignModel for the Appointment Scheduler
Field Summary | |
private ButtonContainer |
buttons
The users permission which is necessary to see any buttons |
private int |
checkBoxMask
Indicates where to displayed checkboxes The appointment entries must implement the AppointmentCheckable Interface, so that the control
element can draw the checkboxes. |
private int |
columns
the number of columns in year view |
private boolean |
compressWeekEnds
Compress Weekends in Month View |
private int |
dayEndHour
The ending hour of the day |
private int |
dayMask
A Mask indicating the working days of the week. |
private int |
dayStartHour
The starting hour of the day |
private boolean |
filter
Specifies if all String should be converted into valid HTML Strings |
private int |
firstDayOfWeek
The index of the first day of the week. |
private java.util.ArrayList |
frames
Inner Frames |
private ImageModel |
image
The optional title image |
private ImageMap |
imageMap
The Image Map |
private int |
increment
The number of month to increment in year view when the user clicks on one of the navigation buttons. |
private int |
interval
The time interval for day view. |
private int |
maxVisible
The maximum number of visible Appointments for one day |
private boolean |
popups
Indicates if appointments in year view should be displayed in popup windows |
private int |
rows
the number of rows in year view |
private static long |
serialVersionUID
Serial Version UID |
private boolean |
showAllDayArea
Schow or hide the all day area in day view |
private boolean |
showFrame
Enables or disables the controls frame |
private boolean |
showWeekEndDays
Schow Weekends in month and navigator view |
private java.lang.String |
title
The Title of the control |
private int |
viewMask
Bit combination of the visible view buttons for this scheduler control. |
private int |
workEndHour
The working end hour of the day |
private int |
workStartHour
The working start hour of the day |
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
|
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
Constructor Summary | |
SchedulerDesignModelImp()
Constructor |
Method Summary | |
void |
addInnerFrame(InnerFrame frame)
Adds a inner frame to the List |
boolean |
compressWeekEnds()
|
Permission |
getButtonPermission(ControlButton button)
Retrieves the permission for the given button |
int |
getCheckBoxMask()
Retrieves a bit mask that indicates on what view levels a checkbox should be shown for this control |
int |
getColumns()
Retrieves the number of columns in year view |
int |
getDayEndHour()
|
int |
getDayStartHour()
|
boolean |
getFilter()
Returns the Filter setting |
int |
getFirstDayOfWeek()
Gets the first day of the week |
ImageModel |
getImage()
Returns the image for the frames title |
ImageMap |
getImageMap()
Returns the associated ImageMap |
InnerFrame[] |
getInnerFrames(Principal principal,
java.lang.Object layoutHint)
Retrieves a list of only the inner frames that are matching the given layout hint |
int |
getInterval()
|
int |
getMaxVisible()
Retrieves the maximum visible appointments for one Day |
int |
getMonthIncrement()
retrieves the number of month to increment in year view when the user clicks on one of the navigation buttons. |
int |
getRows()
Retrieves the number of rows in year view |
java.lang.String |
getTitle()
Returns the Title |
int |
getViewMask()
Retrieves a bit mask with all the possible view buttons for this control |
int |
getWorkEndHour()
|
int |
getWorkingDayMask()
Retrieves a Mask with the weeks working days. |
int |
getWorkStartHour()
|
void |
setButtonPermission(ControlButton button,
Permission permission)
Sets whether a command button should be displayed by specifying an Access Control List. |
void |
setCheckBoxMask(int checkBoxMask)
Sets a bit mask that indicates on what view levels checkboxes should be shown for this control |
void |
setColumns(int columns)
Sets the number of columns in year view |
void |
setCompressWeekEnds(boolean comress)
Sets a value indicating whether the weekends should be compressed in one day |
void |
setDayEndHour(int hour)
Sets a value indicating the end of the hour range displayed by the Schedule on DayView. |
void |
setDayStartHour(int hour)
Sets a value indicating the start of the hour range displayed by the Schedule on DayView. |
void |
setFilter(boolean filter)
Sets the Filter. |
void |
setFirstDayOfWeek(int dayIndex)
Sets the first day of the week |
void |
setImage(ImageModel img)
Sets an image for the frames title |
void |
setImageMap(ImageMap map)
Specifies the name of an image map. |
void |
setInterval(int interval)
Sets a value specifying the interval in which the hour is divided. |
void |
setMaxVisible(int max)
Sets the maximum visible appointments for one Day |
void |
setMonthIncrement(int increment)
Sets the number of month to increment in year view when the user clicks on one of the navigation buttons. |
void |
setRows(int rows)
Sets the number of rows in year view |
void |
setShowAllDayArea(boolean show)
Sets a value specifying whether the all-day area is displayed. |
void |
setShowFrame(boolean show)
Disables the frame |
void |
setShowPopups(boolean show)
|
void |
setShowWeekEndDays(boolean show)
Sets a value specifying whether the week end days are shown in week, month and navigator view. |
void |
setTitle(java.lang.String title)
Sets the title of the ListControl which is display in the Header |
void |
setViewMask(int mask)
Sets the visible view buttons for this scheduler control. |
void |
setWorkEndHour(int hour)
Sets a value indicating the end time of the day for the working hours. |
void |
setWorkingDayMask(int dayMask)
An attempt to set DayOfWeekMask to any value less than 0 or greater than 127 (0x7F) results in an OutOfBounds Exception. |
void |
setWorkStartHour(int hour)
Sets a value indicating the start time of the day for the working hours. |
boolean |
showAllDayArea()
|
boolean |
showButton(ControlButton button,
Principal principal)
Checks if the button can be displayed. |
boolean |
showFrame()
|
boolean |
showPopups()
|
boolean |
showWeekEndDays()
|
Methods inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
addDesignRule, enableAjax, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isAjaxEnabled, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth, show |
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
evaluate, getHandler, getHandlers, setHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.ui.model.ControlDesignModel |
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth |
Methods inherited from interface com.cc.framework.ui.model.ClientHandler |
getHandler, getHandlers, setHandler |
Methods inherited from interface com.cc.framework.ui.model.AccessControlled |
getPermission, show |
Methods inherited from interface com.cc.framework.ui.model.ActionBehavior |
isAjaxEnabled |
Methods inherited from interface com.cc.framework.ui.model.AjaxSupport |
enableAjax, isAjaxEnabled |
Field Detail |
private static final long serialVersionUID
private java.lang.String title
private boolean filter
private boolean showFrame
private ButtonContainer buttons
private ImageMap imageMap
private boolean compressWeekEnds
private boolean showWeekEndDays
private boolean showAllDayArea
private int dayStartHour
private int dayEndHour
private int workStartHour
private int workEndHour
private int interval
private int maxVisible
private int dayMask
private int firstDayOfWeek
private int columns
private int rows
private int increment
private boolean popups
private int checkBoxMask
AppointmentCheckable
Interface, so that the control
element can draw the checkboxes.
private int viewMask
private ImageModel image
private java.util.ArrayList frames
Constructor Detail |
public SchedulerDesignModelImp()
Method Detail |
public java.lang.String getTitle()
SchedulerDesignModel
getTitle
in interface SchedulerDesignModel
SchedulerDesignModel.getTitle()
public void setShowFrame(boolean show)
SchedulerDesignModel
setShowFrame
in interface SchedulerDesignModel
show
- true
if the lists frame should be shownSchedulerDesignModel.setShowFrame(boolean)
public void setTitle(java.lang.String title)
SchedulerDesignModel
setTitle
in interface SchedulerDesignModel
title
- The main title of the controlSchedulerDesignModel.setTitle(java.lang.String)
public boolean showFrame()
showFrame
in interface SchedulerDesignModel
true
if the frame should be shownSchedulerDesignModel.showFrame()
public boolean compressWeekEnds()
compressWeekEnds
in interface SchedulerDesignModel
SchedulerDesignModel.compressWeekEnds()
public void setImageMap(ImageMap map)
SchedulerDesignModel
setImageMap
in interface SchedulerDesignModel
map
- ImageMapSchedulerDesignModel.setImageMap(com.cc.framework.ui.ImageMap)
public ImageMap getImageMap()
SchedulerDesignModel
getImageMap
in interface SchedulerDesignModel
SchedulerDesignModel.getImageMap()
public int getDayEndHour()
getDayEndHour
in interface SchedulerDesignModel
SchedulerDesignModel.getDayEndHour()
public int getDayStartHour()
getDayStartHour
in interface SchedulerDesignModel
SchedulerDesignModel.getDayStartHour()
public int getWorkEndHour()
getWorkEndHour
in interface SchedulerDesignModel
SchedulerDesignModel.getWorkEndHour()
public int getWorkStartHour()
getWorkStartHour
in interface SchedulerDesignModel
SchedulerDesignModel.getWorkStartHour()
public void setCompressWeekEnds(boolean comress)
SchedulerDesignModel
setCompressWeekEnds
in interface SchedulerDesignModel
comress
- boolean valueSchedulerDesignModel.setCompressWeekEnds(boolean)
public void setDayEndHour(int hour)
SchedulerDesignModel
setDayEndHour
in interface SchedulerDesignModel
hour
- the start hourSchedulerDesignModel.setDayEndHour(int)
public void setDayStartHour(int hour)
SchedulerDesignModel
setDayStartHour
in interface SchedulerDesignModel
hour
- the start hourSchedulerDesignModel.setDayStartHour(int)
public void setShowAllDayArea(boolean show)
SchedulerDesignModel
setShowAllDayArea
in interface SchedulerDesignModel
show
- boolean valueSchedulerDesignModel.setShowAllDayArea(boolean)
public void setWorkEndHour(int hour)
SchedulerDesignModel
setWorkEndHour
in interface SchedulerDesignModel
hour
- the start hourSchedulerDesignModel.setWorkEndHour(int)
public void setWorkStartHour(int hour)
SchedulerDesignModel
setWorkStartHour
in interface SchedulerDesignModel
hour
- the start hourSchedulerDesignModel.setWorkStartHour(int)
public boolean showAllDayArea()
showAllDayArea
in interface SchedulerDesignModel
SchedulerDesignModel.showAllDayArea()
public void setShowWeekEndDays(boolean show)
SchedulerDesignModel
setShowWeekEndDays
in interface SchedulerDesignModel
show
- boolean valueSchedulerDesignModel.setShowWeekEndDays(boolean)
public boolean showWeekEndDays()
showWeekEndDays
in interface SchedulerDesignModel
SchedulerDesignModel.showWeekEndDays()
public int getInterval()
getInterval
in interface SchedulerDesignModel
SchedulerDesignModel.getInterval()
public void setInterval(int interval)
SchedulerDesignModel
setInterval
in interface SchedulerDesignModel
interval
- the interval in minutes (5|6|10|15|30|60)SchedulerDesignModel.setInterval(int)
public int getWorkingDayMask()
SchedulerDesignModel
getWorkingDayMask
in interface SchedulerDesignModel
SchedulerDesignModel.getWorkingDayMask()
public void setWorkingDayMask(int dayMask)
setWorkingDayMask
in interface SchedulerDesignModel
dayMask
- MaskSchedulerDesignModel.setWorkingDayMask(int)
public int getFirstDayOfWeek()
SchedulerDesignModel
getFirstDayOfWeek
in interface SchedulerDesignModel
0
for
the locales defaultSchedulerDesignModel.getFirstDayOfWeek()
public void setFirstDayOfWeek(int dayIndex)
SchedulerDesignModel
setFirstDayOfWeek
in interface SchedulerDesignModel
dayIndex
- Day index of the first Day of the week or 0
for
the locales defaultSchedulerDesignModel.setFirstDayOfWeek(int)
public int getMaxVisible()
SchedulerDesignModel
getMaxVisible
in interface SchedulerDesignModel
SchedulerDesignModel.getMaxVisible()
public void setMaxVisible(int max)
SchedulerDesignModel
setMaxVisible
in interface SchedulerDesignModel
max
- Maximum visible Appointments for one DaySchedulerDesignModel.setMaxVisible(int)
public void addInnerFrame(InnerFrame frame)
FrameContainer
addInnerFrame
in interface FrameContainer
frame
- the inner frame to addFrameContainer.addInnerFrame(com.cc.framework.ui.model.InnerFrame)
public InnerFrame[] getInnerFrames(Principal principal, java.lang.Object layoutHint)
FrameContainer
getInnerFrames
in interface FrameContainer
principal
- The principal object for permission tests. This parameter can
be null
layoutHint
- The layout hint that specifies what frames should be selected:
AlignmentType.TOP
- header frames
AlignmentType.BOTTOM
- footer frames
FrameContainer.getInnerFrames(com.cc.framework.security.Principal,
java.lang.Object)
public ImageModel getImage()
FrameContainer
getImage
in interface FrameContainer
FrameContainer.getImage()
public void setImage(ImageModel img)
FrameContainer
setImage
in interface FrameContainer
img
- ImageModelFrameContainer.setImage(com.cc.framework.ui.model.ImageModel)
public int getColumns()
SchedulerDesignModel
getColumns
in interface SchedulerDesignModel
SchedulerDesignModel.getColumns()
public int getRows()
SchedulerDesignModel
getRows
in interface SchedulerDesignModel
SchedulerDesignModel.getRows()
public void setColumns(int columns)
SchedulerDesignModel
setColumns
in interface SchedulerDesignModel
columns
- number of columnsSchedulerDesignModel.setColumns(int)
public void setRows(int rows)
SchedulerDesignModel
setRows
in interface SchedulerDesignModel
rows
- number of rowsSchedulerDesignModel.setRows(int)
public void setShowPopups(boolean show)
setShowPopups
in interface SchedulerDesignModel
show
- true
to show appointments in year view in a
popup windowSchedulerDesignModel.setShowPopups(boolean)
public boolean showPopups()
showPopups
in interface SchedulerDesignModel
true
to show appointments in year view in a popup
windowSchedulerDesignModel.showPopups()
public int getViewMask()
SchedulerDesignModel
getViewMask
in interface SchedulerDesignModel
SchedulerDesignModel.getViewMask()
public void setViewMask(int mask)
SchedulerDesignModel
setViewMask
in interface SchedulerDesignModel
mask
- Bit combination of Scheduler viewsSchedulerDesignModel.setViewMask(int)
public boolean getFilter()
SchedulerDesignModel
getFilter
in interface SchedulerDesignModel
SchedulerDesignModel.getFilter()
public void setFilter(boolean filter)
SchedulerDesignModel
setFilter
in interface SchedulerDesignModel
filter
- true
if Strings should be HTML encodedSchedulerDesignModel.setFilter(boolean)
public int getMonthIncrement()
SchedulerDesignModel
getMonthIncrement
in interface SchedulerDesignModel
SchedulerDesignModel.getMonthIncrement()
public void setMonthIncrement(int increment)
SchedulerDesignModel
setMonthIncrement
in interface SchedulerDesignModel
increment
- Number of columns to incrementSchedulerDesignModel.setMonthIncrement(int)
public int getCheckBoxMask()
SchedulerDesignModel
getCheckBoxMask
in interface SchedulerDesignModel
SchedulerDesignModel.getCheckBoxMask()
public void setCheckBoxMask(int checkBoxMask)
SchedulerDesignModel
setCheckBoxMask
in interface SchedulerDesignModel
checkBoxMask
- Bit combination of Scheduler viewsSchedulerDesignModel.setCheckBoxMask(int)
public Permission getButtonPermission(ControlButton button)
ButtonContainer
getButtonPermission
in interface ButtonContainer
button
- Button constant
null
ButtonContainer.getButtonPermission(com.cc.framework.ui.control.ControlButton)
public boolean showButton(ControlButton button, Principal principal)
ButtonContainer
showButton
in interface ButtonContainer
button
- The Button to queryprincipal
- The principal object
true
if the button should be displayedButtonContainer.showButton(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Principal)
public void setButtonPermission(ControlButton button, Permission permission)
ButtonContainer
setButtonPermission
in interface ButtonContainer
button
- The Button to querypermission
- PermissionButtonContainer.setButtonPermission(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Permission)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |