|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.CalendarDialog
public class CalendarDialog
The CalendarDialog class provides a standard modal JDialog containing a CalendarPanel. The OK button is a component of the CalendarPanel itself, not this dialog. The dialog is disposed of when the OK button is pressed. The internal CalendarPanel is accessible so that you can retrieve the user-selected date when desired.
Field Summary | |
---|---|
protected CalendarPanel |
calendarPanel
|
protected static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
CalendarDialog(java.awt.Frame owner,
java.lang.String dialogTitle)
CalendarDialog constructor |
|
CalendarDialog(java.awt.Frame owner,
java.lang.String dialogTitle,
CalendarPanel panel)
CalendarDialog constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Action event handler for the OK button |
CalendarPanel |
getPanel()
Retrieves the internal CalendarPanel object. |
protected void |
init(java.lang.String dialogTitle)
Initializes the dialog, creating and laying out its components. |
static void |
main(java.lang.String[] argv)
The main application for this class, serving as a testing mechanism and an illustration of how to instantiate and configure the dialog, and retrieve values upon successful completion by the user. |
void |
setPanel(CalendarPanel panel)
Sets the internal CalendarPanel object to display in the dialog. |
Field Detail |
---|
protected static final java.lang.String RB_KEY
protected CalendarPanel calendarPanel
Constructor Detail |
---|
public CalendarDialog(java.awt.Frame owner, java.lang.String dialogTitle)
owner
- The Frame representing the owner of this dialog.dialogTitle
- The title to appear in this dialog.public CalendarDialog(java.awt.Frame owner, java.lang.String dialogTitle, CalendarPanel panel)
owner
- The Frame representing the owner of this dialog.dialogTitle
- The title to appear in this dialog.panel
- An existing CalendarPanel object to use.Method Detail |
---|
public CalendarPanel getPanel()
public void setPanel(CalendarPanel panel)
panel
- CalendarPanel instance to use.protected void init(java.lang.String dialogTitle)
dialogTitle
- The title of the dialog.public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public static void main(java.lang.String[] argv)
argv
- Program arguments
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |