public class CalendarWidget extends ControlEntityExt<CalendarConfig> implements Calendar, EmitsComEvents, Checkable
BaseEntity.CharsPixels| Modifier and Type | Field and Description |
|---|---|
private ComObject |
obj
A definition of a corresponding COM-OBJECT used to raise the COM events.
|
comDataALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHTgroupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pm| Constructor and Description |
|---|
CalendarWidget()
Creates the instance of the calendar widget.
|
CalendarWidget(boolean dynamic)
Creates the instance of the calendar widget.
|
CalendarWidget(boolean dynamic,
CalendarConfig config)
Creates the instance of the calendar widget.
|
| Modifier and Type | Method and Description |
|---|---|
BaseDataType[] |
emitComEvent(java.lang.String eventName,
BaseDataType[] args)
The method is called when a COM event is to be emitted by the means of this instance.
|
integer |
getCalendarBackColor()
Returns the background color used to display the month portion of the dropdown calendar.
|
integer |
getCalendarForeColor()
Returns the foreground color used to display text in the month portion of the dropdown calendar.
|
integer |
getCalendarTitleBackColor()
Returns the background color used to display the title portion of the dropdown calendar.
|
integer |
getCalendarTitleForeColor()
Returns the foreground color used to display the title portion of the dropdown calendar.
|
integer |
getCalendarTrailingForeColor()
Returns the foreground color used to display the days at the beginning and end of
the dropdown calendar that are from previous and following months.
|
character |
getCalendarValue()
Returns the current date time value as a character value.
|
character |
getCustomFormat()
Returns the custom format string used to format the date and/or time displayed
in the control.
|
integer |
getDay()
Returns the day number [1-31] for the current date.
|
integer |
getDayOfWeek()
Returns the day of the week [0-6] for the current date.
|
integer |
getFormatStyle()
Determines whether dates and times are displayed using standard or custom formatting.
|
integer |
getHour()
Returns the hour number [0-23] for the current time.
|
date |
getMaxDate()
Returns the latest date that can be displayed or accepted by the control.
|
date |
getMinDate()
Returns the earliest date that can be displayed or accepted by the control.
|
integer |
getMinute()
Returns the minute number [0-59] for the current time.
|
integer |
getMonth()
Returns the month number [1-12] for the current date.
|
character |
getScreenValue()
Gets the widget screen value.
|
integer |
getSecond()
Returns the second number [0-59] for the current time.
|
integer |
getYear()
Returns the year for the current date.
|
boolean |
hasFormat()
The CALENDAR widget does not have a legacy-style format.
|
logical |
isCheckBox()
Returns whether the control displays a checkbox to the left of the date.
|
logical |
isChecked()
Returns whether the control displays a checkbox to the left of the date.
|
logical |
isUpDown()
Returns a value that determines whether an updown (spin) button is used to modify dates
instead of a dropdown calendar.
|
private java.time.LocalDateTime |
parseIsoDate(java.lang.String value)
Try to parse iso date time string.
|
void |
setCalendarBackColor(integer calendarBackColor)
Sets the background color used to display the month portion of the dropdown calendar.
|
void |
setCalendarForeColor(integer calendarForeColor)
Sets the foreground color used to display text in the month portion of the dropdown calendar.
|
void |
setCalendarTitleBackColor(integer titleBackColor)
Sets the background color used to display the title portion of the dropdown calendar.
|
void |
setCalendarTitleForeColor(integer titleForeColor)
Sets the foreground color used to display the title portion of the dropdown calendar.
|
void |
setCalendarTrailingForeColor(integer trailingForeColor)
Sets the foreground color used to display the days at the beginning and end of the dropdown
calendar that are from previous and following months.
|
void |
setCalendarValue(character value)
Sets the current date and time value as a character value.
|
void |
setCalendarValue(date value)
Sets the current date value.
|
void |
setCalendarValue(datetime value)
Sets the current date and time value.
|
void |
setCalendarValue(java.lang.String value)
Sets the current date and time value representing by a string.
|
void |
setCheckBox(logical enabledCheckBox)
Sets whether the control displays a checkbox to the left of the date.
|
void |
setChecked(boolean checked)
Sets whether the control displays a checkbox to the left of the date.
|
void |
setChecked(logical checked)
Sets whether the control displays a checkbox to the left of the date.
|
void |
setCustomFormat(character customFormat)
Sets the custom format string used to format the date and/or time displayed in the control.
|
void |
setCustomFormat(java.lang.String customFormat)
Sets the custom format string used to format the date and/or time displayed in the control.
|
void |
setDay(integer day)
Sets the day number [1-31] for the current date.
|
void |
setDayOfWeek(integer dayOfWeek)
Sets the day of the week [0-6] for the current date.
|
void |
setFormatStyle(integer formatStyle)
Determines whether dates and times are displayed using standard or custom formatting.
|
void |
setHour(integer hour)
Sets the hour number [0-23] for the current time.
|
void |
setMaxDate(date dateMaxDate)
Sets the latest date that can be displayed or accepted by the control.
|
void |
setMinDate(date dateMinDate)
Sets the earliest date that can be displayed or accepted by the control.
|
void |
setMinute(integer minute)
Sets the minute number [0-59] for the current time.
|
void |
setMonth(integer month)
Sets the month number [1-12] for the current date.
|
void |
setSecond(integer second)
Sets the second number [0-59] for the current time.
|
void |
setUpDown(logical upDown)
Sets a value that determines whether an updown (spin) button is used to modify dates instead
of a dropdown calendar.
|
void |
setYear(integer year)
Sets the year for the current date.
|
getAllowedEffects, getComData, getDataFormat, getEffect, getMouseButton, getMouseIcon, getMousePointerNum, getMouseShift, getMouseX, getMouseY, getOleDragMode, getOleDropMode, getOleX, getOleY, getState, isDefaultCursors, isEnabled, oleDrag, refreshUI, setAllowedEffects, setAllowedEffects, setComData, setDataFormat, setDataFormat, setDefaultCursors, setDefaultCursors, setEffect, setEffect, setEnabled, setEnabled, setMouseIcon, setMouseIcon, setMousePointerNum, setMousePointerNum, setOleDragMode, setOleDragMode, setOleDropMode, setOleDropMode, setOleX, setOleX, setOleY, setOleY, setState, setStatechangeFontWorker, delete, firstChild, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getPreviousTabItem, getPrevSibling, getSideLabelHandleWorker, getSizeAttrs, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, lastChild, processSideLabel, resetAutoResize, setAttrSpace, setAutoResize, setAutoResize, setColumnLabel, setColumnLabel, setDataType, setDataType, setDropTarget, setForceLabel, setForceLabel, setHeightCharsWorker, setHeightPixelsWorker, setIndex, setIndex, setModified, setModified, setNoAttrSpace, setNoLabels, setSideLabelHandleWorker, setTitle, setTitle, setTo, setTo, setWidthCharsWorker, setWidthPixelsWorker, validateFields_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFont, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderline, setGroup, setHeightChars, setHeightChars, setHeightImpl, setHeightPixels, setHeightPixels, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setSystemParent, setTabStop, setTabStop, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthImpl, setWidthPixels, setWidthPixels, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _name, _setDynamic, _setVisible, afterConfigUpdate, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, canPushWidgetAttr, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, editUndo, enable, finishConfigProcessing, finishSetup, flushWidgetAttrs, genAssignUnknownWarning, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDbName, getFormat, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getQuery, getRetainShape, getScreenValue, getSideLabelHandle, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWidth, getWindow, getZOrderClass, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoReturn, isChained, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isReadOnly, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTabItem, moveAfterTabItem, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, readOnlyError, readOnlyError, realize, refresh, resourceDelete, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrs, setAutoCompletion, setAutoCompletion, setAutoReturn, setAutoReturn, setBlank, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, setDbname, setDeblank, setDisableAutoZap, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setFromOCX, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueInt, setScreenValueNoErrorHandling, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, setWidth, truncatePixelSize, type, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateLabelAssignment, view, warningAlreadyRealized, widgetNamefirstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, resolveChainType, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, resourceType, setInstantiatingProcedure, toString, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComData, setComDatagetMouseButton, getMouseShift, getMouseX, getMouseYgetAllowedEffects, getDataFormat, getEffect, getOleDragMode, getOleDropMode, getOleX, getOleY, getState, isDefaultCursors, oleDrag, setAllowedEffects, setDataFormat, setDefaultCursors, setEffect, setOleDragMode, setOleDropMode, setOleX, setOleY, setStateapply, apply, apply, apply, asWidgetHandle, colorDisplay, colorPrompt, deselectRows, disable, editUndo, enable, getBgColor, getBgColorRgb, getColumnFont, getContextHelpId, getCursorOffset, getDColor, getFgColor, getFgColorRgb, getFont, getFrame, getFrameColumn, getFrameHandle, getFrameName, getFrameRow, getFrameX, getFrameY, getHWND, getId, getIdEx, getImage, getLabelFont, getLabelStr, getListItems, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNextTabItem, getNumColumns, getNumSelectedRows, getParent, getParentHandle, getPfColor, getPopupMenu, getPreviousTabItem, getQuery, getSideLabelHandle, getTabPosition, getTitle, getTitleFont, getTooltip, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, hide, hide, inputValue, isAutoCompletion, isAutoResize, isEditCanUndo, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, isMovable, isMultiple, isNotEntered, isResizable, isScrollable, isSelectable, isSelected, isSelected, isSelected, isTabStop, isThreeD, isValidatable, loadMousePointer, loadMousePointer, moveAfterTabItem, moveAfterTabItem, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, openPopup, preRealizeCheck, realize, refresh, selectAll, selectFocusedRow, setAtFormatLength, setAutoCompletion, setAutoCompletion, setAutoResize, setAutoResize, setBgColor, setBgColorRgb, setBlank, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setCursorOffset, setCursorOffset, setDColor, setDColor, setDeblank, setDisableAutoZap, setFgColor, setFgColorRgb, setFont, setFont, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setGroup, setHeader, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabelFont, setLabelFont, setListItems, setListItems, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setModified, setModified, setMovable, setMovable, setMultiple, setMultiple, setNextTabItem, setNumSelectedRows, setParent, setParentHandle, setParentHandle, setPfColor, setPfColor, setPopupMenu, setPopupMenu, setQuery, setResizable, setResizable, setScreenValue, setScreenValue, setScrollable, setScrollable, setSelectable, setSelectable, setSelected, setSelected, setSensitive, setSideLabelHandle, setTabStop, setTabStop, setThreeD, setThreeD, setTitle, setTitle, setTitleFont, setTitleFont, setTooltip, setTooltip, setValidation, setValidation, setVertical, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setWidgetId, setWidgetId, underline, underline, valid, validateFields, validateFields, validateFields, viewgetNextSibling, getPrevSibling, getPrivateData, setPrivateData, setPrivateDatareadOnlyError, readOnlyError, resourceTypeid, id, unknowngetColumnLabel, getDataType, getFormat, getHelp, getLabel, setColumnLabel, setColumnLabel, setDataType, setDataType, setFormat, setHelp, setHelp, setLabel, setLabel, setLabelgetDbName, getTableisDisableRedraw, setDisableRedraw, setDisableRedrawisVisible, setVisible, setVisiblegetHeight, getHeightChars, getHeightPixels, getWidth, getWidthChars, getWidthPixels, setHeight, setHeightChars, setHeightChars, setHeightPixels, setHeightPixels, setWidth, setWidthChars, setWidthChars, setWidthPixels, setWidthPixelsgetColumn, getRow, getX, getY, setColumn, setColumn, setRow, setRow, setX, setX, setY, setYgetRetainShape, getStretchToFit, getTransparent, setRetainShape, setRetainShape, setStretchToFit, setStretchToFit, setTransparent, setTransparentgetConvert3D, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, setConvert3D, setConvert3DisReadOnly, setReadOnly, setReadOnlygetFontInfo, getFontName, getFontSize, isFontBold, isFontItalic, isFontUnderline, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderlineisEnabled, setEnabled, setEnabledgetMouseIcon, getMousePointerNum, refreshUI, setMouseIcon, setMouseIcon, setMousePointerNum, setMousePointerNumendFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTargetallowDeleteprivate ComObject obj
public CalendarWidget()
public CalendarWidget(boolean dynamic)
dynamic - The flag indicating if this is a static or dynamic resource.public CalendarWidget(boolean dynamic,
CalendarConfig config)
dynamic - The flag indicating if this is a static or dynamic resource.config - The widget configuration settingspublic character getCalendarValue()
getCalendarValue in interface Calendarpublic void setCalendarValue(datetime value)
setCalendarValue in interface Calendarvalue - The new current date and time valuepublic void setCalendarValue(date value)
setCalendarValue in interface Calendarvalue - The new current date valuepublic void setCalendarValue(character value)
setCalendarValue in interface Calendarvalue - The new current date and time value as a character valuepublic void setCalendarValue(java.lang.String value)
setCalendarValue in interface Calendarvalue - The new current date and time value representing by a stringprivate java.time.LocalDateTime parseIsoDate(java.lang.String value)
value - The given string to parsepublic integer getFormatStyle()
getFormatStyle in interface Calendarpublic void setFormatStyle(integer formatStyle)
setFormatStyle in interface CalendarformatStyle - The date and time display format style constant.public integer getCalendarBackColor()
getCalendarBackColor in interface Calendarpublic void setCalendarBackColor(integer calendarBackColor)
setCalendarBackColor in interface CalendarcalendarBackColor - The background color for the dropdown calendarpublic integer getCalendarForeColor()
getCalendarForeColor in interface Calendarpublic void setCalendarForeColor(integer calendarForeColor)
setCalendarForeColor in interface CalendarcalendarForeColor - The foreground color for the dropdown calendarpublic integer getCalendarTitleBackColor()
getCalendarTitleBackColor in interface Calendarpublic void setCalendarTitleBackColor(integer titleBackColor)
setCalendarTitleBackColor in interface CalendartitleBackColor - The background color for the title portion of the dropdown calendar.public integer getCalendarTitleForeColor()
getCalendarTitleForeColor in interface Calendarpublic void setCalendarTitleForeColor(integer titleForeColor)
setCalendarTitleForeColor in interface CalendartitleForeColor - The foreground color for the title portion of the dropdown calendar.public integer getCalendarTrailingForeColor()
getCalendarTrailingForeColor in interface Calendarpublic void setCalendarTrailingForeColor(integer trailingForeColor)
setCalendarTrailingForeColor in interface CalendartrailingForeColor - The foreground color for the previous and following months of
the dropdown calendar.public logical isCheckBox()
isCheckBox in interface Calendarpublic void setCheckBox(logical enabledCheckBox)
setCheckBox in interface CalendarenabledCheckBox - The logical value indicating a checkbox is displayed or not.public character getCustomFormat()
getCustomFormat in interface Calendarpublic void setCustomFormat(character customFormat)
setCustomFormat in interface CalendarcustomFormat - The custom format stringpublic void setCustomFormat(java.lang.String customFormat)
setCustomFormat in interface CalendarcustomFormat - The custom format stringpublic integer getDay()
public void setDay(integer day)
public integer getDayOfWeek()
getDayOfWeek in interface Calendarpublic void setDayOfWeek(integer dayOfWeek)
setDayOfWeek in interface CalendardayOfWeek - The day of the week for the current datepublic integer getHour()
public void setHour(integer hour)
public date getMaxDate()
getMaxDate in interface Calendarpublic void setMaxDate(date dateMaxDate)
setMaxDate in interface CalendardateMaxDate - The new latest datepublic date getMinDate()
getMinDate in interface Calendarpublic void setMinDate(date dateMinDate)
setMinDate in interface CalendardateMinDate - The new earliest datepublic integer getMinute()
public void setMinute(integer minute)
public integer getMonth()
public void setMonth(integer month)
public integer getSecond()
public void setSecond(integer second)
public logical isUpDown()
public void setUpDown(logical upDown)
public logical isChecked()
isChecked in interface CheckableisChecked in class GenericWidget<CalendarConfig>public void setChecked(boolean checked)
setChecked in interface CheckablesetChecked in class GenericWidget<CalendarConfig>checked - The logical value indicating a checkbox is displayed or not.public void setChecked(logical checked)
setChecked in interface CheckablesetChecked in class GenericWidget<CalendarConfig>checked - The logical value indicating a checkbox is displayed or not.public integer getYear()
public void setYear(integer year)
public character getScreenValue()
getScreenValue in interface CommonWidgetgetScreenValue in class GenericWidget<CalendarConfig>public BaseDataType[] emitComEvent(java.lang.String eventName, BaseDataType[] args)
emitComEvent in interface EmitsComEventseventName - Event name.args - Event arguments.public boolean hasFormat()
hasFormat in class GenericWidget<CalendarConfig>false.