Package com.dassault_systemes.catjdialog |
java.lang.Object
|
+-com.dassault_systemes.catjdialog.CATCallbackSource
|
+-com.dassault_systemes.catjdialog.CATDialog
|
+-com.dassault_systemes.catjdialog.CATDateEditor
Framework : CATJDialog
Module : CATJDialog
public class CATDateEditor
The date editor graphical component.
Description:
This components allows to enter/edit a date (day/month/year). It is presented as a text input
with a button that shows a calendar when pressed.
CATDateEditor Properties:
- Date: the date presented by the editor
- Enable: is the date editor enabled?
CATDateEditor Notifications:
CATDateEditor
CATDateEditor(CATDialog iDialog, String iName)
Creates a date editor with the specified parent and name.
- Parameters:
iParent
- The parent component.
iName
- This date editor name. Here are some rules for this name:
- It is set in the constructor, and cannot be changed afterwards.
- The name must be unique for the parent (2 children with the same name are not allowed).
- The name may not contain any ot the following characters: '.' (dot), ' ' (blank), '_' (underscore)
getDate
CATDate getDate()
Returns the date that is presented by the editor.
- Returns:
The date value presented by the editor. A null value means no input or invalid input
(check with isInputValid()
).
setDate
void setDate(CATDate iDate)
Sets the date that is presented by the editor.
- Parameters:
A
- date object to set as the date presented by this editor. A null value empties the editor.
isInputValid
boolean isInputValid()
Determines whether the input value is a valid date or not (blank input is considered as a valid "no-date" input).
- Returns:
true
if the input is a valid date (or empty input); false
otherwise.
getEnable
boolean getEnable()
Determines whether this date editor is enabled or not.
- Returns:
true
if this editor is enabled; false
otherwise.
setEnable
void setEnable(boolean iEnable)
Enables or disables this date editor.
A disabled date editor doesn't allow any user input.
- Parameters:
iEnable
- If
true
, this date editor is enabled; otherwise it is disabled.
Copyright © 2000, Dassault Systèmes. All rights reserved