| java.awt.Panel com.xoetrope.awt.XDateEdit
XDateEdit | public class XDateEdit extends Panel implements XAttributedComponent,ActionListener,XTextHolder,FocusListener(Code) | | An edit control with a button that pops up a DateChooser. When the DateChooser
is displayed it will show the date entered in the edit control. The date will
also be updated when the chooser is closed.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.7 $
|
popupBtn | XButton popupBtn(Code) | | |
XDateEdit | public XDateEdit()(Code) | | |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Respond to the button click by showing the date chooser control.
Parameters: e - |
addFocusListener | public void addFocusListener(FocusListener fl)(Code) | | Add a focus listener for the child edit controls
Parameters: fl - |
focusGained | public void focusGained(FocusEvent e)(Code) | | Trap the focus events and forward to the parent listner
Parameters: e - |
focusLost | public void focusLost(FocusEvent e)(Code) | | Trap the focus events and forward to the parent listner
Parameters: e - |
getDate | public Date getDate()(Code) | | Gets the content of the date field as a date
the date value |
getText | public String getText()(Code) | | Gets the content of the date field
the date edit value |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component. Currently this handles the
attributes
- format, value=the date format
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value 0 for success, non zero otherwise |
setText | public void setText(String s)(Code) | | Sets the content of the edit field
Parameters: s - the new date string |
|
|