| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.control.Control
com.cc.framework.ui.control.SchedulerControl
SchedulerControl
| Field Summary | |
| private  SchedulerControl | childCtrlA Scheduler control can be used to control the state of a dependent child Scheduler control. | 
| private  SchedulerDataModel | dataModelDataModel | 
| private  SchedulerDesignModel | designModelDesignModell | 
| private static long | serialVersionUIDSerial Version UID | 
| private  SchedulerStateModel | stateModelStateModel | 
| Fields inherited from class com.cc.framework.ui.control.Control | 
| log | 
| Fields inherited from interface com.cc.framework.ui.model.SchedulerStateModel | 
| PROP_VIEW | 
| Fields inherited from interface com.cc.framework.ui.model.StateModel | 
| PROP_CONTROL | 
| Constructor Summary | |
| SchedulerControl()Constructor | |
| SchedulerControl(SchedulerDesignModel designModel)Constructor | |
| Method Summary | |
|  boolean | compressWeekEnds() | 
| protected  SchedulerStateModel | doCreateStateModel()Creates the state model for this control instance | 
|  Appointment | getAppointmentFromId(java.lang.String uniqueId)Retrieves the appointment with the given key | 
|  Appointment[] | getAppointments(java.util.Calendar date)Liefert alle Termine für ein bestimmtes Datum | 
|  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 | 
|  DataModel | getDataModel()Returns the data model of the Control | 
|  java.util.Calendar | getDate()Retrieves the first visible Date in the Scheduler Control | 
|  int | getDayEndHour() | 
|  int | getDayStartHour() | 
|  ControlDesignModel | getDesignModel()Returns the design model of the control | 
|  SchedulerControl | getDetail()Retrieves the scheduler control that is controlled by this scheduler. | 
|  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(java.lang.Object layoutHint)Retrieves a list of 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 | 
|  StateModel | getStateModel()Returns the state model of the control | 
|  java.util.TimeZone | getTimeZone()Liefert die Zeitzone | 
|  java.lang.String | getTitle()Returns the Title | 
|  SchedulerView | getView() | 
|  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() | 
|  boolean | isWorkingDay(int dayOfWeek)Checks if the given day is configured as a working day | 
|  boolean | isWorkingHour(int dayOfWeek,
              int hour)This method checks if the given hour is a working hour | 
|  void | onAddAppointment(ControlRequestContext ctx,
                 long timeInMillis)Default handler for the AddAppointment Event | 
|  void | onAppointmentClick(ControlRequestContext ctx,
                   java.lang.String key,
                   long timeInMillis)Default handler for the AppointmentCLick Event | 
|  void | onChangeDate(ControlRequestContext ctx,
             long timeInMillis,
             java.lang.String view)Rolls the specified Date field by the given delta value. | 
|  void | onCheckAppointment(ControlRequestContext ctx,
                   java.lang.String uniqueId,
                   long timeInMillis,
                   boolean check)Default handler for the CheckAppointment Event | 
|  void | onCheckDate(ControlRequestContext ctx,
            long timeInMillis,
            SchedulerScope scope,
            boolean check)Default handler for the CheckAppointment Event | 
|  void | onCreate(ControlRequestContext ctx)Default handler for the Create Event | 
|  void | onExportList(ControlRequestContext ctx)Default handler for the ExportList Event | 
|  void | onPrintList(ControlRequestContext ctx)Default handler for the PrintList Event | 
|  void | onRefresh(ControlRequestContext ctx)Default Handler for the Refresh Event | 
|  void | onSelectDate(ControlRequestContext ctx,
             long timeInMillis,
             java.lang.String view)This method gets called when the user clicks on a date element. | 
|  void | onView(ControlRequestContext ctx,
       java.lang.String view)Default Handler for the View Event | 
|  void | reset()Resets the actual state of a control to the initial state | 
|  void | setDataModel(SchedulerDataModel dataModel)Sets the data model | 
|  void | setDate(java.util.Calendar date)Sets the first visible Date in the Scheduler Control | 
|  void | setDesignModel(SchedulerDesignModel designModel)Sets the designModel | 
|  void | setDetail(SchedulerControl child)A Scheduler control can be used to control the state of a dependent child Scheduler control. | 
|  void | setStateModel(SchedulerStateModel stateModel)Sets the StateModel | 
|  void | setView(SchedulerView view)Specifies the style used to display dates in a Scheduler control | 
|  boolean | showAllDayArea() | 
|  boolean | showButton(ControlButton button)This Method is called by the Painter before rendering a Button. | 
|  boolean | showFrame()Returns trueif the frame should be painted | 
|  boolean | showPopups() | 
|  boolean | showWeekEndDays() | 
| Methods inherited from class com.cc.framework.ui.control.Control | 
| addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, synchronizeState, synchronizeState | 
| 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.StateModel | 
| synchronizeState | 
| Field Detail | 
private static final long serialVersionUID
private SchedulerDataModel dataModel
private SchedulerDesignModel designModel
private SchedulerStateModel stateModel
private SchedulerControl childCtrl
| Constructor Detail | 
public SchedulerControl()
public SchedulerControl(SchedulerDesignModel designModel)
designModel - the design model| Method Detail | 
public void reset()
StateModel
reset in interface StateModelStateModel.reset()public void setStateModel(SchedulerStateModel stateModel)
stateModel - TreeStateModelprotected SchedulerStateModel doCreateStateModel()
public DataModel getDataModel()
Control
getDataModel in class ControlControl.getDataModel()public ControlDesignModel getDesignModel()
Control
getDesignModel in class ControlControl.getDesignModel()public void setDesignModel(SchedulerDesignModel designModel)
designModel - The designModel to setpublic void setDataModel(SchedulerDataModel dataModel)
dataModel - TopsAndFlopsDataModelpublic StateModel getStateModel()
Control
getStateModel in class ControlControl.getStateModel()public Appointment[] getAppointments(java.util.Calendar date)
date - Das Datum
public Appointment getAppointmentFromId(java.lang.String uniqueId)
uniqueId - the unique identifier of the appointment
nullpublic java.util.TimeZone getTimeZone()
public java.util.Calendar getDate()
SchedulerStateModel
getDate in interface SchedulerStateModelSchedulerStateModel.getDate()public void setDate(java.util.Calendar date)
SchedulerStateModel
setDate in interface SchedulerStateModeldate - The first visible DateSchedulerStateModel.setDate(java.util.Calendar)public boolean isWorkingDay(int dayOfWeek)
dayOfWeek - Day to check
true if this is a working day
public boolean isWorkingHour(int dayOfWeek,
                             int hour)
