com.cc.framework.ui.control
Class RecurrencePatternControl

java.lang.Object
  extended bycom.cc.framework.ui.control.Control
      extended bycom.cc.framework.ui.control.RecurrencePatternControl
All Implemented Interfaces:
AccessControlled, ActionBehavior, ClientHandler, RecurrencePatternStateModel, java.io.Serializable, StateModel

public class RecurrencePatternControl
extends Control
implements RecurrencePatternStateModel

TextControl

Since:
1.0
Version:
$Revision: 1.10 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  int dayDayMask
           
private  int dayInterval
           
private  RecurrencePatternDesignModel designModel
          Designmodel
private  int monthDayOfMonth
           
private  int monthInterval
           
private  int monthNthDayMask
           
private  int monthNthInstance
           
private  int monthNthInterval
           
private  int monthSubtype
           
private static long serialVersionUID
          Serial Version UID
private  RecurrenceType type
          DataModel
private  int weekDayMask
           
private  int weekInterval
           
private  int yearDayOfMonth
           
private  int yearMonthOfYear
           
private  int yearNthDayMask
           
private  int yearNthInstance
           
private  int yearNthMonthOfYear
           
private  int yearSubtype
           
 
Fields inherited from class com.cc.framework.ui.control.Control
log
 
Fields inherited from interface com.cc.framework.ui.model.StateModel
PROP_CONTROL
 
Constructor Summary
RecurrencePatternControl()
          Constructor
 
Method Summary
 boolean filter()
          Returns if the filter is activated (default=true).
 DataModel getDataModel()
          Returns the data model of the Control
 int getDayDayMask()
           
 int getDayInterval()
           
 ControlDesignModel getDesignModel()
          Returns the design model of the control
 int getMonthDayOfMonth()
           
 int getMonthInterval()
           
 int getMonthNthDayMask()
           
 int getMonthNthInstance()
           
 int getMonthNthInterval()
           
 int getMonthSubtype()
           
 RecurrenceType getRecurrenceType()
           
 StateModel getStateModel()
          Returns the state model of the control
 java.lang.String getType()
           
 boolean getWeekDayMask(int day)
          Retrieves the Mask for one specific week day
 int getWeekInterval()
           
 int getYearDayOfMonth()
           
 int getYearMonthOfYear()
           
 int getYearNthDayMask()
           
 int getYearNthInstance()
           
 int getYearNthMonthOfYear()
           
 int getYearSubtype()
           
 void reset()
          Resets the actual state of a control to the initial state
 void setDayDayMask(int i)
           
 void setDayInterval(int i)
           
 void setDesignModel(RecurrencePatternDesignModel designModel)
          Sets the DesignModel
 void setFromPattern(RecurrencePattern pattern)
          Initializes the controls variables from the given recurrence pattern
 void setMonthDayOfMonth(int i)
           
 void setMonthInterval(int i)
           
 void setMonthNthDayMask(int i)
           
 void setMonthNthInstance(int i)
           
 void setMonthNthInterval(int i)
           
 void setMonthSubtype(int i)
           
 RecurrencePattern setToPattern(RecurrencePattern pattern)
          Initializes the given recurrence pattern with the values from the control.
 void setType(java.lang.String type)
           
 void setWeekDayMask(int day, boolean value)
          Sets the Mask for one specific week day
 void setWeekInterval(int i)
           
 void setYearDayOfMonth(int i)
           
 void setYearMonthOfYear(int i)
           
 void setYearNthDayMask(int i)
           
 void setYearNthInstance(int i)
           
 void setYearNthMonthOfYear(int i)
           
 void setYearSubtype(int i)
           
 
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, showButton, 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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

designModel

private RecurrencePatternDesignModel designModel
Designmodel


type

private RecurrenceType type
DataModel


dayDayMask

private int dayDayMask

dayInterval

private int dayInterval

weekDayMask

private int weekDayMask

weekInterval

private int weekInterval

monthSubtype

private int monthSubtype

monthDayOfMonth

private int monthDayOfMonth

monthInterval

private int monthInterval

monthNthInstance

private int monthNthInstance

monthNthDayMask

private int monthNthDayMask

monthNthInterval

private int monthNthInterval

yearSubtype

private int yearSubtype

yearMonthOfYear

private int yearMonthOfYear

yearDayOfMonth

private int yearDayOfMonth

yearNthInstance

private int yearNthInstance

yearNthDayMask

private int yearNthDayMask

yearNthMonthOfYear

private int yearNthMonthOfYear
Constructor Detail

RecurrencePatternControl

public RecurrencePatternControl()
Constructor

Method Detail

setDesignModel

public void setDesignModel(RecurrencePatternDesignModel designModel)
Sets the DesignModel

Parameters:
designModel - RecurrencePatternDesignModel

