|
|||||||||||
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.RecurrencePatternControl
TextControl
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 |
private static final long serialVersionUID
private RecurrencePatternDesignModel designModel
private RecurrenceType type
private int dayDayMask
private int dayInterval
private int weekDayMask
private int weekInterval
private int monthSubtype
private int monthDayOfMonth
private int monthInterval
private int monthNthInstance
private int monthNthDayMask
private int monthNthInterval
private int yearSubtype
private int yearMonthOfYear
private int yearDayOfMonth
private int yearNthInstance
private int yearNthDayMask
private int yearNthMonthOfYear
Constructor Detail |
public RecurrencePatternControl()
Method Detail |
public void setDesignModel(RecurrencePatternDesignModel designModel)
designModel
- RecurrencePatternDesignModelpublic DataModel getDataModel()
Control
getDataModel
in class Control
Control.getDataModel()
public ControlDesignModel getDesignModel()
Control
getDesignModel
in class Control
Control.getDesignModel()
public StateModel getStateModel()
Control
getStateModel
in class Control
Control.getStateModel()
public void reset()
StateModel
reset
in interface StateModel
StateModel.reset()
public boolean filter()
true
if string will be HTML encoded;
false
otherwisepublic void setFromPattern(RecurrencePattern pattern)
pattern
- the patternpublic RecurrencePattern setToPattern(RecurrencePattern pattern)
null
pattern
- the pattern to fill
public RecurrenceType getRecurrenceType()
public java.lang.String getType()
public void setType(java.lang.String type)
type
- the recurrence typepublic void setWeekDayMask(int day, boolean value)
day
- the day indexvalue
- true
if the bit for the given day is to be setpublic boolean getWeekDayMask(int day)
day
- the day index
true
if the bit for the given day is set in the
week day maskpublic int getDayDayMask()
public int getDayInterval()
public int getMonthDayOfMonth()
public int getMonthInterval()
public int getMonthNthDayMask()
public int getMonthNthInstance()
public int getMonthNthInterval()
public int getMonthSubtype()
public int getWeekInterval()
public int getYearDayOfMonth()
public int getYearMonthOfYear()
public int getYearNthDayMask()
public int getYearNthInstance()
public int getYearNthMonthOfYear()
public int getYearSubtype()
public void setDayDayMask(int i)
i
- public void setDayInterval(int i)
i
- public void setMonthDayOfMonth(int i)
i
- public void setMonthInterval(int i)
i
- public void setMonthNthDayMask(int i)
i
- public void setMonthNthInstance(int i)
i
- public void setMonthNthInterval(int i)
i
- public void setMonthSubtype(int i)
i
- public void setWeekInterval(int i)
i
- public void setYearDayOfMonth(int i)
i
- public void setYearMonthOfYear(int i)
i
- public void setYearNthDayMask(int i)
i
- public void setYearNthInstance(int i)
i
- public void setYearNthMonthOfYear(int i)
i
- public void setYearSubtype(int i)
i
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |