public class Calendar extends DatasrcInstance implements DataBeanListener
amIinitialize, DATASOURCE, INPUTMODE, labelOverride, ONDATACAHNGE, PARAM_APP, PARAM_APPTABTYPE, PARAM_DESIGNMODE, PARAM_LIGHTNING, PARAM_MOBILE, PARAM_MODULE, PARAM_PAGE, PARAM_PARENTCOMPONENT, PARAM_PARENTCONTROL, PARAM_PRESENTATION, PARAM_SCREENREADER, PARAM_SKINNAME, PARAM_TAB, PARAM_TABGROUP, PARAM_TABGROUP_MAIN, PARAM_TABLE, PARAM_USERINFO, PARAM_VERTICALLABEL, RERENDER_PROPERTY
EXCEPTION_ERROR, EXCEPTION_INFO, EXCEPTION_NONE, EXCEPTION_REQUIREDFIELD, EXCEPTION_SMARTFILL, EXCEPTION_WARNING, EXCEPTION_YESNOCANCEL, FORCE_WARNING_HANDLING, NO_PROMPT_WITH_WARNING, presentationTags, PROMPT_WHEN_WARNING_EXIST
Constructor and Description |
---|
Calendar() |
Modifier and Type | Method and Description |
---|---|
int |
changedate()
Handles the change of date when user scroll month, year or current date.
|
void |
changedate(java.lang.String type,
java.lang.String valueTyped)
Handles the change of date when user types time parts in the fields
Also updates current calendar details and properties.
|
void |
dataChangedEvent(DataBean speaker)
Overridden from DataBean
|
java.lang.String |
getCurrentDateString()
Prepares and returns the current date string viz.
|
java.lang.String |
getCurrentMonth()
Returns current month name
|
int |
getDay()
Returns day of the current calendar
|
java.lang.String[] |
getDays()
Returns names of days
|
int |
getDaysInMonth()
Return number of days in months
|
java.lang.String |
getEndDateAttribute()
Returns end date attribute property
|
int |
getFirstDayOfWeek()
Returns first week of the day
|
java.lang.String |
getHours(int dayNum)
Returns Hours (HH:MM) for a given day for the current month
|
java.lang.String |
getHTMLNotes(int dayNum)
Returns HTML notes for a given day for the current month
|
int |
getMonth()
Returns month of the current calendar
|
java.lang.String[] |
getMonths()
Returns names of months
|
java.lang.String |
getStartDateAttribute()
Returns start date attribute property
|
int |
getStartDay()
Returns start day of the current calendar
|
com.ibm.icu.util.Calendar |
getToday()
Returns Calendar object for current date
|
int |
getTodaysDay()
Returns day number of the current date
|
int |
getTodaysMonth()
Returns month number of the current date
|
int |
getTodaysYear()
Returns year of the current date
|
int |
getYear()
Returns year of the current calendar
|
void |
initialize()
should be extended to do any setup required by the instance.
|
int |
invalidyear()
Handles the invalid year event
|
boolean |
isCurrent()
Returns true if the calendar is current (month and year)
|
int |
render()
Overridden to refresh variables and properties on control of render
|
int |
setdate() |
void |
spintime(java.lang.String type,
boolean increment)
Handles the change of date when user types time parts in the fields
Also updates current calendar details and properties.
|
void |
structureChangedEvent(DataBean speaker)
Sets up the calendar for refresh when user moves the record
|
int |
thisdayworkperiods()
Partially handles "thisdayworkperiods" event to prepare the gregorian calendar to pass on to the dialog.
|
broadcastEvent, cleanup, getDataBean, instantiatedatasrc, instantiatedatasrcdesign
addChild, addComponent, canInsert, canInsert, canRemove, childHasError, childHasErrorFocus, clearComponent, clearErrors, copy, createRenderId, errorLevelChanged, eventCheck, findComponentByDescriptorId, findDesignerProperty, findProperty, findUseForLablledByComponent, getAdaptorInstance, getBoundComponent, getComponent, getComponents, getConditonallyChanged, getDataSource, getDescriptorControl, getDesignerProperty, getDesignerSelected, getDesignerSelectedControl, getElement, getErrorLevel, getGeneratedControl, getOriginalControl, getOriginalProperty, getProperties, getProperty, getProperty, getPropertyIgnoreFlags, getPropertyOriginator, getPropertyUncle, getRecordHover, getSkipPreRender, getTableControl, getTakesValueComponent, handleEvent, hasChanged, hasChangedConditionally, hasChildElements, hasMaskedChanged, hasRecordHover, hasVisibleChildren, isDesignerEditedProperty, isDisabled, isFocusable, isGenerated, isHiddenByLicense, isIncluded, isLastChild, isMainrecActionMenu, isMasked, isOnTableFilterRow, isOnTableTitleRow, isPersistentProperty, isReInitialize, isSelected, isToBeDisplayedOnCurrentTab, isToBeDisplayedOnTab, isVisible, launchexternal, moveChild, needsRender, parseParamvalues, preRender, preRenderChecks, quickinsert, registerDesignerEditedProperty, reInitialize, removeChild, renderChildren, resetDataSource, resolveParam, resolveParams, setAttributeError, setBoundComponent, setChangedFlag, setChangedFlag, setDesignerSelected, setDisabled, setElement, setErrorFocusOnControl, setFocus, setFocus, setFocusable, setFocusTable, setGenerated, setGeneratedControl, setIncluded, setIncluded, setNeedsRender, setOnTableFilterRow, setOnTableRow, setOnTableTitleRow, setOriginalControl, setPropertyOriginator, setPropertyUncle, setReInitialize, setReRenderFlags, setSelected, setSkipPreRender, setTableControl, setVisibility, stopRender, walkForId, walkForId
addChild, addChild, addRefreshListener, clearChildren, clearProperties, clone, clone, getBoolean, getChildCount, getChildIndex, getChildren, getConsiderInDesigner, getDescriptor, getId, getIdExtension, getInt, getLocalizedType, getPage, getParent, getParentInstance, getPropertyNames, getRefreshListeners, getRenderId, getRowNum, getSafeId, getString, getType, getWebClientSession, handleEvent, hasAnyPropertyChanged, hasLocalProperty, hasPropertyChanged, initProperty, isDynamicContainer, isOnTable, isOnTableRow, maintainControlId, removeProperty, setConsiderInDesigner, setDescriptor, setDynamicContainer, setOnTable, setParent, setProperty, setProperty, setRenderId, setType, setWebClientSession, toString
public void initialize()
BaseInstance
initialize
in class ControlInstance
public int setdate()
BoundComponentInstance.datelookup()
public int thisdayworkperiods()
public int changedate()
public void changedate(java.lang.String type, java.lang.String valueTyped)
public void spintime(java.lang.String type, boolean increment)
public int invalidyear()
public java.lang.String getCurrentDateString()
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
render
in class DatasrcInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
ControlInstance.render()
public java.lang.String getHTMLNotes(int dayNum)
dayNum
- intpublic java.lang.String getHours(int dayNum)
dayNum
- intpublic void dataChangedEvent(DataBean speaker)
dataChangedEvent
in interface DataBeanListener
speaker
- public void structureChangedEvent(DataBean speaker)
structureChangedEvent
in interface DataBeanListener
DataBeanListener.structureChangedEvent(psdi.webclient.system.beans.DataBean)
public com.ibm.icu.util.Calendar getToday()
public boolean isCurrent()
public int getDaysInMonth()
public int getFirstDayOfWeek()
public int getTodaysMonth()
public int getTodaysYear()
public int getTodaysDay()
public int getStartDay()
public int getMonth()
public int getYear()
public int getDay()
public java.lang.String[] getDays()
public java.lang.String[] getMonths()
public java.lang.String getStartDateAttribute()
public java.lang.String getEndDateAttribute()
public java.lang.String getCurrentMonth()