|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.Control com.cc.framework.ui.control.SchedulerControl
SchedulerControl
Field Summary | |
private SchedulerControl |
childCtrl
A Scheduler control can be used to control the state of a dependent child Scheduler control. |
private SchedulerDataModel |
dataModel
DataModel |
private SchedulerDesignModel |
designModel
DesignModell |
private static long |
serialVersionUID
Serial Version UID |
private SchedulerStateModel |
stateModel
StateModel |
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 true if 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 modelMethod Detail |
public void reset()
StateModel
reset
in interface StateModel
StateModel.reset()
public void setStateModel(SchedulerStateModel stateModel)
stateModel
- TreeStateModelprotected SchedulerStateModel doCreateStateModel()
public DataModel getDataModel()
Control
getDataModel
in class Control
Control.getDataModel()
public ControlDesignModel getDesignModel()
Control
getDesignModel
in class Control
Control.getDesignModel()
public void setDesignModel(SchedulerDesignModel designModel)
designModel
- The designModel to setpublic void setDataModel(SchedulerDataModel dataModel)
dataModel
- TopsAndFlopsDataModelpublic StateModel getStateModel()
Control
getStateModel
in class Control
Control.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
null
public java.util.TimeZone getTimeZone()
public java.util.Calendar getDate()
SchedulerStateModel
getDate
in interface SchedulerStateModel
SchedulerStateModel.getDate()
public void setDate(java.util.Calendar date)
SchedulerStateModel
setDate
in interface SchedulerStateModel
date
- The first visible DateSchedulerStateModel.setDate(java.util.Calendar)
public boolean isWorkingDay(int dayOfWeek)
dayOfWeek
- Day to check
true
if this is a working daypublic 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()
SchedulerScope
public 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 SchedulerStateModel
public ImageMap getImageMap()
null
public int getMaxVisible()
public void setView(SchedulerView view)
SchedulerStateModel
setView
in interface SchedulerStateModel
view
- The ViewSchedulerStateModel.setView(com.cc.framework.ui.model.SchedulerView)
public int getViewMask()
SchedulerView
public int getMonthIncrement()
public boolean showButton(ControlButton button)
Control
showButton
in class Control
button
- 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 occurspublic void onRefresh(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurspublic 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 occurspublic 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 occurspublic 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 occurspublic 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 occurspublic void onAddAppointment(ControlRequestContext ctx, long timeInMillis) throws java.lang.Exception
ctx
- ControlRequestContexttimeInMillis
- Timestamp in UTC
java.lang.Exception
- is thrown when an error occurspublic 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 occurspublic 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 occurspublic void onExportList(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurspublic 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 |