|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.tentackle.ui.FormPanel
org.tentackle.ui.FormCalendar
public class FormCalendar
A calendar panel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
SHOW_DATE
show only date (default) |
static int |
SHOW_HOUR
show date and hour |
static int |
SHOW_MINUTE
show date, hour and minutes |
static int |
SHOW_SECOND
show date, hour, minutes and seconds |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FormCalendar()
Creates a calendar panel in current locale, no time, today. |
|
FormCalendar(Date day)
Creates a calendar panel in current locale, no time. |
|
FormCalendar(Date day,
int timeMode)
Creates a calendar panel in the current locale. |
|
FormCalendar(Locale locale,
Date day,
int timeMode)
Creates a calendar panel. |
|
| Method Summary | |
|---|---|
GregorianCalendar |
getCalendar()
Returns the current selected calendar value. |
void |
setCalendar(GregorianCalendar cal)
Sets the current calendar value. |
| Methods inherited from class org.tentackle.ui.FormPanel |
|---|
addActionListener, areValuesChanged, componentAdded, componentRemoved, fireActionPerformed, getFormValues, getHelpURL, getParentWindow, getTitle, invalidateParentInfo, isAllChangeable, isHonourAllChangeable, removeActionListener, saveValues, setAllChangeable, setFormValues, setFormValuesKeepChanged, setHelpURL, setHonourAllChangeable, setTitle, showHelp, triggerValuesChanged |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SHOW_DATE
public static final int SHOW_HOUR
public static final int SHOW_MINUTE
public static final int SHOW_SECOND
| Constructor Detail |
|---|
public FormCalendar(Locale locale,
Date day,
int timeMode)
locale - the locale, null if default localeday - the date, null if "today"timeMode - whether and how to display the time, one of SHOW_...
public FormCalendar(Date day,
int timeMode)
day - the date, null if "today"timeMode - whether and how to display the time, one of SHOW_...public FormCalendar(Date day)
day - the date, null if "today"public FormCalendar()
| Method Detail |
|---|
public GregorianCalendar getCalendar()
public void setCalendar(GregorianCalendar cal)
cal - the calendar value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||