com.cc.framework.ui.painter.def.scheduler
Class SchedulerViewHelp

java.lang.Object
  extended bycom.cc.framework.ui.painter.def.scheduler.SchedulerViewHelp

public class SchedulerViewHelp
extends java.lang.Object

Helper Class for Scheduler view painters

Version:
$Revision$
Author:
Harald Schulz

Constructor Summary
SchedulerViewHelp()
           
 
Method Summary
static org.apache.ecs.ConcreteElement createAddButton(PainterContext ctx, java.util.Calendar date, ActionBehavior behavior)
          renders a add appointment button
static org.apache.ecs.ConcreteElement createCheckBox(PainterContext ctx, Appointment[] appointments, java.util.Calendar date, SchedulerScope scope, ClientHandler handler, boolean displayOnly, ActionBehavior behavior)
          renders a CheckBox
static org.apache.ecs.ConcreteElement createCheckBox(PainterContext ctx, Appointment appointment, java.util.Calendar date, ClientHandler handler, boolean displayOnly, ActionBehavior behavior)
          renders a CheckBox
protected static CheckState getCheckState(java.util.Calendar date, Appointment appointment)
          Retrieves the Check state for the given Appointment
protected static CheckState getCheckState(java.util.Calendar date, Appointment[] appointments)
          Retrieves the cumulated Check state for the given Appointment list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerViewHelp

public SchedulerViewHelp()
Method Detail

getCheckState

protected static CheckState getCheckState(java.util.Calendar date,
                                          Appointment[] appointments)
Retrieves the cumulated Check state for the given Appointment list

Parameters:
date - The Date of the day
appointments - The appointments to check
Returns:
one of the CheckState constants

getCheckState

protected static CheckState getCheckState(java.util.Calendar date,
                                          Appointment appointment)
Retrieves the Check state for the given Appointment

Parameters:
date - The Date of the day
appointment - The appointment to check
Returns:
one of the CheckState constants

createCheckBox

public static org.apache.ecs.ConcreteElement createCheckBox(PainterContext ctx,
                                                            Appointment appointment,
                                                            java.util.Calendar date,
                                                            ClientHandler handler,
                                                            boolean displayOnly,
                                                            ActionBehavior behavior)
renders a CheckBox

Parameters:
ctx - Painter context
appointment - the appointment
date - the concrete date
handler - Java Script Handlers
displayOnly - Indicates that this checkbox should be only for display
behavior - How actions should behave on the client
Returns:
ConcreteElement Checkbox HTML Element

createCheckBox

public static org.apache.ecs.ConcreteElement createCheckBox(PainterContext ctx,
                                                            Appointment[] appointments,
                                                            java.util.Calendar date,
                                                            SchedulerScope scope,
                                                            ClientHandler handler,
                                                            boolean displayOnly,
                                                            ActionBehavior behavior)
renders a CheckBox

Parameters:
ctx - Painter context
appointments - the appointment List
date - the concrete date
scope - View scope (day,week,month,...)
handler - Java Script Handlers
displayOnly - Indicates that this checkbox should be only for display
behavior - How actions should behave on the client
Returns:
ConcreteElement Checkbox HTML Element

createAddButton

public static org.apache.ecs.ConcreteElement createAddButton(PainterContext ctx,
                                                             java.util.Calendar date,
                                                             ActionBehavior behavior)
renders a add appointment button

Parameters:
ctx - Painter context
date - The Date of the day
behavior - How actions should behave on the client
Returns:
ConcreteElement


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