dayOfWeek - Day to checkhour - The hour to check
true if the hour is a working hourpublic java.lang.String getTitle()
public boolean showPopups()
true to show appointments in year view in a popup
         windowpublic int getCheckBoxMask()
SchedulerScopepublic int getColumns()
public int getRows()
public boolean getFilter()
public ImageModel getImage()
public InnerFrame[] getInnerFrames(java.lang.Object layoutHint)
layoutHint - The layout hint that specifies what frames should be selected:
            AlignmentType.TOP - header frames
            AlignmentType.BOTTOM - footer frames
public boolean showFrame()
true if the frame should be painted
true if the frame should be paintedpublic boolean compressWeekEnds()
public int getDayStartHour()
public int getDayEndHour()
public int getWorkStartHour()
public int getWorkEndHour()
public int getWorkingDayMask()
public boolean showAllDayArea()
public boolean showWeekEndDays()
public int getFirstDayOfWeek()
0 for
         the locales defaultpublic int getInterval()
public SchedulerView getView()
getView in interface SchedulerStateModelpublic ImageMap getImageMap()
nullpublic int getMaxVisible()
public void setView(SchedulerView view)
SchedulerStateModel
setView in interface SchedulerStateModelview - The ViewSchedulerStateModel.setView(com.cc.framework.ui.model.SchedulerView)public int getViewMask()
SchedulerViewpublic int getMonthIncrement()
public boolean showButton(ControlButton button)
Control
showButton in class Controlbutton - ControlButton
Control.showButton(com.cc.framework.ui.control.ControlButton)public void setDetail(SchedulerControl child)
child - The dependent scheduler controlpublic SchedulerControl getDetail()
null
public void onCreate(ControlRequestContext ctx)
              throws java.lang.Exception
ctx - ControlRequestContext
java.lang.Exception - is thrown when an error occurs
public void onRefresh(ControlRequestContext ctx)
               throws java.lang.Exception
ctx - ControlRequestContext
java.lang.Exception - is thrown when an error occurs
public void onView(ControlRequestContext ctx,
                   java.lang.String view)
            throws java.lang.Exception
ctx - ControlRequestContextview - The view to switch to
java.lang.Exception - is thrown when an error occurs
public void onChangeDate(ControlRequestContext ctx,
                         long timeInMillis,
                         java.lang.String view)
                  throws java.lang.Exception
ctx - ControlRequestContexttimeInMillis - The new Time in milliseconds in UTCview - the View (SchedulerView)
java.lang.Exception - is thrown when an error occurs
public void onSelectDate(ControlRequestContext ctx,
                         long timeInMillis,
                         java.lang.String view)
                  throws java.lang.Exception
ctx - ControlRequestContexttimeInMillis - The new Time in milliseconds in UTCview - the View (SchedulerView)
java.lang.Exception - is thrown when an error occurs
public void onAppointmentClick(ControlRequestContext ctx,
                               java.lang.String key,
                               long timeInMillis)
                        throws java.lang.Exception
ctx - ControlRequestContextkey - Unique Id as generated by the data model to identify the RowtimeInMillis - Timestamp in UTC
java.lang.Exception - is thrown when an error occurs
public void onAddAppointment(ControlRequestContext ctx,
                             long timeInMillis)
                      throws java.lang.Exception
ctx - ControlRequestContexttimeInMillis - Timestamp in UTC
java.lang.Exception - is thrown when an error occurs
public void onCheckAppointment(ControlRequestContext ctx,
                               java.lang.String uniqueId,
                               long timeInMillis,
                               boolean check)
                        throws java.lang.Exception
ctx - ControlRequestContextuniqueId - Unique Id as generated by the data model to identify the RowtimeInMillis - Timestamp in UTCcheck - indicates if the appointment was checked or unchecked
java.lang.Exception - is thrown when an error occurs
public void onCheckDate(ControlRequestContext ctx,
                        long timeInMillis,
                        SchedulerScope scope,
                        boolean check)
                 throws java.lang.Exception
ctx - ControlRequestContexttimeInMillis - Timestamp in UTCscope - The scope (range of appointments) that is affected by this
            eventcheck - indicates if the appointment was checked or unchecked
java.lang.Exception - is thrown when an error occurs
public void onExportList(ControlRequestContext ctx)
                  throws java.lang.Exception
ctx - ControlRequestContext
java.lang.Exception - is thrown when an error occurs
public void onPrintList(ControlRequestContext ctx)
                 throws java.lang.Exception
ctx - ControlRequestContext
java.lang.Exception - is thrown when an error occurs| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||