getDataModel

public DataModel getDataModel()
Description copied from class: Control
Returns the data model of the Control

Specified by:
getDataModel in class Control
Returns:
The data model
See Also:
Control.getDataModel()

getDesignModel

public ControlDesignModel getDesignModel()
Description copied from class: Control
Returns the design model of the control

Specified by:
getDesignModel in class Control
Returns:
The ControlDesignModel
See Also:
Control.getDesignModel()

getStateModel

public StateModel getStateModel()
Description copied from class: Control
Returns the state model of the control

Specified by:
getStateModel in class Control
Returns:
The state model
See Also:
Control.getStateModel()

reset

public void reset()
Description copied from interface: StateModel
Resets the actual state of a control to the initial state

Specified by:
reset in interface StateModel
See Also:
StateModel.reset()

filter

public boolean filter()
Returns if the filter is activated (default=true). This means that all Strings which should be displayed in the HTML page are HTML encoded

Returns:
true if string will be HTML encoded; false otherwise

setFromPattern

public void setFromPattern(RecurrencePattern pattern)
Initializes the controls variables from the given recurrence pattern

Parameters:
pattern - the pattern

setToPattern

public RecurrencePattern setToPattern(RecurrencePattern pattern)
Initializes the given recurrence pattern with the values from the control. A new pattern will be created if the parameter is null

Parameters:
pattern - the pattern to fill
Returns:
RecurrencePattern

getRecurrenceType

public RecurrenceType getRecurrenceType()
Returns:
Returns the Recurrence Type

getType

public java.lang.String getType()
Returns:
Returns the Recurrence Type as a String

setType

public void setType(java.lang.String type)
Parameters:
type - the recurrence type

setWeekDayMask

public void setWeekDayMask(int day,
                           boolean value)
Sets the Mask for one specific week day

Parameters:
day - the day index
value - true if the bit for the given day is to be set

getWeekDayMask

public boolean getWeekDayMask(int day)
Retrieves the Mask for one specific week day

Parameters:
day - the day index
Returns:
true if the bit for the given day is set in the week day mask

getDayDayMask

public int getDayDayMask()
Returns:
Returns the day mask

getDayInterval

public int getDayInterval()
Returns:
Returns the interval for daily recurrences

getMonthDayOfMonth

public int getMonthDayOfMonth()
Returns:
Returns the day of month in Monthly recurrences

getMonthInterval

public int getMonthInterval()
Returns:
Returns the interval for monthly recurrences

getMonthNthDayMask

public int getMonthNthDayMask()
Returns:
Returns the Nth day mask for monthly recurrences

getMonthNthInstance

public int getMonthNthInstance()
Returns:
monthNthInstance

getMonthNthInterval

public int getMonthNthInterval()
Returns:
monthNthInterval

getMonthSubtype

public int getMonthSubtype()
Returns:
monthSubtype

getWeekInterval

public int getWeekInterval()
Returns:
weekInterval

getYearDayOfMonth

public int getYearDayOfMonth()
Returns:
yearDayOfMonth

getYearMonthOfYear

public int getYearMonthOfYear()
Returns:
yearMonthOfYear

getYearNthDayMask

public int getYearNthDayMask()
Returns:
yearNthDayMask

getYearNthInstance

public int getYearNthInstance()
Returns:
yearNthInstance

getYearNthMonthOfYear

public int getYearNthMonthOfYear()
Returns:
yearNthMonthOfYear

getYearSubtype

public int getYearSubtype()
Returns:
yearSubtype

setDayDayMask

public void setDayDayMask(int i)
Parameters:
i -

setDayInterval

public void setDayInterval(int i)
Parameters:
i -

setMonthDayOfMonth

public void setMonthDayOfMonth(int i)
Parameters:
i -

setMonthInterval

public void setMonthInterval(int i)
Parameters:
i -

setMonthNthDayMask

public void setMonthNthDayMask(int i)
Parameters:
i -

setMonthNthInstance

public void setMonthNthInstance(int i)
Parameters:
i -

setMonthNthInterval

public void setMonthNthInterval(int i)
Parameters:
i -

setMonthSubtype

public void setMonthSubtype(int i)
Parameters:
i -

setWeekInterval

public void setWeekInterval(int i)
Parameters:
i -

setYearDayOfMonth

public void setYearDayOfMonth(int i)
Parameters:
i -

setYearMonthOfYear

public void setYearMonthOfYear(int i)
Parameters:
i -

setYearNthDayMask

public void setYearNthDayMask(int i)
Parameters:
i -

setYearNthInstance

public void setYearNthInstance(int i)
Parameters:
i -

setYearNthMonthOfYear

public void setYearNthMonthOfYear(int i)
Parameters:
i -

setYearSubtype

public void setYearSubtype(int i)
Parameters:
i -


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